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