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