5ca26c246ade48d9ae10bf848a8e51ec64ef4182
[platform/upstream/binutils.git] / ld / ChangeLog
1 2014-11-24  Alan Modra  <amodra@gmail.com>
2
3         * ld.texinfo: Correct --plt-align documentation.
4         * emultempl/ppc64elf.em (plt_stub_align): Delete.  Use and set
5         params.plt_stub_align instead.
6
7 2014-11-18  Igor Zamyatin  <igor.zamyatin@intel.com>
8
9         * emulparams/elf_x86_64.sh (BNDPLT): Set to yes for x86_64.
10         * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
11         "-z bndplt" if BNDPLT is yes.
12         (gld${EMULATION_NAME}_list_options): Add "-z bndplt" entry.
13         * ld.texinfo: Add description for bndplt.
14
15 2014-10-29  Nick Clifton  <nickc@redhat.com>
16
17         * po/bg.po: Updated Bulgarian translation.
18
19 2014-10-28  Alan Modra  <amodra@gmail.com>
20
21         Apply trunk patches
22         2014-10-16  Alan Modra  <amodra@gmail.com>
23         PR 17488
24         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Don't attempt
25         to access ELF header e_flags when not ppc64 ELF output.
26
27 2014-10-24  Tejas Belagod  <tejas.belagod@arm.com>
28
29         * emultempl/aarch64elf.em: Add command-line option for erratum
30         835769.
31
32 2014-10-17  Hans-Peter Nilsson  <hp@axis.com>
33
34         Backport "implement --print-sysroot in ld" from master
35         * ldlex.h (enum option_values): Add entry OPTION_PRINT_SYSROOT.
36         * lexsup.c (ld_options): Add entry for --print-sysroot.
37         (parse_args) <OPTION_PRINT_SYSROOT>: Print sysroot and exit early.
38
39 2014-10-15  Tristan Gingold  <gingold@adacore.com>
40
41         * configure: Regenerate.
42
43 2014-10-15  Hans-Peter Nilsson  <hp@axis.com>
44
45         Backport "="-ldscript-path-prefix changes from master.
46         * ldlex.l (INPUTLIST): New start condition.
47         (comment pattern, ",", "(", ")", "AS_NEEDED")
48         ({FILENAMECHAR1}{FILENAMECHAR}*, "-l"{FILENAMECHAR}+)
49         (quoted string pattern, whitespace pattern): Add INPUTLIST to
50         valid start conditions.
51         (<INPUTLIST>"="{FILENAMECHAR1}{FILENAMECHAR}*): New NAME rule.
52         (ldlex_inputlist): New start-condition-setter function.
53         * ldgram.y (input_list1): Rename from input_list.  All recursive
54         use changed.
55         (input_list): New wrapper rule for input_list1, setting
56         INPUTLIST lexer state for the duration of parsing input_list1.
57         * ldlang.c (lang_add_input_file): If the first character in the
58         filename is '=', prepend the sysroot and force the context of that
59         input file to non-sysroot.
60         * ld.texinfo (Options): When mentioning "=" and sysroot, mention
61         that --sysroot controls it, not only through the configuration.
62         (input files in linker scripts): When mentioning
63         behavior of first character "/" on scripts within sysroot, also
64         mention that effect can be forced by prefixing with "=" and
65         refer to SEARCH_DIR.
66
67 2014-10-14  Tristan Gingold  <gingold@adacore.com>
68
69         * NEWS: Add marker for 2.25.
70
71 2014-10-13  Alan Modra  <amodra@gmail.com>
72
73         * ldlang.c (lang_add_section): Set up map_head.s and map_tail.s when
74         relocatable.
75
76 2014-09-16  Kuan-Lin Chen  <kuanlinchentw@gmail.com>
77
78         * emultempl/nds32elf.em (nds32_elf_after_open): Do not keep
79         ex9 234th entry.
80         (nds32_elf_after_allocation): Move all optimizations into
81         nds32_elf_relax_section.
82
83 2014-09-15  Andrew Bennett  <andrew.bennett@imgtec.com>
84             Matthew Fortune  <matthew.fortune@imgtec.com>
85
86         * ldmain.c (get_emulation): Add support for -mips32r6 and -mips64r6.
87
88 2014-09-12  Andrew Bennett  <andrew.bennett@imgtec.com>
89
90         * configure.tgt: Add mips*-img-elf* target triple.
91
92 2014-09-01  Jon TURNEY  <jon.turney@dronecode.org.uk>
93
94         * emultempl/pe.em (write_build_id, setup_build_id): Change pe/coff
95         build-id section name from '.build-id' to '.buildid'.
96         * emultempl/pep.em (write_build_id, setup_build_id): Ditto.
97
98 2014-08-22  Andreas Tobler  <andreast@fgznet.ch>
99
100         * emulparams/armelf_fbsd.sh (TEXT_START_ADDR): Increase alignment to
101         64kB boundary like in armelf_linux.sh.
102
103 2014-08-22  Alan Modra  <amodra@gmail.com>
104
105         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation): Call
106         bfd_elf_discard_info after generating glink .eh_frame.  Delete
107         redundant test on ppc64_elf_setup_section_lists status.
108
109 2014-08-20  Maciej W. Rozycki  <macro@codesourcery.com>
110
111         * emultempl/armelf.em (OPTION_STUBGROUP_SIZE): Fix formatting.
112         (OPTION_NO_MERGE_EXIDX_ENTRIES, OPTION_LONG_PLT): Likewise.
113
114 2014-08-20  Will Newton  <will.newton@linaro.org>
115
116         * configure.tgt: Default armeb-*-eabi* to big endian.
117
118 2014-08-20  Daniel Micay  <danielmicay@gmail.com>
119
120         * emultempl/pep.em: Add --high-entropy-va switch.
121         * ld.texinfo: Document the --high-entropy-va switch.
122
123 2014-08-20  Nick Clifton  <nickc@redhat.com>
124
125         * scripttempl/DWARF.sc: Add copyright notice.
126         * scripttempl/aix.sc: Likewise.
127         * scripttempl/alpha.sc: Likewise.
128         * scripttempl/alphavms.sc: Likewise.
129         * scripttempl/aout.sc: Likewise.
130         * scripttempl/armaout.sc: Likewise.
131         * scripttempl/armbpabi.sc: Likewise.
132         * scripttempl/armcoff.sc: Likewise.
133         * scripttempl/avr.sc: Likewise.
134         * scripttempl/avrtiny.sc: Likewise.
135         * scripttempl/crisaout.sc: Likewise.
136         * scripttempl/delta68.sc: Likewise.
137         * scripttempl/dlx.sc: Likewise.
138         * scripttempl/elf.sc: Likewise.
139         * scripttempl/elf32cr16.sc: Likewise.
140         * scripttempl/elf32cr16c.sc: Likewise.
141         * scripttempl/elf32crx.sc: Likewise.
142         * scripttempl/elf32msp430.sc: Likewise.
143         * scripttempl/elf32msp430_3.sc: Likewise.
144         * scripttempl/elf32sh-symbian.sc: Likewise.
145         * scripttempl/elf32xc16x.sc: Likewise.
146         * scripttempl/elf32xc16xl.sc: Likewise.
147         * scripttempl/elf32xc16xs.sc: Likewise.
148         * scripttempl/elf64hppa.sc: Likewise.
149         * scripttempl/elf_chaos.sc: Likewise.
150         * scripttempl/elfd10v.sc: Likewise.
151         * scripttempl/elfd30v.sc: Likewise.
152         * scripttempl/elfi370.sc: Likewise.
153         * scripttempl/elfm68hc11.sc: Likewise.
154         * scripttempl/elfm68hc12.sc: Likewise.
155         * scripttempl/elfmicroblaze.sc: Likewise.
156         * scripttempl/elfxgate.sc: Likewise.
157         * scripttempl/elfxtensa.sc: Likewise.
158         * scripttempl/epiphany_4x4.sc: Likewise.
159         * scripttempl/epocpe.sc: Likewise.
160         * scripttempl/h8300.sc: Likewise.
161         * scripttempl/h8300h.sc: Likewise.
162         * scripttempl/h8300hn.sc: Likewise.
163         * scripttempl/h8300s.sc: Likewise.
164         * scripttempl/h8300sn.sc: Likewise.
165         * scripttempl/h8300sx.sc: Likewise.
166         * scripttempl/h8300sxn.sc: Likewise.
167         * scripttempl/h8500.sc: Likewise.
168         * scripttempl/h8500b.sc: Likewise.
169         * scripttempl/h8500c.sc: Likewise.
170         * scripttempl/h8500m.sc: Likewise.
171         * scripttempl/h8500s.sc: Likewise.
172         * scripttempl/hppaelf.sc: Likewise.
173         * scripttempl/i386beos.sc: Likewise.
174         * scripttempl/i386coff.sc: Likewise.
175         * scripttempl/i386go32.sc: Likewise.
176         * scripttempl/i386msdos.sc: Likewise.
177         * scripttempl/i860coff.sc: Likewise.
178         * scripttempl/i960.sc: Likewise.
179         * scripttempl/ia64vms.sc: Likewise.
180         * scripttempl/ip2k.sc: Likewise.
181         * scripttempl/iq2000.sc: Likewise.
182         * scripttempl/m68kaux.sc: Likewise.
183         * scripttempl/m68kcoff.sc: Likewise.
184         * scripttempl/m88kbcs.sc: Likewise.
185         * scripttempl/mcorepe.sc: Likewise.
186         * scripttempl/mep.sc: Likewise.
187         * scripttempl/mips.sc: Likewise.
188         * scripttempl/mipsbsd.sc: Likewise.
189         * scripttempl/mmo.sc: Likewise.
190         * scripttempl/moxie.sc: Likewise.
191         * scripttempl/nds32elf.sc: Likewise.
192         * scripttempl/nw.sc: Likewise.
193         * scripttempl/pe.sc: Likewise.
194         * scripttempl/pep.sc: Likewise.
195         * scripttempl/pj.sc: Likewise.
196         * scripttempl/ppcpe.sc: Likewise.
197         * scripttempl/psos.sc: Likewise.
198         * scripttempl/riscix.sc: Likewise.
199         * scripttempl/sh.sc: Likewise.
200         * scripttempl/sparccoff.sc: Likewise.
201         * scripttempl/st2000.sc: Likewise.
202         * scripttempl/tic30aout.sc: Likewise.
203         * scripttempl/tic30coff.sc: Likewise.
204         * scripttempl/tic4xcoff.sc: Likewise.
205         * scripttempl/tic54xcoff.sc: Likewise.
206         * scripttempl/tic80coff.sc: Likewise.
207         * scripttempl/v850.sc: Likewise.
208         * scripttempl/v850_rh850.sc: Likewise.
209         * scripttempl/vanilla.sc: Likewise.
210         * scripttempl/w65.sc: Likewise.
211         * scripttempl/xstormy16.sc: Likewise.
212         * scripttempl/z80.sc: Likewise.
213         * scripttempl/z8000.sc: Likewise.
214
215 2014-08-19  Alan Modra  <amodra@gmail.com>
216
217         * configure: Regenerate.
218
219 2014-08-18  Alan Modra  <amodra@gmail.com>
220
221         * ld.texinfo (--as-needed): Clarify that references from libraries
222         must be from needed libraries.
223
224 2014-08-18  Alan Modra  <amodra@gmail.com>
225
226         * emultempl/aarch64elf.em (gld${EMULATION_NAME}_after_allocation):
227         Handle error status from bfd_elf_discard_info.
228         * emultempl/armelf.em: Likewise.
229         * emultempl/elf32.em: Likewise.
230         * emultempl/hppaelf.em: Likewise.
231         * emultempl/metagelf.em: Likewise.
232         * emultempl/nios2elf.em: Likewise.
233         * emultempl/ppc64elf.em: Likewise.
234         * emultempl/tic6xdsbt.em: Likewise.
235         * emultempl/vms.em: Likewise.
236
237 2014-08-14  Alan Modra  <amodra@gmail.com>
238
239         PR 16563
240         * ldlang.c (map_head_is_link_order): Rename from
241         stripped_excluded_sections.
242         (lang_clear_os_map): New function, extracted from..
243         (strip_excluded_output_sections): ..here.
244         * ldlang.h (lang_clear_os_map): Declare.
245         * ldwrite.c (ldwrite): Call lang_clear_os_map.
246         * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_after_allocation):
247         Likewise.
248
249 2014-08-14  Alan Modra  <amodra@gmail.com>
250
251         * configure.ac: Move AC_PROG_CC and other macros earlier.  Delete
252         plugin checks now done in config/plugins.m4.
253         * config.in: Regenerate.
254         * configure: Regenerate.
255
256 2014-08-14  Alan Modra  <amodra@gmail.com>
257
258         * plugin.c (is_ir_dummy_bfd): Test BFD_PLUGIN flag rather than
259         flags.claimed.
260
261 2014-08-13  Yaakov Selkowitz  <yselkowi@redhat.com>
262
263         * pe-dll.c (autofilter_entry_type autofilter_symbollist_i386): Add
264         __dso_handle.
265
266 2014-08-13  Alan Modra  <amodra@gmail.com>
267
268         * ldlang.c (open_input_bfds): Don't use bfd_elf_get_dyn_lib_class.
269
270 2014-08-12  Alan Modra  <amodra@gmail.com>
271
272         * ldlang.h (struct lang_input_statement_flags): Don't make "reload"
273         field conditional on ENABLE_PLUGINS.
274         * ldlang.c (open_input_bfds): Expand plugin_should_reload.
275         * plugin.h (plugin_should_reload): Delete.
276         * plugin.c (plugin_should_reload): Delete.
277
278 2014-08-12  Alan Modra  <amodra@gmail.com>
279
280         * ldmain.c (notice): Update args.
281         * plugin.c (plugin_notice): Likewise.  Follow warning sym link.
282         Handle new indirect symbol.
283
284 2014-08-12  Alan Modra  <amodra@gmail.com>
285
286         * plugin.c (plugin_load_plugins): Set link_info.lto_plugin_active.
287
288 2014-08-08  Ulrich Drepper  <drepper@gmail.com>
289
290         * ldlang.h (struct lang_input_statement_flags): Add pushed
291         member.
292         * ldlex.h (enum option_values): Add OPTION_PUSH_STATE and
293         OPTION_POP_STATE.
294         * lexsup.c (ld_options): Add entries for --push-state and
295         --pop-state.
296         (parse_args): Handle OPTION_PUSH_STATE and OPTION_POP_STATE.
297         * ld.texinfo: Document --push-state and --pop-state.
298
299 2014-08-06  H.J. Lu  <hongjiu.lu@intel.com>
300
301         PR14918
302         * plugin.c (plugin_opt_plugin_arg): Drop --pass-through.
303
304 2014-08-05  Alan Modra  <amodra@gmail.com>
305
306         * Makefile.in: Regenerate.
307
308 2014-07-29  Matthew Fortune  <matthew.fortune@imgtec.com>
309
310         * emulparams/elf32bmip.sh: Add .MIPS.abiflags.
311         * emulparams/elf32bmipn32-defs.sh: Likewise.
312         * emulparams/elf64bmip-defs.sh: Likewise.
313
314 2014-07-27  Anthony Green  <green@moxielogic.com>
315
316         * Makefile.am (ALL_EMULATION_SOURCES): Add moxiebox support.
317         (emoxiebox.c): Build.
318         * configure.tgt (targ_extra_ofiles): Add moxie-*-moxiebox*.
319         * emulparams/moxiebox.sh (TEXT_START_ADDR): New file.
320         * Makefile.in: Rebuilt.
321
322 2014-07-17  Stefan Kristiansson  <stefan.kristiansson@saunalahti.fi>
323
324         * emulparams/elf32or1k_linux.sh (TEXT_START_ADDR): Increase from
325         0x0 to first page boundary at 0x2000.
326
327 2014-07-10  Max Filippov  <jcmvbkbc@gmail.com>
328
329         * emultempl/xtensaelf.em (is_inconsistent_linkonce_section):
330         correctly handle missing dot in section name after
331         ".gnu.linkonce.prop.".
332
333 2014-07-08  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
334
335         * scripttempl/avr.sc: Remove KEEP for .data and
336         force .bss VMA to end of .data VMA.
337
338 2014-07-08  Will Newton  <will.newton@linaro.org>
339
340         * emulparams/armelf_linux.sh (TEXT_START_ADDR): Increase
341         alignment to 64kB boundary.
342
343 2014-07-04  Alan Modra  <amodra@gmail.com>
344
345         * configure.ac: Update "configure.in" comments.
346         * configure: Regenerate.
347
348 2014-07-04  Alan Modra  <amodra@gmail.com>
349
350         * configure.ac: Rename from configure.in.
351         * Makefile.in: Regenerate.
352         * config.in: Regenerate.
353
354 2014-07-04  Alan Modra  <amodra@gmail.com>
355
356         * configure.in: Include bfd/version.m4.
357         (AC_INIT, AM_INIT_AUTOMAKE): Use modern form.
358         (BFD_VERSION): Delete.
359         * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Remove bfd/configure.in.
360         * configure: Regenerate.
361         * Makefile.in: Regenerate.
362
363 2014-07-03  Alan Modra  <amodra@gmail.com>
364
365         PR 17068
366         * ldlang.c (load_symbols): Always check flags.reload.
367         (open_input_bfds): Always reload --as-needed shared libraries,
368         not just when rescanning.
369         * ldlang.h (struct lang_input_statement_flags): Update reload comment.
370         * plugin.c (plugin_should_reload): Assume shared library arg.
371         * plugin.h (plugin_should_reload): Update comment.
372
373 2014-07-01  Alan Modra  <amodra@gmail.com>
374
375         * emultempl/ppc64elf.em (stub_added): Delete.
376         (gld${EMULATION_NAME}_finish): Call ppc64_elf_build_stubs even when
377         none of the usual stubs have been added.  Only change entry_section
378         for ELFv1.
379
380 2014-07-01  Alan Modra  <amodra@gmail.com>
381
382         * sysdep.h: Don't include limits.h and sys/param.h.  Don't
383         include unistd.h twice.
384         (LD_PATHMAX): Don't define.
385         * ldlang.c (lang_common): Don't use UINT_MAX.
386
387 2014-07-01  Barney Stratford  <barney_stratford@fastmail.fm>
388             Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
389             Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
390             Soundararajan  <Sounderarajan.D@atmel.com>
391
392         * Makefile.am (ALL_EMULATION_SOURCES): Add avrtiny emulation source.
393         (eavrtiny.c): Add rules for avrtiny emulation source.
394         * Makefile.in: Regenerate.
395         * configure.tgt: Add avrtiny to avr target emulations.
396         * scripttempl/avrtiny.sc: New file.  Linker script template for
397         avrtiny arch.
398         * emulparams/avrtiny.sh: New file.  Emulation parameters for
399         avrtiny arch.
400
401 2014-06-30  Ulrich Drepper  <drepper@gmail.com>
402
403         * lexsup.c (parse_args): Check whether provided SONAME is empty
404         string.  If yes, warn and ignore it.  Don't overwrite valid SONAME
405         with empty string.
406
407 2014-06-26  Linda Zhang  <lindasc@qq.com>
408
409         * emultempl/pe.em: Initialise insert_timestamp to true.
410         Add a --no-insert-timestamp command line option.
411         * emultempl/pep.em: Likewise.
412         * ld.texinfo: Document that --insert-timestamp is enabled by
413         default and that it now has an inverse command line option.
414         * NEWS: Mention the new behaviour.
415
416 2014-06-25  Nick Clifton  <nickc@redhat.com>
417
418         * Makefile.am (ALL_EMULATION_SOURCES): Move ei386pep.c from
419         here...
420         (ALL_64_EMULATION_SOURCES): ... to here.
421         (ALL_EMUL_EXTRA_OFILES): Move pep-dll.o from here...
422         (ALL_64_EMUL_EXTRA_OFILES): New.  ... to here.
423         * configure.in (EMUL_EXTRA_OFILES): Include
424         ALL_64_EMUL_EXTRA_OFILES when making a 64-bit enabled build.
425         * Makefile.in: Regenerate.
426         * configure: Regenerate.
427
428 2014-06-18  Andreas Tobler  <andreast@fgznet.ch>
429
430         * configure.tgt (arm*-*-freebsd*): Update targ_extra_emuls.
431         (arm*b-*-freebsd*): Add target.
432         * emulparams/armelfb_fbsd.sh: Added.
433         * emulparams/armelf_fbsd.sh: Updated.
434         * Makefile.am (ALL_EMULATION_SOURCES): Add earmelfb_fbsd.c.
435         * Makefile.in: Regenerate.
436
437 2014-06-16  Alan Modra  <amodra@gmail.com>
438
439         * scripttempl/elf.sc: Edit out __rela_iplt symbol assignments from
440         .rel sections, and __rel_iplt from .rela sections.
441         * scripttempl/nds32elf.sc: Likewise.
442         * Makefile.am (ends32*.c) Depend on nds32elf.sc.
443         * Makefile.in: Regenerate.
444
445 2014-06-13  Alan Modra  <amodra@gmail.com>
446
447         PR 17047
448         * ldlang.c (output_bfd_hash_table_free_fn): Delete.
449         (open_output): Don't set it..
450         * ldmain.c (ld_cleanup): ..or call it.
451
452 2014-06-13  Alan Modra  <amodra@gmail.com>
453
454         * emultempl/cr16elf.em, * emultempl/elf32.em, * emultempl/genelf.em,
455         * emultempl/m68kcoff.em, * emultempl/m68kelf.em,
456         * emultempl/nds32elf.em, * emultempl/pe.em, * emultempl/pep.em,
457         * ldlang.c, * ldmain.c, * pe-dll.c: Update for bfd.link_next change.
458
459 2014-06-13  Alan Modra  <amodra@gmail.com>
460
461         * Makefile.am (ALL_EMULATION_SOURCES): Add enios2elf.c, enios2linux.c.
462         * Makefile.in: Regenerate.
463
464 2014-06-07  Alan Modra  <amodra@gmail.com>
465
466         * ldexp.c (exp_fold_tree_1 <etree_provide>): Make PROVIDEd
467         linker script symbol value override a built-in linker symbol.
468
469 2014-06-05  Joel Brobecker  <brobecker@adacore.com>
470
471         * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Add dependency on
472         bfd's development.sh.
473         * Makefile.in, configure: Regenerate.
474
475 2014-06-02  Alan Modra  <amodra@gmail.com>
476
477         * emulparams/elf32bfin.sh: Rename from bfin.sh.
478         * emulparams/elf32bfinfd.sh: Update to suit.
479         * emulparams/msp430.sh: Rename from msp430all.sh.  Remove
480         MSP430_NAME and msp430X vars.
481         * emulparams/msp430X.sh: New.
482         * emulparams/score3_elf.sh: Rename from scoreelf.sh.  Remove
483         SCORE_NAME and score7_elf ARCH setting.
484         * emulparams/score7_elf.sh: New.
485         * Makefile.am (eelf32bfin.c, eelf32bfinfd.c): Update dependencies.
486         (emsp430.c, emsp430X.c, escore3_elf.c, escore7_elf.c): Likewise.
487         * Makefile.in: Regenerate.
488         * genscripts.sh: Delete customizer_script param.
489
490 2014-05-28  Hans-Peter Nilsson  <hp@axis.com>
491
492         * Makefile.am: Change all rules with ${GENSCRIPTS}
493         invocations to be just dependencies.
494         ($(ALL_EMULATION_SOURCES) $(ALL_64_EMULATION_SOURCES))
495         (run-genscripts): New rules.
496         * Makefile.in: Regenerate.
497
498 2014-05-27  DJ Delorie  <dj@redhat.com>
499
500         * ld/ldemul.h (extra_map_file_text): New field.
501         (ldemul_extra_map_file_text): Declare.
502         * ld/ldemul.c (ldemul_extra_map_file_text): Define.
503         * ld/ldlang.c (lang_map): Call it.
504
505         * ld/emultempl/rxelf.em: Add extra_map_file_text hook.
506         * ld/emultempl/aix.em: Add NULL extra_map_file_text hook.
507         * ld/emultempl/armcoff.em: Likewise.
508         * ld/emultempl/beos.em: Likewise.
509         * ld/emultempl/elf32.em: Likewise.
510         * ld/emultempl/generic.em: Likewise.
511         * ld/emultempl/gld960.em: Likewise.
512         * ld/emultempl/gld960c.em: Likewise.
513         * ld/emultempl/linux.em: Likewise.
514         * ld/emultempl/lnk960.em: Likewise.
515         * ld/emultempl/m68kcoff.em: Likewise.
516         * ld/emultempl/pe.em: Likewise.
517         * ld/emultempl/pep.em: Likewise.
518         * ld/emultempl/sunos.em: Likewise.
519         * ld/emultempl/ticoff.em: Likewise.
520         * ld/emultempl/vanilla.em: Likewise.
521
522 2014-05-24  Alan Modra  <amodra@gmail.com>
523
524         * ldlang.c (base): Move variable to..
525         * mri.c: ..here, and make static.
526         * ldlang.h (base): Delete declaration.
527
528 2014-05-20  Hans-Peter Nilsson  <hp@axis.com>
529
530         * Makefile.am (ALL_EMULATION_SOURCES): Add missing eelf32mbel_linux.c.
531         * Makefile.in: Regenerate.
532
533 2014-05-20  Alan Modra  <amodra@gmail.com>
534
535         PR 16952
536         * emulparams/elf32ppccommon.sh (_SDA_BASE_, _SDA2_BASE_): Delete.
537         * emultempl/ppc32elf.em (ppc_before_allocation): Call
538         ppc_elf_maybe_strip_sdata_syms.
539         * ldlang.c (size_input_section): Correct output_offset value
540         for excluded input sections.
541
542 2014-05-16  John Marino  <binutils@marino.st>
543
544         * configure.tgt: Add /lib to dragonfly NATIVE_LIB_DIRS.
545
546 2014-05-11  Chung-Lin Tang  <cltang@codesourcery.com>
547
548         * emulparams/nios2linux.sh (OTHER_GOT_SYMBOLS): Wrap _gp in HIDDEN(),
549         and gp in PROVIDE_HIDDEN.
550
551 2014-05-10  Hans-Peter Nilsson  <hp@bitrange.com>
552
553         * ldlang.c (lang_finish): Don't call bfd_link_hash_table_free here.
554         (output_bfd_hash_table_free_fn): New variable.
555         (open_output): Save the _bfd_link_hash_table_free function for the
556         output_bfd into output_bfd_hash_table_free_fn.
557         * ldmain.c (ld_cleanup): If set, call output_bfd_hash_table_free_fn
558         on link_info.hash.
559         * ldlang.h (output_bfd_hash_table_free_fn): Declare.
560
561 2014-05-02  Alan Modra  <amodra@gmail.com>
562
563         * emultempl/metagelf.em: Update bfd target vector naming.
564         * emultempl/nios2elf.em: Likewise.
565         * emultempl/spuelf.em: Likewise.
566         * emultempl/tic6xdsbt.em: Likewise.
567
568 2014-04-22  Christian Svensson  <blue@cmd.nu>
569
570         * Makefile.am: Remove openrisc and or32 support.  Add support for or1k.
571         * configure.tgt: Likewise.
572         * emulparams/elf32or1k.sh: New file.
573         * emulparams/elf32or1k_linux.sh: New file.
574         * emulparams/elf32openrisc.sh: Delete.
575         * emulparams/or32.sh: Delete.
576         * emulparams/or32elf.sh: Delete.
577         * scripttempl/or32.sc: Delete.
578         * Makefile.in: Regenerate.
579
580 2014-04-21  Richard Henderson  <rth@redhat.com>
581
582         * emultempl/alphaelf.em (alpha_after_parse): Enable 2 relax passes.
583
584 2014-04-16  Steve Ellcey  <sellcey@mips.com>
585
586         * emultempl/elf32.em: Include safe-ctype.h.
587
588 2014-04-16  Steve Ellcey  <sellcey@mips.com>
589
590         * ldbuildid.c (generate_build_id): Add ATTRIBUTE_UNUSED to size arg.
591
592 2014-04-09  Nick Clifton  <nickc@redhat.com>
593
594         * Makefile.am (default-manifest.o): Remove rule.
595         (EMUL_EXTRA_BINARIES): Delete.
596         (ALL_EMUL_EXTRA_BINARIES): Delete.
597         (ld_new_DEPENDENCIES): Remove EMUL_EXTRA_BINARIES.
598         (install-data-local): Remove EMUL_EXTRA_BINARIES.
599         * Makefile.in: Regenerate.
600         * configure.in (all_emul_extra_binaries): Delete.
601         (EMUL_EXTRA_BINARIES): Remove.
602         * configure: Regenerate.
603         * configure.tgt (target_extra_binaries): Delete.
604         * emultempl/default-manifest.rc: Delete.
605         * ld.texinfo: Remove discussion of default manifest.
606         * emulparams/i386pe.sh (DEFAULT_MANIFEST): Delete.
607         * emulparams/i386pep.sh (DEFAULT_MANIFEST): Delete.
608
609 2014-04-09  Alan Modra  <amodra@gmail.com>
610
611         * emultempl/spuelf.em: Include safe-ctype.h, remove duplicate errno.h.
612         * emultempl/nds32elf.em: Include bfd_stdint.h.
613         * po/POTFILES.in: Regenerate.
614
615 2014-04-09  Alan Modra  <amodra@gmail.com>
616
617         * emultempl/ppc32elf.em (no_zero_padding, ppc_finish): New functions.
618         (LDEMUL_FINISH): Define.
619
620 2014-04-08  Nick Clifton  <nickc@redhat.com>
621
622         * scripttempl/pe.sc (R_RSRC): Remove default manifest.
623         * scripttempl/pep.sc (R_RSRC): Remove default manifest.
624
625 2014-04-08  Jon TURNEY  <jon.turney@dronecode.org.uk>
626
627         * emultempl/elf32.em (id_note_section_size, read_hex, write_build_id):
628         Move code for parsing build-id option and calculating the build-id to...
629         * ldbuildid.c: New file.
630         * ldbuildid.h: New file.
631         * Makefile.am (CFILES, HFILES, OFILES, ld_new_SOURCES): Add new
632         files.
633         * Makefile.in: Regenerate.
634         * ld.texinfo: Update --build-id description to mention COFF
635         support.
636         * NEWS: Mention support for COFF build ids.
637         * emultempl/pe.em (gld${EMULATION_NAME}_handle_option):
638         (pecoff_checksum_contents, write_build_id, setup_build_id)
639         (gld_${EMULATION_NAME}_after_open):  Handle and implement
640         build-id option.
641         * emultempl/pep.em: Likewise.
642
643 2014-04-04  Cary Coutant  <ccoutant@google.com>
644
645         PR gold/16804
646         * ld.texinfo: Document optional comma following output section
647         command and overlay command.
648
649 2014-04-04  Alan Modra  <amodra@gmail.com>
650
651         * ldlang.c (lang_size_sections_1 <lang_input_section_enum>): Use
652         current "fill", not "output_section_statement->fill".
653
654 2014-03-31  Nick Clifton  <nickc@redhat.com>
655
656         PR ld/16744
657         * emultempl/elf32.em (_after_open): Create a .note.GNU-stack
658         section when performing a relocatable link with -z [no]execstack
659         specified.
660
661 2014-03-27  H.J. Lu  <hongjiu.lu@intel.com>
662
663         PR ld/16756
664         * ldmain.c (symbol_warning): New function.
665         (warning_callback): Use it.  Scan all input files for a reference
666         to SYMBOL.
667
668 2014-03-21  Christopher Faylor  <me.cygwin2013@cgf.cx>
669
670         * ld.texinfo: Document change in handling of --enable-auto-image-base.
671         * emultempl/pe.em (pe_auto_image_base): Set to default base.
672         (gld_${EMULATION_NAME}_list_options): Change usage message to reflect
673         optional --enable-auto-image-base argument.
674         (gld${EMULATION_NAME}_handle_option): Handle optional
675         --enable-auto-image-base argument.
676         (compute_dll_image_base): Eliminate constant.  Use pe_auto_image_base.
677
678 2014-03-19  Nick Clifton  <nickc@redhat.com>
679
680         * Makefile.am (default-manifest.o): Use WINDRES_FOR_TARGET.
681         * Makefile.in: Regenerate.
682         * emultempl/default-manifest.rc: Fix typo.
683         * scripttempl/pe.sc (R_RSRC): Fix default-manifest exclusion.
684         (.rsrc): Add SUBALIGN(4).  Remove SORT.
685         * scripttempl/pep.sc: Likewise.
686
687 2014-03-17  Christopher Faylor  <me.cygwin2014@cgf.cx>
688
689         * Makefile.am: Use host version of windres.
690         * Makefile.in: Regenerate.
691
692 2014-03-14  Romain Geissler  <romain.geissler@amadeus.com>
693             Alan Modra  <amodra@gmail.com>
694
695         * ldlang.h (full_name_provided): New input flag.
696         * ldlang.c (new_afile): Don't use lang_input_file_is_search_file_enum
697         for -l:namespec.  Instead use lang_input_file_is_l_enum with
698         full_name_provided flag.
699         * ldlfile.c (ldfile_open_file_search): Don't complete lib name if
700         full_name_provided flag is set.
701         * emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive):
702         Handle full_name_provided libraries.  Tidy EXTRA_SHLIB_EXTENSION
703         support.  Set DT_NEEDED for -l:namespec as namespec.
704         * emultempl/aix.em (ppc_after_open_output): Handle full_name_provided.
705         * emultempl/linux.em (gld${EMULATION_NAME}_open_dynamic_archive):
706         Don't handle full_name_provided libraries.
707         * emultempl/pe.em (gld${EMULATION_NAME}_open_dynamic_archive): Ditto.
708         * emultempl/pep.em (gld${EMULATION_NAME}_open_dynamic_archive): Ditto.
709         * emultempl/vms.em (gld${EMULATION_NAME}_open_dynamic_archive): Ditto.
710
711 2014-03-12  Alan Modra  <amodra@gmail.com>
712
713         * Makefile.in: Regenerate.
714
715 2014-03-05  Alan Modra  <amodra@gmail.com>
716
717         Update copyright years.
718
719 2014-03-04  Nick Clifton  <nickc@redhat.com>
720
721         * Makefile.am (ALL_EMUL_EXTRA_BINARIES): Remove default-manifest.
722         * Makefile.in: Regenerate.
723
724 2014-02-27  Yuri Gribov  <y.gribov@samsung.com>
725
726         * emultempl/armelf.em (OPTION_LONG_PLT): Define.
727         (PARSE_AND_LIST_LONGOPTS): Add long-plt.
728         (PARSE_AND_LIST_OPTIONS): Likewise.
729         (PARSE_AND_LIST_ARGS_CASES): Handle long-plt.
730         * ld.texinfo: Document --long-plt.
731
732 2014-02-27  Alan Modra  <amodra@gmail.com>
733
734         * emulparams/elf32ppcvxworks.sh: Source plt_unwind.sh and
735         use ppc32elf.em.
736         * emultempl/ppc32elf.em (ppc_after_open): Don't compile for
737         vxworks.
738         (LDEMUL_AFTER_OPEN): Don't set for vxworks.
739         (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Exclude
740         -secure-plt, -bss-plt and -sdata-got when vxworks.
741
742 2014-02-27  Nick Clifton  <nickc@redhat.com>
743
744         * configure.in (all_emul_extra_binaries): New variable.  Populated
745         by invoking configure.tgt.
746         (EMUL_EXTRA_BINARIES): New substitution.
747         * configure: Regenerate.
748         * configure.tgt (target_extra_binaries): New variable.  Set to
749         default-manifest.o for Cygwin and MinGW targets.
750         * Makefile.am (EMUL_EXTRA_BINARIES): New variable.  Initialised
751         by the configure script.
752         (ALL_EMUL_EXTRA_BINARIES): New variable.
753         (default-manifest.o): New rule to build the default manifest.
754         (ld_new_DEPENDENCIES): Add EMUL_EXTRA_BINARIES.
755         (install-data-local): Add EMUL_EXTRA_BINARIES.
756         * Makefile.in: Regenerate.
757         * ld.texinfo: Document default manifest support.
758         * emulparams/i386pe.sh (DEFAULT_MANIFEST): Define.
759         * emulparams/i386pep.sh (DEFAULT_MANIFEST): Define.
760         * emultempl/default-manifest.rc: New file.
761         * scripttempl/pe.sc (R_RSRC): Include DEFAULT_MANIFEST, if defined.
762         * scripttempl/pep.sc (R_RSRC): Likewise.
763
764 2014-02-26  Dan Mick  <dan.mick@inktank.com>
765
766         PR ld/16569
767         * ldcref.c (cref_sort_array): Compare unmangled names unless
768         demanglng has been requiested.
769         (output_one_cref): Output unmangled name unless demangling has
770         been requested.
771
772 2014-02-19  Igor Zamyatin  <igor.zamyatin@intel.com>
773             H.J. Lu  <hongjiu.lu@intel.com>
774
775         * emulparams/elf_x86_64.sh (TINY_READONLY_SECTION): New.
776
777 2014-02-19  Alan Modra  <amodra@gmail.com>
778
779         * emultempl/ppc64elf.em (params): Init new field.
780         (ppc_create_output_section_statements): Set params.save_restore_funcs
781         default.
782         (PARSE_AND_LIST_*): Add support for --save-restore-funcs and
783         --no-save-restore-funcs.
784
785 2014-02-17  Alan Modra  <amodra@gmail.com>
786
787         * emultemps/ppc64elf.em (params): New static struct replacing
788         various other static vars.  Adjust code throughout file.
789
790 2014-02-17  Alan Modra  <amodra@gmail.com>
791
792         * emultempl/ppc32elf.em (ppc_after_open_output): Really enable
793         ppc476 workaround for ld -r.
794
795 2014-02-12  Alan Modra  <amodra@gmail.com>
796
797         * emultempl/ppc32elf.em (pagesize): New static var.
798         (ppc_after_open_output): Set params.pagesize_p2 from pagesize.
799         (PARSE_AND_LIST_ARGS_CASES): Adjust to use pagesize.
800
801 2014-02-11  Andrew Pinski  <apinski@cavium.com>
802
803         * emulparams/aarch64linux32.sh (LIBPATH_SUFFIX): Change to ilp32.
804         (ELF_INTERPRETER_NAME): Define.
805         * emulparams/aarch64linux32b.sh (ELF_INTERPRETER_NAME): Define.
806
807 2014-02-10  Alan Modra  <amodra@gmail.com>
808
809         * po/ld.pot: Regenerate.
810
811 2014-02-03  Alan Modra  <amodra@gmail.com>
812
813         * emultempl/ppc32elf.em (no_tls_get_addr_opt, emit_stub_syms)
814         plt_style): Delete.  Adjust all refs to instead use..
815         (params): ..this.  New variable.
816         (ppc_after_open_output): New function.  Tweak params and pass to
817         ppc_elf_link_params.
818         (ppc_after_open): Adjust ppc_elf_select_plt_layout call.
819         (ppc_before_allocation): Adjust ppc_elf_tls_setup call.  Enable
820         relaxation for ppc476 workaround.
821         (PARSE_AND_LIST_*): Add --{no-,}ppc476-workaround support.
822         (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
823
824 2014-02-02  Sebastian Huber  <sebastian.huber@embedded-brains.de>
825
826         * ld/ld.texinfo: Change ALIGN_WITH_INPUT documentation.
827         * ld/ldlang.c (lang_size_sections_1): Add dotdelta
828         variable which reflects the VMA change due to alignment
829         requirements.  Use dotdelta do change the LMA if
830         ALIGN_WITH_INPUT is requested.
831
832 2014-02-01  Hans-Peter Nilsson  <hp@bitrange.com>
833
834         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Fix typo in
835         call to bfd_set_section_vma exposed by recent bfd_set_section_vma
836         change.
837
838 2014-01-30  Sandra Loosemore  <sandra@codesourcery.com>
839
840         * Makefile.am (enios2elf.c, enios2linux.c): Update dependencies.
841         * Makefile.in: Regenerated.
842         * emulparams/nios2elf.sh (EXTRA_EM_FILE): Set.
843         * emulparams/nios2linux.sh (EXTRA_EM_FILE): Set.
844         * emultempl/nios2elf.em: New file.
845         * gen-doc.texi (NIOSII): Set.
846         * ld.texinfo (NIOSII): Set.
847
848 2014-01-28  Nick Clifton  <nickc@redhat.com>
849
850         * Makefile.am: Remove obsolete MSP430 emulations.
851         * configure.tgt: Likewise.
852         * emulparams/msp430all.sh: Likewise.
853         * Makefile.in: Regenerate.
854
855 2014-01-24  H.J. Lu  <hongjiu.lu@intel.com>
856
857         PR ld/16498
858         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Improve
859         orphaned TLS section handling.
860
861 2014-01-24  Alan Modra  <amodra@gmail.com>
862
863         * ldlang.c (lang_output_section_find_by_flags): Be careful to
864         test look->bfd_section->flags if available rather than
865         look->flags.  Separate SEC_THREAD_LOCAL handling from
866         SEC_READONLY loop, and rewrite.
867
868 2014-01-22  Alan Modra  <amodra@gmail.com>
869
870         * ldlang.c (asneeded_list_head, asneeded_list_tail): New vars.
871         (lang_init): Initialise them.
872         (lang_print_asneeded): New function.
873         (lang_process): Call lang_print_asneeded.
874         * ldlang.h (struct asneeded_minfo): New.
875         (asneeded_list_tail): Declare.
876         * ldmain.c (add_archive_element): Improve archive map heading.
877         * ldmisc.c (minfo): Stash --as-needed info.
878
879 2014-01-22  Alan Modra  <amodra@gmail.com>
880
881         * ld.h (struct map_symbol_def): Move to..
882         * ldlang.h: ..here.
883         * ldlang.c (print_assignment): Don't set expld.assign_name to dot.
884
885 2014-01-22  Alan Modra  <amodra@gmail.com>
886
887         * ld.texinfo (Output Section Discarding): Mention assigning to dot
888         as a way of keeping otherwise empty sections.
889         * ldexp.c (is_dot, is_value, is_sym_value, is_dot_ne_0,
890         is_dot_plus_0, is_align_conditional): New predicates.
891         (exp_fold_tree_1): Set SEC_KEEP when assigning to dot inside an
892         output section, except for some special cases.
893         * scripttempl/elfmicroblaze.sc: Use canonical form to align at
894         end of .heap and .stack.
895
896 2014-01-20  Marcus Shawcroft  <marcus.shawcroft@arm.com>
897
898         * emulparams/aarch64linuxb.sh (ELF_INTERPRETER_NAME): Define.
899
900 2014-01-20  Marcus Shawcroft  <marcus.shawcroft@arm.com>
901
902         * emulparams/aarch64linux.sh (ELF_INTERPRETER_NAME): Define.
903
904 2014-01-20  Alan Modra  <amodra@gmail.com>
905
906         * ldlang.h (struct lang_definedness_hash_entry): Add by_object and
907         by_script.  Make iteration a single bit field.
908         (lang_track_definedness, lang_symbol_definition_iteration): Delete.
909         (lang_symbol_defined): Declare.
910         * ldlang.c (lang_statement_iteration): Expand comment a little.
911         (lang_init <lang_definedness_table>): Make it bigger.
912         (lang_track_definedness, lang_symbol_definition): Delete.
913         (lang_definedness_newfunc): Update.
914         (lang_symbol_defined): New function.
915         (lang_update_definedness): Create entries here.  Do track whether
916         script definition of symbol is valid, even when also defined in
917         an object file.
918         * ldexp.c (fold_name <DEFINED>): Update.
919         (fold_name <NAME>): Allow self-assignment for absolute symbols
920         defined in a linker script.
921
922 2014-01-20  Guy Martin <gmsoft@tuxicoman.be>
923             Alan Modra  <amodra@gmail.com>
924
925         * ldlang.h (lang_output_section_get): Define.
926         * ldlang.c (lang_output_section_get): Likewise.
927         (init_os): Set the output_section userdata to the output
928         section statement.
929         * emultempl/hppaelf.em: Use lang_output_section_get instead of
930         lang_output_section_find where applicable.
931         * emultempl/aarch64elf.em: Likewise.
932         * emultempl/aix.em: Likewise.
933         * emultempl/armelf.em: Likewise.
934         * emultempl/m68hc1xelf.em: Likewise.
935         * emultempl/metagelf.em: Likewise.
936         * emultempl/mipself.em: Likewise.
937         * emultempl/ppc64elf.em: Likewise.
938         * emultempl/spuelf.em: Likewise.
939
940 2014-01-17  Alan Modra  <amodra@gmail.com>
941
942         * genscripts.sh (COMPILE_IN): Don't set if already set.
943         * emulparams/nds32elf.sh: Don't clear EMULATION_LIBPATH, set
944         COMPILE_IN=no.
945         * emulparams/nds32elf16m.sh: Likewise.
946         * emulparams/nds32elf_linux.sh: Likewise.
947         * emultempl/aix.em: Test COMPILE_IN value is "yes".
948         * emultempl/armcoff.em: Likewise.
949         * emultempl/elf32.em: Likewise.
950         * emultempl/generic.em: Likewise.
951         * emultempl/gld960.em: Likewise.
952         * emultempl/gld960c.em: Likewise.
953         * emultempl/linux.em: Likewise.
954         * emultempl/lnk960.em: Likewise.
955         * emultempl/m68kcoff.em: Likewise.
956         * emultempl/sunos.em: Likewise.
957         * emultempl/ticoff.em: Likewise.
958
959 2014-01-16  H.J. Lu  <hongjiu.lu@intel.com>
960
961         PR ld/16456
962         * genscripts.sh: Don't search directory with LIBPATH_SUFFIX_SKIP
963         suffix.
964         * emulparams/elf32_x86_64.sh (LIBPATH_SUFFIX_SKIP): Set to 64
965         for elf32_x86_64 emulation.
966         * emulparams/elf_i386.sh (LIBPATH_SUFFIX_SKIP): Set to 64
967         for elf_i386 emulation.
968
969 2014-01-16  Alan Modra  <amodra@gmail.com>
970
971         * ld.h (fat_section_userdata_type, get_userdata): Move to..
972         * ldlang.h (input_section_userdata_type, get_userdata): ..here.
973         * ldlang.c (init_map_userdata): Delete.  Fold into..
974         (sort_def_symbol): ..here.  Don't attach input section userdata
975         to output sections or global bfd sections.
976         (lang_map): Don't pre-allocate input section userdata.
977         (init_os): Don't allocate userdata for output sections.
978         (print_all_symbols): Update.
979
980 2014-01-15  H.J. Lu  <hongjiu.lu@intel.com>
981
982         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
983         Silence uninitialized warning on ehdr_start_save with older
984         GCC.
985
986 2014-01-15  Alan Modra  <amodra@gmail.com>
987
988         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Define
989         __ehdr_start before size_dynamic_sections and restore afterwards.
990
991 2014-01-10  Alan Modra  <amodra@gmail.com>
992
993         PR ld/14207
994         PR ld/16322
995         PR binutils/16323
996         * ldlang.c (lang_size_sections): Remove unneeded RELRO base
997         adjust.  Tidy comments.
998         * ld.texinfo (DATA_SEGMENT_RELRO_END): Correct description.
999
1000 2014-01-10  Hans-Peter Nilsson  <hp@axis.com>
1001
1002         * emulparams/crislinux.sh (COMMONPAGESIZE): Define.
1003
1004 2014-01-08  H.J. Lu  <hongjiu.lu@intel.com>
1005
1006         PR ld/14207
1007         PR ld/16322
1008         PR binutils/16323
1009         * ldlang.c (lang_size_sections): Properly align RELRO base.
1010
1011 2014-01-08  H.J. Lu  <hongjiu.lu@intel.com>
1012
1013         * ldver.c (ldversion): Update copyright year to 2014.
1014
1015 For older changes see ChangeLog-2013
1016 \f
1017 Copyright (C) 2014 Free Software Foundation, Inc.
1018
1019 Copying and distribution of this file, with or without modification,
1020 are permitted in any medium without royalty provided the copyright
1021 notice and this notice are preserved.
1022
1023 Local Variables:
1024 mode: change-log
1025 left-margin: 8
1026 fill-column: 74
1027 version-control: never
1028 End: