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