1 2014-12-10 Alan Modra <amodra@gmail.com>
3 * ldmisc.c: #include "coff-bfd.h"
5 2014-12-06 Eric Botcazou <ebotcazou@adacore.com>
7 * configure.tgt: Add Visium support.
8 * Makefile.am (ALL_EMULATION_SOURCES): Add eelf32visium.c.
9 (eelf32visium.c): New rule.
10 * Makefile.in: Regenerate.
11 * emulparams/elf32visium.sh: New file.
12 * scripttempl/visium.sc: Likewise.
14 2014-11-25 H.J. Lu <hongjiu.lu@intel.com>
16 * emulparams/elf_i386.sh (TINY_READONLY_SECTION): New.
17 * emulparams/elf_x86_64.sh (TINY_READONLY_SECTION): Add .plt.got.
19 2014-11-24 H.J. Lu <hongjiu.lu@intel.com>
21 * configure: Regenerated.
23 2014-11-24 Alan Modra <amodra@gmail.com>
25 * ld.texinfo: Correct --plt-align documentation.
26 * emultempl/ppc64elf.em (plt_stub_align): Delete. Use and set
27 params.plt_stub_align instead.
29 2014-11-18 Igor Zamyatin <igor.zamyatin@intel.com>
31 * emulparams/elf_x86_64.sh (BNDPLT): Set to yes for x86_64.
32 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
33 "-z bndplt" if BNDPLT is yes.
34 (gld${EMULATION_NAME}_list_options): Add "-z bndplt" entry.
35 * ld.texinfo: Add description for bndplt.
37 2014-10-08 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
39 * avrtiny.sc: Apply avr.sc fixes.
41 2014-11-04 Alan Modra <amodra@gmail.com>
43 * emultempl/spu_icache.o_c: Regenerate.
44 * emultempl/spu_ovl.o_c: Regenerate.
46 2014-11-03 Andrew Burgess <andrew.burgess@embecosm.com>
48 * testsuite/ld-avr/relax-02.d: Update to check size of symbols has
50 * testsuite/ld-avr/relax-03.d: Likewise.
52 2014-11-03 Andrew Burgess <andrew.burgess@embecosm.com>
54 * testsuite/ld-avr/relax-02.d: New file.
55 * testsuite/ld-avr/relax-02.s: New file.
56 * testsuite/ld-avr/relax-03.d: New file.
57 * testsuite/ld-avr/relax-03.s: New file.
59 2014-10-29 Nick Clifton <nickc@redhat.com>
61 * po/bg.po: Updated Bulgarian translation.
63 2014-10-24 Tejas Belagod <tejas.belagod@arm.com>
65 * emultempl/aarch64elf.em: Add command-line option for erratum 835769.
67 2014-10-17 Hans-Peter Nilsson <hp@axis.com>
69 Implement --print-sysroot in ld.
70 * ldlex.h (enum option_values): Add entry OPTION_PRINT_SYSROOT.
71 * lexsup.c (ld_options): Add entry for --print-sysroot.
72 (parse_args) <OPTION_PRINT_SYSROOT>: Print sysroot and exit early.
74 2014-10-16 Alan Modra <amodra@gmail.com>
77 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Don't attempt
78 to access ELF header e_flags when not ppc64 ELF output.
80 2014-10-15 Tristan Gingold <gingold@adacore.com>
82 * configure: Regenerate.
84 2014-10-15 Hans-Peter Nilsson <hp@axis.com>
86 * ldlex.l (INPUTLIST): New start condition.
87 (comment pattern, ",", "(", ")", "AS_NEEDED")
88 ({FILENAMECHAR1}{FILENAMECHAR}*, "-l"{FILENAMECHAR}+)
89 (quoted string pattern, whitespace pattern): Add INPUTLIST to
90 valid start conditions.
91 (<INPUTLIST>"="{FILENAMECHAR1}{FILENAMECHAR}*): New NAME rule.
92 (ldlex_inputlist): New start-condition-setter function.
93 * ldgram.y (input_list1): Rename from input_list. All recursive
95 (input_list): New wrapper rule for input_list1, setting
96 INPUTLIST lexer state for the duration of parsing input_list1.
97 * ldlang.c (lang_add_input_file): If the first character in the
98 filename is '=', prepend the sysroot and force the context of that
99 input file to non-sysroot.
100 * ld.texinfo (Options): When mentioning "=" and sysroot, mention
101 that --sysroot controls it, not only through the configuration.
102 (input files in linker scripts): When mentioning
103 behavior of first character "/" on scripts within sysroot, also
104 mention that effect can be forced by prefixing with "=" and
107 2014-10-14 Tristan Gingold <gingold@adacore.com>
109 * NEWS: Add marker for 2.25.
111 2014-10-13 Alan Modra <amodra@gmail.com>
113 * ldlang.c (lang_add_section): Set up map_head.s and map_tail.s when
116 2014-09-16 Kuan-Lin Chen <kuanlinchentw@gmail.com>
118 * emultempl/nds32elf.em (nds32_elf_after_open): Do not keep
120 (nds32_elf_after_allocation): Move all optimizations into
121 nds32_elf_relax_section.
123 2014-09-15 Andrew Bennett <andrew.bennett@imgtec.com>
124 Matthew Fortune <matthew.fortune@imgtec.com>
126 * ldmain.c (get_emulation): Add support for -mips32r6 and -mips64r6.
128 2014-09-12 Andrew Bennett <andrew.bennett@imgtec.com>
130 * configure.tgt: Add mips*-img-elf* target triple.
132 2014-09-01 Jon TURNEY <jon.turney@dronecode.org.uk>
134 * emultempl/pe.em (write_build_id, setup_build_id): Change pe/coff
135 build-id section name from '.build-id' to '.buildid'.
136 * emultempl/pep.em (write_build_id, setup_build_id): Ditto.
138 2014-08-22 Andreas Tobler <andreast@fgznet.ch>
140 * emulparams/armelf_fbsd.sh (TEXT_START_ADDR): Increase alignment to
141 64kB boundary like in armelf_linux.sh.
143 2014-08-22 Alan Modra <amodra@gmail.com>
145 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation): Call
146 bfd_elf_discard_info after generating glink .eh_frame. Delete
147 redundant test on ppc64_elf_setup_section_lists status.
149 2014-08-20 Maciej W. Rozycki <macro@codesourcery.com>
151 * emultempl/armelf.em (OPTION_STUBGROUP_SIZE): Fix formatting.
152 (OPTION_NO_MERGE_EXIDX_ENTRIES, OPTION_LONG_PLT): Likewise.
154 2014-08-20 Will Newton <will.newton@linaro.org>
156 * configure.tgt: Default armeb-*-eabi* to big endian.
158 2014-08-20 Daniel Micay <danielmicay@gmail.com>
160 * emultempl/pep.em: Add --high-entropy-va switch.
161 * ld.texinfo: Document the --high-entropy-va switch.
163 2014-08-20 Nick Clifton <nickc@redhat.com>
165 * scripttempl/DWARF.sc: Add copyright notice.
166 * scripttempl/aix.sc: Likewise.
167 * scripttempl/alpha.sc: Likewise.
168 * scripttempl/alphavms.sc: Likewise.
169 * scripttempl/aout.sc: Likewise.
170 * scripttempl/armaout.sc: Likewise.
171 * scripttempl/armbpabi.sc: Likewise.
172 * scripttempl/armcoff.sc: Likewise.
173 * scripttempl/avr.sc: Likewise.
174 * scripttempl/avrtiny.sc: Likewise.
175 * scripttempl/crisaout.sc: Likewise.
176 * scripttempl/delta68.sc: Likewise.
177 * scripttempl/dlx.sc: Likewise.
178 * scripttempl/elf.sc: Likewise.
179 * scripttempl/elf32cr16.sc: Likewise.
180 * scripttempl/elf32cr16c.sc: Likewise.
181 * scripttempl/elf32crx.sc: Likewise.
182 * scripttempl/elf32msp430.sc: Likewise.
183 * scripttempl/elf32msp430_3.sc: Likewise.
184 * scripttempl/elf32sh-symbian.sc: Likewise.
185 * scripttempl/elf32xc16x.sc: Likewise.
186 * scripttempl/elf32xc16xl.sc: Likewise.
187 * scripttempl/elf32xc16xs.sc: Likewise.
188 * scripttempl/elf64hppa.sc: Likewise.
189 * scripttempl/elf_chaos.sc: Likewise.
190 * scripttempl/elfd10v.sc: Likewise.
191 * scripttempl/elfd30v.sc: Likewise.
192 * scripttempl/elfi370.sc: Likewise.
193 * scripttempl/elfm68hc11.sc: Likewise.
194 * scripttempl/elfm68hc12.sc: Likewise.
195 * scripttempl/elfmicroblaze.sc: Likewise.
196 * scripttempl/elfxgate.sc: Likewise.
197 * scripttempl/elfxtensa.sc: Likewise.
198 * scripttempl/epiphany_4x4.sc: Likewise.
199 * scripttempl/epocpe.sc: Likewise.
200 * scripttempl/h8300.sc: Likewise.
201 * scripttempl/h8300h.sc: Likewise.
202 * scripttempl/h8300hn.sc: Likewise.
203 * scripttempl/h8300s.sc: Likewise.
204 * scripttempl/h8300sn.sc: Likewise.
205 * scripttempl/h8300sx.sc: Likewise.
206 * scripttempl/h8300sxn.sc: Likewise.
207 * scripttempl/h8500.sc: Likewise.
208 * scripttempl/h8500b.sc: Likewise.
209 * scripttempl/h8500c.sc: Likewise.
210 * scripttempl/h8500m.sc: Likewise.
211 * scripttempl/h8500s.sc: Likewise.
212 * scripttempl/hppaelf.sc: Likewise.
213 * scripttempl/i386beos.sc: Likewise.
214 * scripttempl/i386coff.sc: Likewise.
215 * scripttempl/i386go32.sc: Likewise.
216 * scripttempl/i386msdos.sc: Likewise.
217 * scripttempl/i860coff.sc: Likewise.
218 * scripttempl/i960.sc: Likewise.
219 * scripttempl/ia64vms.sc: Likewise.
220 * scripttempl/ip2k.sc: Likewise.
221 * scripttempl/iq2000.sc: Likewise.
222 * scripttempl/m68kaux.sc: Likewise.
223 * scripttempl/m68kcoff.sc: Likewise.
224 * scripttempl/m88kbcs.sc: Likewise.
225 * scripttempl/mcorepe.sc: Likewise.
226 * scripttempl/mep.sc: Likewise.
227 * scripttempl/mips.sc: Likewise.
228 * scripttempl/mipsbsd.sc: Likewise.
229 * scripttempl/mmo.sc: Likewise.
230 * scripttempl/moxie.sc: Likewise.
231 * scripttempl/nds32elf.sc: Likewise.
232 * scripttempl/nw.sc: Likewise.
233 * scripttempl/pe.sc: Likewise.
234 * scripttempl/pep.sc: Likewise.
235 * scripttempl/pj.sc: Likewise.
236 * scripttempl/ppcpe.sc: Likewise.
237 * scripttempl/psos.sc: Likewise.
238 * scripttempl/riscix.sc: Likewise.
239 * scripttempl/sh.sc: Likewise.
240 * scripttempl/sparccoff.sc: Likewise.
241 * scripttempl/st2000.sc: Likewise.
242 * scripttempl/tic30aout.sc: Likewise.
243 * scripttempl/tic30coff.sc: Likewise.
244 * scripttempl/tic4xcoff.sc: Likewise.
245 * scripttempl/tic54xcoff.sc: Likewise.
246 * scripttempl/tic80coff.sc: Likewise.
247 * scripttempl/v850.sc: Likewise.
248 * scripttempl/v850_rh850.sc: Likewise.
249 * scripttempl/vanilla.sc: Likewise.
250 * scripttempl/w65.sc: Likewise.
251 * scripttempl/xstormy16.sc: Likewise.
252 * scripttempl/z80.sc: Likewise.
253 * scripttempl/z8000.sc: Likewise.
255 2014-08-19 Alan Modra <amodra@gmail.com>
257 * configure: Regenerate.
259 2014-08-18 Alan Modra <amodra@gmail.com>
261 * ld.texinfo (--as-needed): Clarify that references from libraries
262 must be from needed libraries.
264 2014-08-18 Alan Modra <amodra@gmail.com>
266 * emultempl/aarch64elf.em (gld${EMULATION_NAME}_after_allocation):
267 Handle error status from bfd_elf_discard_info.
268 * emultempl/armelf.em: Likewise.
269 * emultempl/elf32.em: Likewise.
270 * emultempl/hppaelf.em: Likewise.
271 * emultempl/metagelf.em: Likewise.
272 * emultempl/nios2elf.em: Likewise.
273 * emultempl/ppc64elf.em: Likewise.
274 * emultempl/tic6xdsbt.em: Likewise.
275 * emultempl/vms.em: Likewise.
277 2014-08-14 Alan Modra <amodra@gmail.com>
280 * ldlang.c (map_head_is_link_order): Rename from
281 stripped_excluded_sections.
282 (lang_clear_os_map): New function, extracted from..
283 (strip_excluded_output_sections): ..here.
284 * ldlang.h (lang_clear_os_map): Declare.
285 * ldwrite.c (ldwrite): Call lang_clear_os_map.
286 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_after_allocation):
289 2014-08-14 Alan Modra <amodra@gmail.com>
291 * configure.ac: Move AC_PROG_CC and other macros earlier. Delete
292 plugin checks now done in config/plugins.m4.
293 * config.in: Regenerate.
294 * configure: Regenerate.
296 2014-08-14 Alan Modra <amodra@gmail.com>
298 * plugin.c (is_ir_dummy_bfd): Test BFD_PLUGIN flag rather than
301 2014-08-13 Yaakov Selkowitz <yselkowi@redhat.com>
303 * pe-dll.c (autofilter_entry_type autofilter_symbollist_i386): Add
306 2014-08-13 Alan Modra <amodra@gmail.com>
308 * ldlang.c (open_input_bfds): Don't use bfd_elf_get_dyn_lib_class.
310 2014-08-12 Alan Modra <amodra@gmail.com>
312 * ldlang.h (struct lang_input_statement_flags): Don't make "reload"
313 field conditional on ENABLE_PLUGINS.
314 * ldlang.c (open_input_bfds): Expand plugin_should_reload.
315 * plugin.h (plugin_should_reload): Delete.
316 * plugin.c (plugin_should_reload): Delete.
318 2014-08-12 Alan Modra <amodra@gmail.com>
320 * ldmain.c (notice): Update args.
321 * plugin.c (plugin_notice): Likewise. Follow warning sym link.
322 Handle new indirect symbol.
324 2014-08-12 Alan Modra <amodra@gmail.com>
326 * plugin.c (plugin_load_plugins): Set link_info.lto_plugin_active.
328 2014-08-08 Ulrich Drepper <drepper@gmail.com>
330 * ldlang.h (struct lang_input_statement_flags): Add pushed
332 * ldlex.h (enum option_values): Add OPTION_PUSH_STATE and
334 * lexsup.c (ld_options): Add entries for --push-state and
336 (parse_args): Handle OPTION_PUSH_STATE and OPTION_POP_STATE.
337 * ld.texinfo: Document --push-state and --pop-state.
339 2014-08-06 H.J. Lu <hongjiu.lu@intel.com>
342 * plugin.c (plugin_opt_plugin_arg): Drop --pass-through.
344 2014-08-05 Alan Modra <amodra@gmail.com>
346 * Makefile.in: Regenerate.
348 2014-07-29 Matthew Fortune <matthew.fortune@imgtec.com>
350 * emulparams/elf32bmip.sh: Add .MIPS.abiflags.
351 * emulparams/elf32bmipn32-defs.sh: Likewise.
352 * emulparams/elf64bmip-defs.sh: Likewise.
354 2014-07-27 Anthony Green <green@moxielogic.com>
356 * Makefile.am (ALL_EMULATION_SOURCES): Add moxiebox support.
357 (emoxiebox.c): Build.
358 * configure.tgt (targ_extra_ofiles): Add moxie-*-moxiebox*.
359 * emulparams/moxiebox.sh (TEXT_START_ADDR): New file.
360 * Makefile.in: Rebuilt.
362 2014-07-17 Stefan Kristiansson <stefan.kristiansson@saunalahti.fi>
364 * emulparams/elf32or1k_linux.sh (TEXT_START_ADDR): Increase from
365 0x0 to first page boundary at 0x2000.
367 2014-07-10 Max Filippov <jcmvbkbc@gmail.com>
369 * emultempl/xtensaelf.em (is_inconsistent_linkonce_section):
370 correctly handle missing dot in section name after
371 ".gnu.linkonce.prop.".
373 2014-07-08 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
375 * scripttempl/avr.sc: Remove KEEP for .data and
376 force .bss VMA to end of .data VMA.
378 2014-07-08 Will Newton <will.newton@linaro.org>
380 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Increase
381 alignment to 64kB boundary.
383 2014-07-04 Alan Modra <amodra@gmail.com>
385 * configure.ac: Update "configure.in" comments.
386 * configure: Regenerate.
388 2014-07-04 Alan Modra <amodra@gmail.com>
390 * configure.ac: Rename from configure.in.
391 * Makefile.in: Regenerate.
392 * config.in: Regenerate.
394 2014-07-04 Alan Modra <amodra@gmail.com>
396 * configure.in: Include bfd/version.m4.
397 (AC_INIT, AM_INIT_AUTOMAKE): Use modern form.
398 (BFD_VERSION): Delete.
399 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Remove bfd/configure.in.
400 * configure: Regenerate.
401 * Makefile.in: Regenerate.
403 2014-07-03 Alan Modra <amodra@gmail.com>
406 * ldlang.c (load_symbols): Always check flags.reload.
407 (open_input_bfds): Always reload --as-needed shared libraries,
408 not just when rescanning.
409 * ldlang.h (struct lang_input_statement_flags): Update reload comment.
410 * plugin.c (plugin_should_reload): Assume shared library arg.
411 * plugin.h (plugin_should_reload): Update comment.
413 2014-07-01 Alan Modra <amodra@gmail.com>
415 * emultempl/ppc64elf.em (stub_added): Delete.
416 (gld${EMULATION_NAME}_finish): Call ppc64_elf_build_stubs even when
417 none of the usual stubs have been added. Only change entry_section
420 2014-07-01 Alan Modra <amodra@gmail.com>
422 * sysdep.h: Don't include limits.h and sys/param.h. Don't
423 include unistd.h twice.
424 (LD_PATHMAX): Don't define.
425 * ldlang.c (lang_common): Don't use UINT_MAX.
427 2014-07-01 Barney Stratford <barney_stratford@fastmail.fm>
428 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
429 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
430 Soundararajan <Sounderarajan.D@atmel.com>
432 * Makefile.am (ALL_EMULATION_SOURCES): Add avrtiny emulation source.
433 (eavrtiny.c): Add rules for avrtiny emulation source.
434 * Makefile.in: Regenerate.
435 * configure.tgt: Add avrtiny to avr target emulations.
436 * scripttempl/avrtiny.sc: New file. Linker script template for
438 * emulparams/avrtiny.sh: New file. Emulation parameters for
441 2014-06-30 Ulrich Drepper <drepper@gmail.com>
443 * lexsup.c (parse_args): Check whether provided SONAME is empty
444 string. If yes, warn and ignore it. Don't overwrite valid SONAME
447 2014-06-26 Linda Zhang <lindasc@qq.com>
449 * emultempl/pe.em: Initialise insert_timestamp to true.
450 Add a --no-insert-timestamp command line option.
451 * emultempl/pep.em: Likewise.
452 * ld.texinfo: Document that --insert-timestamp is enabled by
453 default and that it now has an inverse command line option.
454 * NEWS: Mention the new behaviour.
456 2014-06-25 Nick Clifton <nickc@redhat.com>
458 * Makefile.am (ALL_EMULATION_SOURCES): Move ei386pep.c from
460 (ALL_64_EMULATION_SOURCES): ... to here.
461 (ALL_EMUL_EXTRA_OFILES): Move pep-dll.o from here...
462 (ALL_64_EMUL_EXTRA_OFILES): New. ... to here.
463 * configure.in (EMUL_EXTRA_OFILES): Include
464 ALL_64_EMUL_EXTRA_OFILES when making a 64-bit enabled build.
465 * Makefile.in: Regenerate.
466 * configure: Regenerate.
468 2014-06-18 Andreas Tobler <andreast@fgznet.ch>
470 * configure.tgt (arm*-*-freebsd*): Update targ_extra_emuls.
471 (arm*b-*-freebsd*): Add target.
472 * emulparams/armelfb_fbsd.sh: Added.
473 * emulparams/armelf_fbsd.sh: Updated.
474 * Makefile.am (ALL_EMULATION_SOURCES): Add earmelfb_fbsd.c.
475 * Makefile.in: Regenerate.
477 2014-06-16 Alan Modra <amodra@gmail.com>
479 * scripttempl/elf.sc: Edit out __rela_iplt symbol assignments from
480 .rel sections, and __rel_iplt from .rela sections.
481 * scripttempl/nds32elf.sc: Likewise.
482 * Makefile.am (ends32*.c) Depend on nds32elf.sc.
483 * Makefile.in: Regenerate.
485 2014-06-13 Alan Modra <amodra@gmail.com>
488 * ldlang.c (output_bfd_hash_table_free_fn): Delete.
489 (open_output): Don't set it..
490 * ldmain.c (ld_cleanup): ..or call it.
492 2014-06-13 Alan Modra <amodra@gmail.com>
494 * emultempl/cr16elf.em, * emultempl/elf32.em, * emultempl/genelf.em,
495 * emultempl/m68kcoff.em, * emultempl/m68kelf.em,
496 * emultempl/nds32elf.em, * emultempl/pe.em, * emultempl/pep.em,
497 * ldlang.c, * ldmain.c, * pe-dll.c: Update for bfd.link_next change.
499 2014-06-13 Alan Modra <amodra@gmail.com>
501 * Makefile.am (ALL_EMULATION_SOURCES): Add enios2elf.c, enios2linux.c.
502 * Makefile.in: Regenerate.
504 2014-06-07 Alan Modra <amodra@gmail.com>
506 * ldexp.c (exp_fold_tree_1 <etree_provide>): Make PROVIDEd
507 linker script symbol value override a built-in linker symbol.
509 2014-06-05 Joel Brobecker <brobecker@adacore.com>
511 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Add dependency on
512 bfd's development.sh.
513 * Makefile.in, configure: Regenerate.
515 2014-06-02 Alan Modra <amodra@gmail.com>
517 * emulparams/elf32bfin.sh: Rename from bfin.sh.
518 * emulparams/elf32bfinfd.sh: Update to suit.
519 * emulparams/msp430.sh: Rename from msp430all.sh. Remove
520 MSP430_NAME and msp430X vars.
521 * emulparams/msp430X.sh: New.
522 * emulparams/score3_elf.sh: Rename from scoreelf.sh. Remove
523 SCORE_NAME and score7_elf ARCH setting.
524 * emulparams/score7_elf.sh: New.
525 * Makefile.am (eelf32bfin.c, eelf32bfinfd.c): Update dependencies.
526 (emsp430.c, emsp430X.c, escore3_elf.c, escore7_elf.c): Likewise.
527 * Makefile.in: Regenerate.
528 * genscripts.sh: Delete customizer_script param.
530 2014-05-28 Hans-Peter Nilsson <hp@axis.com>
532 * Makefile.am: Change all rules with ${GENSCRIPTS}
533 invocations to be just dependencies.
534 ($(ALL_EMULATION_SOURCES) $(ALL_64_EMULATION_SOURCES))
535 (run-genscripts): New rules.
536 * Makefile.in: Regenerate.
538 2014-05-27 DJ Delorie <dj@redhat.com>
540 * ld/ldemul.h (extra_map_file_text): New field.
541 (ldemul_extra_map_file_text): Declare.
542 * ld/ldemul.c (ldemul_extra_map_file_text): Define.
543 * ld/ldlang.c (lang_map): Call it.
545 * ld/emultempl/rxelf.em: Add extra_map_file_text hook.
546 * ld/emultempl/aix.em: Add NULL extra_map_file_text hook.
547 * ld/emultempl/armcoff.em: Likewise.
548 * ld/emultempl/beos.em: Likewise.
549 * ld/emultempl/elf32.em: Likewise.
550 * ld/emultempl/generic.em: Likewise.
551 * ld/emultempl/gld960.em: Likewise.
552 * ld/emultempl/gld960c.em: Likewise.
553 * ld/emultempl/linux.em: Likewise.
554 * ld/emultempl/lnk960.em: Likewise.
555 * ld/emultempl/m68kcoff.em: Likewise.
556 * ld/emultempl/pe.em: Likewise.
557 * ld/emultempl/pep.em: Likewise.
558 * ld/emultempl/sunos.em: Likewise.
559 * ld/emultempl/ticoff.em: Likewise.
560 * ld/emultempl/vanilla.em: Likewise.
562 2014-05-24 Alan Modra <amodra@gmail.com>
564 * ldlang.c (base): Move variable to..
565 * mri.c: ..here, and make static.
566 * ldlang.h (base): Delete declaration.
568 2014-05-20 Hans-Peter Nilsson <hp@axis.com>
570 * Makefile.am (ALL_EMULATION_SOURCES): Add missing eelf32mbel_linux.c.
571 * Makefile.in: Regenerate.
573 2014-05-20 Alan Modra <amodra@gmail.com>
576 * emulparams/elf32ppccommon.sh (_SDA_BASE_, _SDA2_BASE_): Delete.
577 * emultempl/ppc32elf.em (ppc_before_allocation): Call
578 ppc_elf_maybe_strip_sdata_syms.
579 * ldlang.c (size_input_section): Correct output_offset value
580 for excluded input sections.
582 2014-05-16 John Marino <binutils@marino.st>
584 * configure.tgt: Add /lib to dragonfly NATIVE_LIB_DIRS.
586 2014-05-11 Chung-Lin Tang <cltang@codesourcery.com>
588 * emulparams/nios2linux.sh (OTHER_GOT_SYMBOLS): Wrap _gp in HIDDEN(),
589 and gp in PROVIDE_HIDDEN.
591 2014-05-10 Hans-Peter Nilsson <hp@bitrange.com>
593 * ldlang.c (lang_finish): Don't call bfd_link_hash_table_free here.
594 (output_bfd_hash_table_free_fn): New variable.
595 (open_output): Save the _bfd_link_hash_table_free function for the
596 output_bfd into output_bfd_hash_table_free_fn.
597 * ldmain.c (ld_cleanup): If set, call output_bfd_hash_table_free_fn
599 * ldlang.h (output_bfd_hash_table_free_fn): Declare.
601 2014-05-02 Alan Modra <amodra@gmail.com>
603 * emultempl/metagelf.em: Update bfd target vector naming.
604 * emultempl/nios2elf.em: Likewise.
605 * emultempl/spuelf.em: Likewise.
606 * emultempl/tic6xdsbt.em: Likewise.
608 2014-04-22 Christian Svensson <blue@cmd.nu>
610 * Makefile.am: Remove openrisc and or32 support. Add support for or1k.
611 * configure.tgt: Likewise.
612 * emulparams/elf32or1k.sh: New file.
613 * emulparams/elf32or1k_linux.sh: New file.
614 * emulparams/elf32openrisc.sh: Delete.
615 * emulparams/or32.sh: Delete.
616 * emulparams/or32elf.sh: Delete.
617 * scripttempl/or32.sc: Delete.
618 * Makefile.in: Regenerate.
620 2014-04-21 Richard Henderson <rth@redhat.com>
622 * emultempl/alphaelf.em (alpha_after_parse): Enable 2 relax passes.
624 2014-04-16 Steve Ellcey <sellcey@mips.com>
626 * emultempl/elf32.em: Include safe-ctype.h.
628 2014-04-16 Steve Ellcey <sellcey@mips.com>
630 * ldbuildid.c (generate_build_id): Add ATTRIBUTE_UNUSED to size arg.
632 2014-04-09 Nick Clifton <nickc@redhat.com>
634 * Makefile.am (default-manifest.o): Remove rule.
635 (EMUL_EXTRA_BINARIES): Delete.
636 (ALL_EMUL_EXTRA_BINARIES): Delete.
637 (ld_new_DEPENDENCIES): Remove EMUL_EXTRA_BINARIES.
638 (install-data-local): Remove EMUL_EXTRA_BINARIES.
639 * Makefile.in: Regenerate.
640 * configure.in (all_emul_extra_binaries): Delete.
641 (EMUL_EXTRA_BINARIES): Remove.
642 * configure: Regenerate.
643 * configure.tgt (target_extra_binaries): Delete.
644 * emultempl/default-manifest.rc: Delete.
645 * ld.texinfo: Remove discussion of default manifest.
646 * emulparams/i386pe.sh (DEFAULT_MANIFEST): Delete.
647 * emulparams/i386pep.sh (DEFAULT_MANIFEST): Delete.
649 2014-04-09 Alan Modra <amodra@gmail.com>
651 * emultempl/spuelf.em: Include safe-ctype.h, remove duplicate errno.h.
652 * emultempl/nds32elf.em: Include bfd_stdint.h.
653 * po/POTFILES.in: Regenerate.
655 2014-04-09 Alan Modra <amodra@gmail.com>
657 * emultempl/ppc32elf.em (no_zero_padding, ppc_finish): New functions.
658 (LDEMUL_FINISH): Define.
660 2014-04-08 Nick Clifton <nickc@redhat.com>
662 * scripttempl/pe.sc (R_RSRC): Remove default manifest.
663 * scripttempl/pep.sc (R_RSRC): Remove default manifest.
665 2014-04-08 Jon TURNEY <jon.turney@dronecode.org.uk>
667 * emultempl/elf32.em (id_note_section_size, read_hex, write_build_id):
668 Move code for parsing build-id option and calculating the build-id to...
669 * ldbuildid.c: New file.
670 * ldbuildid.h: New file.
671 * Makefile.am (CFILES, HFILES, OFILES, ld_new_SOURCES): Add new
673 * Makefile.in: Regenerate.
674 * ld.texinfo: Update --build-id description to mention COFF
676 * NEWS: Mention support for COFF build ids.
677 * emultempl/pe.em (gld${EMULATION_NAME}_handle_option):
678 (pecoff_checksum_contents, write_build_id, setup_build_id)
679 (gld_${EMULATION_NAME}_after_open): Handle and implement
681 * emultempl/pep.em: Likewise.
683 2014-04-04 Cary Coutant <ccoutant@google.com>
686 * ld.texinfo: Document optional comma following output section
687 command and overlay command.
689 2014-04-04 Alan Modra <amodra@gmail.com>
691 * ldlang.c (lang_size_sections_1 <lang_input_section_enum>): Use
692 current "fill", not "output_section_statement->fill".
694 2014-03-31 Nick Clifton <nickc@redhat.com>
697 * emultempl/elf32.em (_after_open): Create a .note.GNU-stack
698 section when performing a relocatable link with -z [no]execstack
701 2014-03-27 H.J. Lu <hongjiu.lu@intel.com>
704 * ldmain.c (symbol_warning): New function.
705 (warning_callback): Use it. Scan all input files for a reference
708 2014-03-21 Christopher Faylor <me.cygwin2013@cgf.cx>
710 * ld.texinfo: Document change in handling of --enable-auto-image-base.
711 * emultempl/pe.em (pe_auto_image_base): Set to default base.
712 (gld_${EMULATION_NAME}_list_options): Change usage message to reflect
713 optional --enable-auto-image-base argument.
714 (gld${EMULATION_NAME}_handle_option): Handle optional
715 --enable-auto-image-base argument.
716 (compute_dll_image_base): Eliminate constant. Use pe_auto_image_base.
718 2014-03-19 Nick Clifton <nickc@redhat.com>
720 * Makefile.am (default-manifest.o): Use WINDRES_FOR_TARGET.
721 * Makefile.in: Regenerate.
722 * emultempl/default-manifest.rc: Fix typo.
723 * scripttempl/pe.sc (R_RSRC): Fix default-manifest exclusion.
724 (.rsrc): Add SUBALIGN(4). Remove SORT.
725 * scripttempl/pep.sc: Likewise.
727 2014-03-17 Christopher Faylor <me.cygwin2014@cgf.cx>
729 * Makefile.am: Use host version of windres.
730 * Makefile.in: Regenerate.
732 2014-03-14 Romain Geissler <romain.geissler@amadeus.com>
733 Alan Modra <amodra@gmail.com>
735 * ldlang.h (full_name_provided): New input flag.
736 * ldlang.c (new_afile): Don't use lang_input_file_is_search_file_enum
737 for -l:namespec. Instead use lang_input_file_is_l_enum with
738 full_name_provided flag.
739 * ldlfile.c (ldfile_open_file_search): Don't complete lib name if
740 full_name_provided flag is set.
741 * emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive):
742 Handle full_name_provided libraries. Tidy EXTRA_SHLIB_EXTENSION
743 support. Set DT_NEEDED for -l:namespec as namespec.
744 * emultempl/aix.em (ppc_after_open_output): Handle full_name_provided.
745 * emultempl/linux.em (gld${EMULATION_NAME}_open_dynamic_archive):
746 Don't handle full_name_provided libraries.
747 * emultempl/pe.em (gld${EMULATION_NAME}_open_dynamic_archive): Ditto.
748 * emultempl/pep.em (gld${EMULATION_NAME}_open_dynamic_archive): Ditto.
749 * emultempl/vms.em (gld${EMULATION_NAME}_open_dynamic_archive): Ditto.
751 2014-03-12 Alan Modra <amodra@gmail.com>
753 * Makefile.in: Regenerate.
755 2014-03-05 Alan Modra <amodra@gmail.com>
757 Update copyright years.
759 2014-03-04 Nick Clifton <nickc@redhat.com>
761 * Makefile.am (ALL_EMUL_EXTRA_BINARIES): Remove default-manifest.
762 * Makefile.in: Regenerate.
764 2014-02-27 Yuri Gribov <y.gribov@samsung.com>
766 * emultempl/armelf.em (OPTION_LONG_PLT): Define.
767 (PARSE_AND_LIST_LONGOPTS): Add long-plt.
768 (PARSE_AND_LIST_OPTIONS): Likewise.
769 (PARSE_AND_LIST_ARGS_CASES): Handle long-plt.
770 * ld.texinfo: Document --long-plt.
772 2014-02-27 Alan Modra <amodra@gmail.com>
774 * emulparams/elf32ppcvxworks.sh: Source plt_unwind.sh and
776 * emultempl/ppc32elf.em (ppc_after_open): Don't compile for
778 (LDEMUL_AFTER_OPEN): Don't set for vxworks.
779 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Exclude
780 -secure-plt, -bss-plt and -sdata-got when vxworks.
782 2014-02-27 Nick Clifton <nickc@redhat.com>
784 * configure.in (all_emul_extra_binaries): New variable. Populated
785 by invoking configure.tgt.
786 (EMUL_EXTRA_BINARIES): New substitution.
787 * configure: Regenerate.
788 * configure.tgt (target_extra_binaries): New variable. Set to
789 default-manifest.o for Cygwin and MinGW targets.
790 * Makefile.am (EMUL_EXTRA_BINARIES): New variable. Initialised
791 by the configure script.
792 (ALL_EMUL_EXTRA_BINARIES): New variable.
793 (default-manifest.o): New rule to build the default manifest.
794 (ld_new_DEPENDENCIES): Add EMUL_EXTRA_BINARIES.
795 (install-data-local): Add EMUL_EXTRA_BINARIES.
796 * Makefile.in: Regenerate.
797 * ld.texinfo: Document default manifest support.
798 * emulparams/i386pe.sh (DEFAULT_MANIFEST): Define.
799 * emulparams/i386pep.sh (DEFAULT_MANIFEST): Define.
800 * emultempl/default-manifest.rc: New file.
801 * scripttempl/pe.sc (R_RSRC): Include DEFAULT_MANIFEST, if defined.
802 * scripttempl/pep.sc (R_RSRC): Likewise.
804 2014-02-26 Dan Mick <dan.mick@inktank.com>
807 * ldcref.c (cref_sort_array): Compare unmangled names unless
808 demanglng has been requiested.
809 (output_one_cref): Output unmangled name unless demangling has
812 2014-02-19 Igor Zamyatin <igor.zamyatin@intel.com>
813 H.J. Lu <hongjiu.lu@intel.com>
815 * emulparams/elf_x86_64.sh (TINY_READONLY_SECTION): New.
817 2014-02-19 Alan Modra <amodra@gmail.com>
819 * emultempl/ppc64elf.em (params): Init new field.
820 (ppc_create_output_section_statements): Set params.save_restore_funcs
822 (PARSE_AND_LIST_*): Add support for --save-restore-funcs and
823 --no-save-restore-funcs.
825 2014-02-17 Alan Modra <amodra@gmail.com>
827 * emultemps/ppc64elf.em (params): New static struct replacing
828 various other static vars. Adjust code throughout file.
830 2014-02-17 Alan Modra <amodra@gmail.com>
832 * emultempl/ppc32elf.em (ppc_after_open_output): Really enable
833 ppc476 workaround for ld -r.
835 2014-02-12 Alan Modra <amodra@gmail.com>
837 * emultempl/ppc32elf.em (pagesize): New static var.
838 (ppc_after_open_output): Set params.pagesize_p2 from pagesize.
839 (PARSE_AND_LIST_ARGS_CASES): Adjust to use pagesize.
841 2014-02-11 Andrew Pinski <apinski@cavium.com>
843 * emulparams/aarch64linux32.sh (LIBPATH_SUFFIX): Change to ilp32.
844 (ELF_INTERPRETER_NAME): Define.
845 * emulparams/aarch64linux32b.sh (ELF_INTERPRETER_NAME): Define.
847 2014-02-10 Alan Modra <amodra@gmail.com>
849 * po/ld.pot: Regenerate.
851 2014-02-03 Alan Modra <amodra@gmail.com>
853 * emultempl/ppc32elf.em (no_tls_get_addr_opt, emit_stub_syms)
854 plt_style): Delete. Adjust all refs to instead use..
855 (params): ..this. New variable.
856 (ppc_after_open_output): New function. Tweak params and pass to
858 (ppc_after_open): Adjust ppc_elf_select_plt_layout call.
859 (ppc_before_allocation): Adjust ppc_elf_tls_setup call. Enable
860 relaxation for ppc476 workaround.
861 (PARSE_AND_LIST_*): Add --{no-,}ppc476-workaround support.
862 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
864 2014-02-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
866 * ld/ld.texinfo: Change ALIGN_WITH_INPUT documentation.
867 * ld/ldlang.c (lang_size_sections_1): Add dotdelta
868 variable which reflects the VMA change due to alignment
869 requirements. Use dotdelta do change the LMA if
870 ALIGN_WITH_INPUT is requested.
872 2014-02-01 Hans-Peter Nilsson <hp@bitrange.com>
874 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Fix typo in
875 call to bfd_set_section_vma exposed by recent bfd_set_section_vma
878 2014-01-30 Sandra Loosemore <sandra@codesourcery.com>
880 * Makefile.am (enios2elf.c, enios2linux.c): Update dependencies.
881 * Makefile.in: Regenerated.
882 * emulparams/nios2elf.sh (EXTRA_EM_FILE): Set.
883 * emulparams/nios2linux.sh (EXTRA_EM_FILE): Set.
884 * emultempl/nios2elf.em: New file.
885 * gen-doc.texi (NIOSII): Set.
886 * ld.texinfo (NIOSII): Set.
888 2014-01-28 Nick Clifton <nickc@redhat.com>
890 * Makefile.am: Remove obsolete MSP430 emulations.
891 * configure.tgt: Likewise.
892 * emulparams/msp430all.sh: Likewise.
893 * Makefile.in: Regenerate.
895 2014-01-24 H.J. Lu <hongjiu.lu@intel.com>
898 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Improve
899 orphaned TLS section handling.
901 2014-01-24 Alan Modra <amodra@gmail.com>
903 * ldlang.c (lang_output_section_find_by_flags): Be careful to
904 test look->bfd_section->flags if available rather than
905 look->flags. Separate SEC_THREAD_LOCAL handling from
906 SEC_READONLY loop, and rewrite.
908 2014-01-22 Alan Modra <amodra@gmail.com>
910 * ldlang.c (asneeded_list_head, asneeded_list_tail): New vars.
911 (lang_init): Initialise them.
912 (lang_print_asneeded): New function.
913 (lang_process): Call lang_print_asneeded.
914 * ldlang.h (struct asneeded_minfo): New.
915 (asneeded_list_tail): Declare.
916 * ldmain.c (add_archive_element): Improve archive map heading.
917 * ldmisc.c (minfo): Stash --as-needed info.
919 2014-01-22 Alan Modra <amodra@gmail.com>
921 * ld.h (struct map_symbol_def): Move to..
923 * ldlang.c (print_assignment): Don't set expld.assign_name to dot.
925 2014-01-22 Alan Modra <amodra@gmail.com>
927 * ld.texinfo (Output Section Discarding): Mention assigning to dot
928 as a way of keeping otherwise empty sections.
929 * ldexp.c (is_dot, is_value, is_sym_value, is_dot_ne_0,
930 is_dot_plus_0, is_align_conditional): New predicates.
931 (exp_fold_tree_1): Set SEC_KEEP when assigning to dot inside an
932 output section, except for some special cases.
933 * scripttempl/elfmicroblaze.sc: Use canonical form to align at
934 end of .heap and .stack.
936 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
938 * emulparams/aarch64linuxb.sh (ELF_INTERPRETER_NAME): Define.
940 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
942 * emulparams/aarch64linux.sh (ELF_INTERPRETER_NAME): Define.
944 2014-01-20 Alan Modra <amodra@gmail.com>
946 * ldlang.h (struct lang_definedness_hash_entry): Add by_object and
947 by_script. Make iteration a single bit field.
948 (lang_track_definedness, lang_symbol_definition_iteration): Delete.
949 (lang_symbol_defined): Declare.
950 * ldlang.c (lang_statement_iteration): Expand comment a little.
951 (lang_init <lang_definedness_table>): Make it bigger.
952 (lang_track_definedness, lang_symbol_definition): Delete.
953 (lang_definedness_newfunc): Update.
954 (lang_symbol_defined): New function.
955 (lang_update_definedness): Create entries here. Do track whether
956 script definition of symbol is valid, even when also defined in
958 * ldexp.c (fold_name <DEFINED>): Update.
959 (fold_name <NAME>): Allow self-assignment for absolute symbols
960 defined in a linker script.
962 2014-01-20 Guy Martin <gmsoft@tuxicoman.be>
963 Alan Modra <amodra@gmail.com>
965 * ldlang.h (lang_output_section_get): Define.
966 * ldlang.c (lang_output_section_get): Likewise.
967 (init_os): Set the output_section userdata to the output
969 * emultempl/hppaelf.em: Use lang_output_section_get instead of
970 lang_output_section_find where applicable.
971 * emultempl/aarch64elf.em: Likewise.
972 * emultempl/aix.em: Likewise.
973 * emultempl/armelf.em: Likewise.
974 * emultempl/m68hc1xelf.em: Likewise.
975 * emultempl/metagelf.em: Likewise.
976 * emultempl/mipself.em: Likewise.
977 * emultempl/ppc64elf.em: Likewise.
978 * emultempl/spuelf.em: Likewise.
980 2014-01-17 Alan Modra <amodra@gmail.com>
982 * genscripts.sh (COMPILE_IN): Don't set if already set.
983 * emulparams/nds32elf.sh: Don't clear EMULATION_LIBPATH, set
985 * emulparams/nds32elf16m.sh: Likewise.
986 * emulparams/nds32elf_linux.sh: Likewise.
987 * emultempl/aix.em: Test COMPILE_IN value is "yes".
988 * emultempl/armcoff.em: Likewise.
989 * emultempl/elf32.em: Likewise.
990 * emultempl/generic.em: Likewise.
991 * emultempl/gld960.em: Likewise.
992 * emultempl/gld960c.em: Likewise.
993 * emultempl/linux.em: Likewise.
994 * emultempl/lnk960.em: Likewise.
995 * emultempl/m68kcoff.em: Likewise.
996 * emultempl/sunos.em: Likewise.
997 * emultempl/ticoff.em: Likewise.
999 2014-01-16 H.J. Lu <hongjiu.lu@intel.com>
1002 * genscripts.sh: Don't search directory with LIBPATH_SUFFIX_SKIP
1004 * emulparams/elf32_x86_64.sh (LIBPATH_SUFFIX_SKIP): Set to 64
1005 for elf32_x86_64 emulation.
1006 * emulparams/elf_i386.sh (LIBPATH_SUFFIX_SKIP): Set to 64
1007 for elf_i386 emulation.
1009 2014-01-16 Alan Modra <amodra@gmail.com>
1011 * ld.h (fat_section_userdata_type, get_userdata): Move to..
1012 * ldlang.h (input_section_userdata_type, get_userdata): ..here.
1013 * ldlang.c (init_map_userdata): Delete. Fold into..
1014 (sort_def_symbol): ..here. Don't attach input section userdata
1015 to output sections or global bfd sections.
1016 (lang_map): Don't pre-allocate input section userdata.
1017 (init_os): Don't allocate userdata for output sections.
1018 (print_all_symbols): Update.
1020 2014-01-15 H.J. Lu <hongjiu.lu@intel.com>
1022 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
1023 Silence uninitialized warning on ehdr_start_save with older
1026 2014-01-15 Alan Modra <amodra@gmail.com>
1028 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Define
1029 __ehdr_start before size_dynamic_sections and restore afterwards.
1031 2014-01-10 Alan Modra <amodra@gmail.com>
1036 * ldlang.c (lang_size_sections): Remove unneeded RELRO base
1037 adjust. Tidy comments.
1038 * ld.texinfo (DATA_SEGMENT_RELRO_END): Correct description.
1040 2014-01-10 Hans-Peter Nilsson <hp@axis.com>
1042 * emulparams/crislinux.sh (COMMONPAGESIZE): Define.
1044 2014-01-08 H.J. Lu <hongjiu.lu@intel.com>
1049 * ldlang.c (lang_size_sections): Properly align RELRO base.
1051 2014-01-08 H.J. Lu <hongjiu.lu@intel.com>
1053 * ldver.c (ldversion): Update copyright year to 2014.
1055 For older changes see ChangeLog-2013
1057 Copyright (C) 2014 Free Software Foundation, Inc.
1059 Copying and distribution of this file, with or without modification,
1060 are permitted in any medium without royalty provided the copyright
1061 notice and this notice are preserved.
1067 version-control: never