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