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