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