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