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