1 2014-09-12 Andrew Bennett <andrew.bennett@imgtec.com>
3 * configure.tgt: Add mips*-img-elf* target triple.
5 2014-09-01 Jon TURNEY <jon.turney@dronecode.org.uk>
7 * emultempl/pe.em (write_build_id, setup_build_id): Change pe/coff
8 build-id section name from '.build-id' to '.buildid'.
9 * emultempl/pep.em (write_build_id, setup_build_id): Ditto.
11 2014-08-22 Andreas Tobler <andreast@fgznet.ch>
13 * emulparams/armelf_fbsd.sh (TEXT_START_ADDR): Increase alignment to
14 64kB boundary like in armelf_linux.sh.
16 2014-08-22 Alan Modra <amodra@gmail.com>
18 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation): Call
19 bfd_elf_discard_info after generating glink .eh_frame. Delete
20 redundant test on ppc64_elf_setup_section_lists status.
22 2014-08-20 Maciej W. Rozycki <macro@codesourcery.com>
24 * emultempl/armelf.em (OPTION_STUBGROUP_SIZE): Fix formatting.
25 (OPTION_NO_MERGE_EXIDX_ENTRIES, OPTION_LONG_PLT): Likewise.
27 2014-08-20 Will Newton <will.newton@linaro.org>
29 * configure.tgt: Default armeb-*-eabi* to big endian.
31 2014-08-20 Daniel Micay <danielmicay@gmail.com>
33 * emultempl/pep.em: Add --high-entropy-va switch.
34 * ld.texinfo: Document the --high-entropy-va switch.
36 2014-08-20 Nick Clifton <nickc@redhat.com>
38 * scripttempl/DWARF.sc: Add copyright notice.
39 * scripttempl/aix.sc: Likewise.
40 * scripttempl/alpha.sc: Likewise.
41 * scripttempl/alphavms.sc: Likewise.
42 * scripttempl/aout.sc: Likewise.
43 * scripttempl/armaout.sc: Likewise.
44 * scripttempl/armbpabi.sc: Likewise.
45 * scripttempl/armcoff.sc: Likewise.
46 * scripttempl/avr.sc: Likewise.
47 * scripttempl/avrtiny.sc: Likewise.
48 * scripttempl/crisaout.sc: Likewise.
49 * scripttempl/delta68.sc: Likewise.
50 * scripttempl/dlx.sc: Likewise.
51 * scripttempl/elf.sc: Likewise.
52 * scripttempl/elf32cr16.sc: Likewise.
53 * scripttempl/elf32cr16c.sc: Likewise.
54 * scripttempl/elf32crx.sc: Likewise.
55 * scripttempl/elf32msp430.sc: Likewise.
56 * scripttempl/elf32msp430_3.sc: Likewise.
57 * scripttempl/elf32sh-symbian.sc: Likewise.
58 * scripttempl/elf32xc16x.sc: Likewise.
59 * scripttempl/elf32xc16xl.sc: Likewise.
60 * scripttempl/elf32xc16xs.sc: Likewise.
61 * scripttempl/elf64hppa.sc: Likewise.
62 * scripttempl/elf_chaos.sc: Likewise.
63 * scripttempl/elfd10v.sc: Likewise.
64 * scripttempl/elfd30v.sc: Likewise.
65 * scripttempl/elfi370.sc: Likewise.
66 * scripttempl/elfm68hc11.sc: Likewise.
67 * scripttempl/elfm68hc12.sc: Likewise.
68 * scripttempl/elfmicroblaze.sc: Likewise.
69 * scripttempl/elfxgate.sc: Likewise.
70 * scripttempl/elfxtensa.sc: Likewise.
71 * scripttempl/epiphany_4x4.sc: Likewise.
72 * scripttempl/epocpe.sc: Likewise.
73 * scripttempl/h8300.sc: Likewise.
74 * scripttempl/h8300h.sc: Likewise.
75 * scripttempl/h8300hn.sc: Likewise.
76 * scripttempl/h8300s.sc: Likewise.
77 * scripttempl/h8300sn.sc: Likewise.
78 * scripttempl/h8300sx.sc: Likewise.
79 * scripttempl/h8300sxn.sc: Likewise.
80 * scripttempl/h8500.sc: Likewise.
81 * scripttempl/h8500b.sc: Likewise.
82 * scripttempl/h8500c.sc: Likewise.
83 * scripttempl/h8500m.sc: Likewise.
84 * scripttempl/h8500s.sc: Likewise.
85 * scripttempl/hppaelf.sc: Likewise.
86 * scripttempl/i386beos.sc: Likewise.
87 * scripttempl/i386coff.sc: Likewise.
88 * scripttempl/i386go32.sc: Likewise.
89 * scripttempl/i386msdos.sc: Likewise.
90 * scripttempl/i860coff.sc: Likewise.
91 * scripttempl/i960.sc: Likewise.
92 * scripttempl/ia64vms.sc: Likewise.
93 * scripttempl/ip2k.sc: Likewise.
94 * scripttempl/iq2000.sc: Likewise.
95 * scripttempl/m68kaux.sc: Likewise.
96 * scripttempl/m68kcoff.sc: Likewise.
97 * scripttempl/m88kbcs.sc: Likewise.
98 * scripttempl/mcorepe.sc: Likewise.
99 * scripttempl/mep.sc: Likewise.
100 * scripttempl/mips.sc: Likewise.
101 * scripttempl/mipsbsd.sc: Likewise.
102 * scripttempl/mmo.sc: Likewise.
103 * scripttempl/moxie.sc: Likewise.
104 * scripttempl/nds32elf.sc: Likewise.
105 * scripttempl/nw.sc: Likewise.
106 * scripttempl/pe.sc: Likewise.
107 * scripttempl/pep.sc: Likewise.
108 * scripttempl/pj.sc: Likewise.
109 * scripttempl/ppcpe.sc: Likewise.
110 * scripttempl/psos.sc: Likewise.
111 * scripttempl/riscix.sc: Likewise.
112 * scripttempl/sh.sc: Likewise.
113 * scripttempl/sparccoff.sc: Likewise.
114 * scripttempl/st2000.sc: Likewise.
115 * scripttempl/tic30aout.sc: Likewise.
116 * scripttempl/tic30coff.sc: Likewise.
117 * scripttempl/tic4xcoff.sc: Likewise.
118 * scripttempl/tic54xcoff.sc: Likewise.
119 * scripttempl/tic80coff.sc: Likewise.
120 * scripttempl/v850.sc: Likewise.
121 * scripttempl/v850_rh850.sc: Likewise.
122 * scripttempl/vanilla.sc: Likewise.
123 * scripttempl/w65.sc: Likewise.
124 * scripttempl/xstormy16.sc: Likewise.
125 * scripttempl/z80.sc: Likewise.
126 * scripttempl/z8000.sc: Likewise.
128 2014-08-19 Alan Modra <amodra@gmail.com>
130 * configure: Regenerate.
132 2014-08-18 Alan Modra <amodra@gmail.com>
134 * ld.texinfo (--as-needed): Clarify that references from libraries
135 must be from needed libraries.
137 2014-08-18 Alan Modra <amodra@gmail.com>
139 * emultempl/aarch64elf.em (gld${EMULATION_NAME}_after_allocation):
140 Handle error status from bfd_elf_discard_info.
141 * emultempl/armelf.em: Likewise.
142 * emultempl/elf32.em: Likewise.
143 * emultempl/hppaelf.em: Likewise.
144 * emultempl/metagelf.em: Likewise.
145 * emultempl/nios2elf.em: Likewise.
146 * emultempl/ppc64elf.em: Likewise.
147 * emultempl/tic6xdsbt.em: Likewise.
148 * emultempl/vms.em: Likewise.
150 2014-08-14 Alan Modra <amodra@gmail.com>
153 * ldlang.c (map_head_is_link_order): Rename from
154 stripped_excluded_sections.
155 (lang_clear_os_map): New function, extracted from..
156 (strip_excluded_output_sections): ..here.
157 * ldlang.h (lang_clear_os_map): Declare.
158 * ldwrite.c (ldwrite): Call lang_clear_os_map.
159 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_after_allocation):
162 2014-08-14 Alan Modra <amodra@gmail.com>
164 * configure.ac: Move AC_PROG_CC and other macros earlier. Delete
165 plugin checks now done in config/plugins.m4.
166 * config.in: Regenerate.
167 * configure: Regenerate.
169 2014-08-14 Alan Modra <amodra@gmail.com>
171 * plugin.c (is_ir_dummy_bfd): Test BFD_PLUGIN flag rather than
174 2014-08-13 Yaakov Selkowitz <yselkowi@redhat.com>
176 * pe-dll.c (autofilter_entry_type autofilter_symbollist_i386): Add
179 2014-08-13 Alan Modra <amodra@gmail.com>
181 * ldlang.c (open_input_bfds): Don't use bfd_elf_get_dyn_lib_class.
183 2014-08-12 Alan Modra <amodra@gmail.com>
185 * ldlang.h (struct lang_input_statement_flags): Don't make "reload"
186 field conditional on ENABLE_PLUGINS.
187 * ldlang.c (open_input_bfds): Expand plugin_should_reload.
188 * plugin.h (plugin_should_reload): Delete.
189 * plugin.c (plugin_should_reload): Delete.
191 2014-08-12 Alan Modra <amodra@gmail.com>
193 * ldmain.c (notice): Update args.
194 * plugin.c (plugin_notice): Likewise. Follow warning sym link.
195 Handle new indirect symbol.
197 2014-08-12 Alan Modra <amodra@gmail.com>
199 * plugin.c (plugin_load_plugins): Set link_info.lto_plugin_active.
201 2014-08-08 Ulrich Drepper <drepper@gmail.com>
203 * ldlang.h (struct lang_input_statement_flags): Add pushed
205 * ldlex.h (enum option_values): Add OPTION_PUSH_STATE and
207 * lexsup.c (ld_options): Add entries for --push-state and
209 (parse_args): Handle OPTION_PUSH_STATE and OPTION_POP_STATE.
210 * ld.texinfo: Document --push-state and --pop-state.
212 2014-08-06 H.J. Lu <hongjiu.lu@intel.com>
215 * plugin.c (plugin_opt_plugin_arg): Drop --pass-through.
217 2014-08-05 Alan Modra <amodra@gmail.com>
219 * Makefile.in: Regenerate.
221 2014-07-29 Matthew Fortune <matthew.fortune@imgtec.com>
223 * emulparams/elf32bmip.sh: Add .MIPS.abiflags.
224 * emulparams/elf32bmipn32-defs.sh: Likewise.
225 * emulparams/elf64bmip-defs.sh: Likewise.
227 2014-07-27 Anthony Green <green@moxielogic.com>
229 * Makefile.am (ALL_EMULATION_SOURCES): Add moxiebox support.
230 (emoxiebox.c): Build.
231 * configure.tgt (targ_extra_ofiles): Add moxie-*-moxiebox*.
232 * emulparams/moxiebox.sh (TEXT_START_ADDR): New file.
233 * Makefile.in: Rebuilt.
235 2014-07-17 Stefan Kristiansson <stefan.kristiansson@saunalahti.fi>
237 * emulparams/elf32or1k_linux.sh (TEXT_START_ADDR): Increase from
238 0x0 to first page boundary at 0x2000.
240 2014-07-10 Max Filippov <jcmvbkbc@gmail.com>
242 * emultempl/xtensaelf.em (is_inconsistent_linkonce_section):
243 correctly handle missing dot in section name after
244 ".gnu.linkonce.prop.".
246 2014-07-08 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
248 * scripttempl/avr.sc: Remove KEEP for .data and
249 force .bss VMA to end of .data VMA.
251 2014-07-08 Will Newton <will.newton@linaro.org>
253 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Increase
254 alignment to 64kB boundary.
256 2014-07-04 Alan Modra <amodra@gmail.com>
258 * configure.ac: Update "configure.in" comments.
259 * configure: Regenerate.
261 2014-07-04 Alan Modra <amodra@gmail.com>
263 * configure.ac: Rename from configure.in.
264 * Makefile.in: Regenerate.
265 * config.in: Regenerate.
267 2014-07-04 Alan Modra <amodra@gmail.com>
269 * configure.in: Include bfd/version.m4.
270 (AC_INIT, AM_INIT_AUTOMAKE): Use modern form.
271 (BFD_VERSION): Delete.
272 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Remove bfd/configure.in.
273 * configure: Regenerate.
274 * Makefile.in: Regenerate.
276 2014-07-03 Alan Modra <amodra@gmail.com>
279 * ldlang.c (load_symbols): Always check flags.reload.
280 (open_input_bfds): Always reload --as-needed shared libraries,
281 not just when rescanning.
282 * ldlang.h (struct lang_input_statement_flags): Update reload comment.
283 * plugin.c (plugin_should_reload): Assume shared library arg.
284 * plugin.h (plugin_should_reload): Update comment.
286 2014-07-01 Alan Modra <amodra@gmail.com>
288 * emultempl/ppc64elf.em (stub_added): Delete.
289 (gld${EMULATION_NAME}_finish): Call ppc64_elf_build_stubs even when
290 none of the usual stubs have been added. Only change entry_section
293 2014-07-01 Alan Modra <amodra@gmail.com>
295 * sysdep.h: Don't include limits.h and sys/param.h. Don't
296 include unistd.h twice.
297 (LD_PATHMAX): Don't define.
298 * ldlang.c (lang_common): Don't use UINT_MAX.
300 2014-07-01 Barney Stratford <barney_stratford@fastmail.fm>
301 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
302 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
303 Soundararajan <Sounderarajan.D@atmel.com>
305 * Makefile.am (ALL_EMULATION_SOURCES): Add avrtiny emulation source.
306 (eavrtiny.c): Add rules for avrtiny emulation source.
307 * Makefile.in: Regenerate.
308 * configure.tgt: Add avrtiny to avr target emulations.
309 * scripttempl/avrtiny.sc: New file. Linker script template for
311 * emulparams/avrtiny.sh: New file. Emulation parameters for
314 2014-06-30 Ulrich Drepper <drepper@gmail.com>
316 * lexsup.c (parse_args): Check whether provided SONAME is empty
317 string. If yes, warn and ignore it. Don't overwrite valid SONAME
320 2014-06-26 Linda Zhang <lindasc@qq.com>
322 * emultempl/pe.em: Initialise insert_timestamp to true.
323 Add a --no-insert-timestamp command line option.
324 * emultempl/pep.em: Likewise.
325 * ld.texinfo: Document that --insert-timestamp is enabled by
326 default and that it now has an inverse command line option.
327 * NEWS: Mention the new behaviour.
329 2014-06-25 Nick Clifton <nickc@redhat.com>
331 * Makefile.am (ALL_EMULATION_SOURCES): Move ei386pep.c from
333 (ALL_64_EMULATION_SOURCES): ... to here.
334 (ALL_EMUL_EXTRA_OFILES): Move pep-dll.o from here...
335 (ALL_64_EMUL_EXTRA_OFILES): New. ... to here.
336 * configure.in (EMUL_EXTRA_OFILES): Include
337 ALL_64_EMUL_EXTRA_OFILES when making a 64-bit enabled build.
338 * Makefile.in: Regenerate.
339 * configure: Regenerate.
341 2014-06-18 Andreas Tobler <andreast@fgznet.ch>
343 * configure.tgt (arm*-*-freebsd*): Update targ_extra_emuls.
344 (arm*b-*-freebsd*): Add target.
345 * emulparams/armelfb_fbsd.sh: Added.
346 * emulparams/armelf_fbsd.sh: Updated.
347 * Makefile.am (ALL_EMULATION_SOURCES): Add earmelfb_fbsd.c.
348 * Makefile.in: Regenerate.
350 2014-06-16 Alan Modra <amodra@gmail.com>
352 * scripttempl/elf.sc: Edit out __rela_iplt symbol assignments from
353 .rel sections, and __rel_iplt from .rela sections.
354 * scripttempl/nds32elf.sc: Likewise.
355 * Makefile.am (ends32*.c) Depend on nds32elf.sc.
356 * Makefile.in: Regenerate.
358 2014-06-13 Alan Modra <amodra@gmail.com>
361 * ldlang.c (output_bfd_hash_table_free_fn): Delete.
362 (open_output): Don't set it..
363 * ldmain.c (ld_cleanup): ..or call it.
365 2014-06-13 Alan Modra <amodra@gmail.com>
367 * emultempl/cr16elf.em, * emultempl/elf32.em, * emultempl/genelf.em,
368 * emultempl/m68kcoff.em, * emultempl/m68kelf.em,
369 * emultempl/nds32elf.em, * emultempl/pe.em, * emultempl/pep.em,
370 * ldlang.c, * ldmain.c, * pe-dll.c: Update for bfd.link_next change.
372 2014-06-13 Alan Modra <amodra@gmail.com>
374 * Makefile.am (ALL_EMULATION_SOURCES): Add enios2elf.c, enios2linux.c.
375 * Makefile.in: Regenerate.
377 2014-06-07 Alan Modra <amodra@gmail.com>
379 * ldexp.c (exp_fold_tree_1 <etree_provide>): Make PROVIDEd
380 linker script symbol value override a built-in linker symbol.
382 2014-06-05 Joel Brobecker <brobecker@adacore.com>
384 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Add dependency on
385 bfd's development.sh.
386 * Makefile.in, configure: Regenerate.
388 2014-06-02 Alan Modra <amodra@gmail.com>
390 * emulparams/elf32bfin.sh: Rename from bfin.sh.
391 * emulparams/elf32bfinfd.sh: Update to suit.
392 * emulparams/msp430.sh: Rename from msp430all.sh. Remove
393 MSP430_NAME and msp430X vars.
394 * emulparams/msp430X.sh: New.
395 * emulparams/score3_elf.sh: Rename from scoreelf.sh. Remove
396 SCORE_NAME and score7_elf ARCH setting.
397 * emulparams/score7_elf.sh: New.
398 * Makefile.am (eelf32bfin.c, eelf32bfinfd.c): Update dependencies.
399 (emsp430.c, emsp430X.c, escore3_elf.c, escore7_elf.c): Likewise.
400 * Makefile.in: Regenerate.
401 * genscripts.sh: Delete customizer_script param.
403 2014-05-28 Hans-Peter Nilsson <hp@axis.com>
405 * Makefile.am: Change all rules with ${GENSCRIPTS}
406 invocations to be just dependencies.
407 ($(ALL_EMULATION_SOURCES) $(ALL_64_EMULATION_SOURCES))
408 (run-genscripts): New rules.
409 * Makefile.in: Regenerate.
411 2014-05-27 DJ Delorie <dj@redhat.com>
413 * ld/ldemul.h (extra_map_file_text): New field.
414 (ldemul_extra_map_file_text): Declare.
415 * ld/ldemul.c (ldemul_extra_map_file_text): Define.
416 * ld/ldlang.c (lang_map): Call it.
418 * ld/emultempl/rxelf.em: Add extra_map_file_text hook.
419 * ld/emultempl/aix.em: Add NULL extra_map_file_text hook.
420 * ld/emultempl/armcoff.em: Likewise.
421 * ld/emultempl/beos.em: Likewise.
422 * ld/emultempl/elf32.em: Likewise.
423 * ld/emultempl/generic.em: Likewise.
424 * ld/emultempl/gld960.em: Likewise.
425 * ld/emultempl/gld960c.em: Likewise.
426 * ld/emultempl/linux.em: Likewise.
427 * ld/emultempl/lnk960.em: Likewise.
428 * ld/emultempl/m68kcoff.em: Likewise.
429 * ld/emultempl/pe.em: Likewise.
430 * ld/emultempl/pep.em: Likewise.
431 * ld/emultempl/sunos.em: Likewise.
432 * ld/emultempl/ticoff.em: Likewise.
433 * ld/emultempl/vanilla.em: Likewise.
435 2014-05-24 Alan Modra <amodra@gmail.com>
437 * ldlang.c (base): Move variable to..
438 * mri.c: ..here, and make static.
439 * ldlang.h (base): Delete declaration.
441 2014-05-20 Hans-Peter Nilsson <hp@axis.com>
443 * Makefile.am (ALL_EMULATION_SOURCES): Add missing eelf32mbel_linux.c.
444 * Makefile.in: Regenerate.
446 2014-05-20 Alan Modra <amodra@gmail.com>
449 * emulparams/elf32ppccommon.sh (_SDA_BASE_, _SDA2_BASE_): Delete.
450 * emultempl/ppc32elf.em (ppc_before_allocation): Call
451 ppc_elf_maybe_strip_sdata_syms.
452 * ldlang.c (size_input_section): Correct output_offset value
453 for excluded input sections.
455 2014-05-16 John Marino <binutils@marino.st>
457 * configure.tgt: Add /lib to dragonfly NATIVE_LIB_DIRS.
459 2014-05-11 Chung-Lin Tang <cltang@codesourcery.com>
461 * emulparams/nios2linux.sh (OTHER_GOT_SYMBOLS): Wrap _gp in HIDDEN(),
462 and gp in PROVIDE_HIDDEN.
464 2014-05-10 Hans-Peter Nilsson <hp@bitrange.com>
466 * ldlang.c (lang_finish): Don't call bfd_link_hash_table_free here.
467 (output_bfd_hash_table_free_fn): New variable.
468 (open_output): Save the _bfd_link_hash_table_free function for the
469 output_bfd into output_bfd_hash_table_free_fn.
470 * ldmain.c (ld_cleanup): If set, call output_bfd_hash_table_free_fn
472 * ldlang.h (output_bfd_hash_table_free_fn): Declare.
474 2014-05-02 Alan Modra <amodra@gmail.com>
476 * emultempl/metagelf.em: Update bfd target vector naming.
477 * emultempl/nios2elf.em: Likewise.
478 * emultempl/spuelf.em: Likewise.
479 * emultempl/tic6xdsbt.em: Likewise.
481 2014-04-22 Christian Svensson <blue@cmd.nu>
483 * Makefile.am: Remove openrisc and or32 support. Add support for or1k.
484 * configure.tgt: Likewise.
485 * emulparams/elf32or1k.sh: New file.
486 * emulparams/elf32or1k_linux.sh: New file.
487 * emulparams/elf32openrisc.sh: Delete.
488 * emulparams/or32.sh: Delete.
489 * emulparams/or32elf.sh: Delete.
490 * scripttempl/or32.sc: Delete.
491 * Makefile.in: Regenerate.
493 2014-04-21 Richard Henderson <rth@redhat.com>
495 * emultempl/alphaelf.em (alpha_after_parse): Enable 2 relax passes.
497 2014-04-16 Steve Ellcey <sellcey@mips.com>
499 * emultempl/elf32.em: Include safe-ctype.h.
501 2014-04-16 Steve Ellcey <sellcey@mips.com>
503 * ldbuildid.c (generate_build_id): Add ATTRIBUTE_UNUSED to size arg.
505 2014-04-09 Nick Clifton <nickc@redhat.com>
507 * Makefile.am (default-manifest.o): Remove rule.
508 (EMUL_EXTRA_BINARIES): Delete.
509 (ALL_EMUL_EXTRA_BINARIES): Delete.
510 (ld_new_DEPENDENCIES): Remove EMUL_EXTRA_BINARIES.
511 (install-data-local): Remove EMUL_EXTRA_BINARIES.
512 * Makefile.in: Regenerate.
513 * configure.in (all_emul_extra_binaries): Delete.
514 (EMUL_EXTRA_BINARIES): Remove.
515 * configure: Regenerate.
516 * configure.tgt (target_extra_binaries): Delete.
517 * emultempl/default-manifest.rc: Delete.
518 * ld.texinfo: Remove discussion of default manifest.
519 * emulparams/i386pe.sh (DEFAULT_MANIFEST): Delete.
520 * emulparams/i386pep.sh (DEFAULT_MANIFEST): Delete.
522 2014-04-09 Alan Modra <amodra@gmail.com>
524 * emultempl/spuelf.em: Include safe-ctype.h, remove duplicate errno.h.
525 * emultempl/nds32elf.em: Include bfd_stdint.h.
526 * po/POTFILES.in: Regenerate.
528 2014-04-09 Alan Modra <amodra@gmail.com>
530 * emultempl/ppc32elf.em (no_zero_padding, ppc_finish): New functions.
531 (LDEMUL_FINISH): Define.
533 2014-04-08 Nick Clifton <nickc@redhat.com>
535 * scripttempl/pe.sc (R_RSRC): Remove default manifest.
536 * scripttempl/pep.sc (R_RSRC): Remove default manifest.
538 2014-04-08 Jon TURNEY <jon.turney@dronecode.org.uk>
540 * emultempl/elf32.em (id_note_section_size, read_hex, write_build_id):
541 Move code for parsing build-id option and calculating the build-id to...
542 * ldbuildid.c: New file.
543 * ldbuildid.h: New file.
544 * Makefile.am (CFILES, HFILES, OFILES, ld_new_SOURCES): Add new
546 * Makefile.in: Regenerate.
547 * ld.texinfo: Update --build-id description to mention COFF
549 * NEWS: Mention support for COFF build ids.
550 * emultempl/pe.em (gld${EMULATION_NAME}_handle_option):
551 (pecoff_checksum_contents, write_build_id, setup_build_id)
552 (gld_${EMULATION_NAME}_after_open): Handle and implement
554 * emultempl/pep.em: Likewise.
556 2014-04-04 Cary Coutant <ccoutant@google.com>
559 * ld.texinfo: Document optional comma following output section
560 command and overlay command.
562 2014-04-04 Alan Modra <amodra@gmail.com>
564 * ldlang.c (lang_size_sections_1 <lang_input_section_enum>): Use
565 current "fill", not "output_section_statement->fill".
567 2014-03-31 Nick Clifton <nickc@redhat.com>
570 * emultempl/elf32.em (_after_open): Create a .note.GNU-stack
571 section when performing a relocatable link with -z [no]execstack
574 2014-03-27 H.J. Lu <hongjiu.lu@intel.com>
577 * ldmain.c (symbol_warning): New function.
578 (warning_callback): Use it. Scan all input files for a reference
581 2014-03-21 Christopher Faylor <me.cygwin2013@cgf.cx>
583 * ld.texinfo: Document change in handling of --enable-auto-image-base.
584 * emultempl/pe.em (pe_auto_image_base): Set to default base.
585 (gld_${EMULATION_NAME}_list_options): Change usage message to reflect
586 optional --enable-auto-image-base argument.
587 (gld${EMULATION_NAME}_handle_option): Handle optional
588 --enable-auto-image-base argument.
589 (compute_dll_image_base): Eliminate constant. Use pe_auto_image_base.
591 2014-03-19 Nick Clifton <nickc@redhat.com>
593 * Makefile.am (default-manifest.o): Use WINDRES_FOR_TARGET.
594 * Makefile.in: Regenerate.
595 * emultempl/default-manifest.rc: Fix typo.
596 * scripttempl/pe.sc (R_RSRC): Fix default-manifest exclusion.
597 (.rsrc): Add SUBALIGN(4). Remove SORT.
598 * scripttempl/pep.sc: Likewise.
600 2014-03-17 Christopher Faylor <me.cygwin2014@cgf.cx>
602 * Makefile.am: Use host version of windres.
603 * Makefile.in: Regenerate.
605 2014-03-14 Romain Geissler <romain.geissler@amadeus.com>
606 Alan Modra <amodra@gmail.com>
608 * ldlang.h (full_name_provided): New input flag.
609 * ldlang.c (new_afile): Don't use lang_input_file_is_search_file_enum
610 for -l:namespec. Instead use lang_input_file_is_l_enum with
611 full_name_provided flag.
612 * ldlfile.c (ldfile_open_file_search): Don't complete lib name if
613 full_name_provided flag is set.
614 * emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive):
615 Handle full_name_provided libraries. Tidy EXTRA_SHLIB_EXTENSION
616 support. Set DT_NEEDED for -l:namespec as namespec.
617 * emultempl/aix.em (ppc_after_open_output): Handle full_name_provided.
618 * emultempl/linux.em (gld${EMULATION_NAME}_open_dynamic_archive):
619 Don't handle full_name_provided libraries.
620 * emultempl/pe.em (gld${EMULATION_NAME}_open_dynamic_archive): Ditto.
621 * emultempl/pep.em (gld${EMULATION_NAME}_open_dynamic_archive): Ditto.
622 * emultempl/vms.em (gld${EMULATION_NAME}_open_dynamic_archive): Ditto.
624 2014-03-12 Alan Modra <amodra@gmail.com>
626 * Makefile.in: Regenerate.
628 2014-03-05 Alan Modra <amodra@gmail.com>
630 Update copyright years.
632 2014-03-04 Nick Clifton <nickc@redhat.com>
634 * Makefile.am (ALL_EMUL_EXTRA_BINARIES): Remove default-manifest.
635 * Makefile.in: Regenerate.
637 2014-02-27 Yuri Gribov <y.gribov@samsung.com>
639 * emultempl/armelf.em (OPTION_LONG_PLT): Define.
640 (PARSE_AND_LIST_LONGOPTS): Add long-plt.
641 (PARSE_AND_LIST_OPTIONS): Likewise.
642 (PARSE_AND_LIST_ARGS_CASES): Handle long-plt.
643 * ld.texinfo: Document --long-plt.
645 2014-02-27 Alan Modra <amodra@gmail.com>
647 * emulparams/elf32ppcvxworks.sh: Source plt_unwind.sh and
649 * emultempl/ppc32elf.em (ppc_after_open): Don't compile for
651 (LDEMUL_AFTER_OPEN): Don't set for vxworks.
652 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Exclude
653 -secure-plt, -bss-plt and -sdata-got when vxworks.
655 2014-02-27 Nick Clifton <nickc@redhat.com>
657 * configure.in (all_emul_extra_binaries): New variable. Populated
658 by invoking configure.tgt.
659 (EMUL_EXTRA_BINARIES): New substitution.
660 * configure: Regenerate.
661 * configure.tgt (target_extra_binaries): New variable. Set to
662 default-manifest.o for Cygwin and MinGW targets.
663 * Makefile.am (EMUL_EXTRA_BINARIES): New variable. Initialised
664 by the configure script.
665 (ALL_EMUL_EXTRA_BINARIES): New variable.
666 (default-manifest.o): New rule to build the default manifest.
667 (ld_new_DEPENDENCIES): Add EMUL_EXTRA_BINARIES.
668 (install-data-local): Add EMUL_EXTRA_BINARIES.
669 * Makefile.in: Regenerate.
670 * ld.texinfo: Document default manifest support.
671 * emulparams/i386pe.sh (DEFAULT_MANIFEST): Define.
672 * emulparams/i386pep.sh (DEFAULT_MANIFEST): Define.
673 * emultempl/default-manifest.rc: New file.
674 * scripttempl/pe.sc (R_RSRC): Include DEFAULT_MANIFEST, if defined.
675 * scripttempl/pep.sc (R_RSRC): Likewise.
677 2014-02-26 Dan Mick <dan.mick@inktank.com>
680 * ldcref.c (cref_sort_array): Compare unmangled names unless
681 demanglng has been requiested.
682 (output_one_cref): Output unmangled name unless demangling has
685 2014-02-19 Igor Zamyatin <igor.zamyatin@intel.com>
686 H.J. Lu <hongjiu.lu@intel.com>
688 * emulparams/elf_x86_64.sh (TINY_READONLY_SECTION): New.
690 2014-02-19 Alan Modra <amodra@gmail.com>
692 * emultempl/ppc64elf.em (params): Init new field.
693 (ppc_create_output_section_statements): Set params.save_restore_funcs
695 (PARSE_AND_LIST_*): Add support for --save-restore-funcs and
696 --no-save-restore-funcs.
698 2014-02-17 Alan Modra <amodra@gmail.com>
700 * emultemps/ppc64elf.em (params): New static struct replacing
701 various other static vars. Adjust code throughout file.
703 2014-02-17 Alan Modra <amodra@gmail.com>
705 * emultempl/ppc32elf.em (ppc_after_open_output): Really enable
706 ppc476 workaround for ld -r.
708 2014-02-12 Alan Modra <amodra@gmail.com>
710 * emultempl/ppc32elf.em (pagesize): New static var.
711 (ppc_after_open_output): Set params.pagesize_p2 from pagesize.
712 (PARSE_AND_LIST_ARGS_CASES): Adjust to use pagesize.
714 2014-02-11 Andrew Pinski <apinski@cavium.com>
716 * emulparams/aarch64linux32.sh (LIBPATH_SUFFIX): Change to ilp32.
717 (ELF_INTERPRETER_NAME): Define.
718 * emulparams/aarch64linux32b.sh (ELF_INTERPRETER_NAME): Define.
720 2014-02-10 Alan Modra <amodra@gmail.com>
722 * po/ld.pot: Regenerate.
724 2014-02-03 Alan Modra <amodra@gmail.com>
726 * emultempl/ppc32elf.em (no_tls_get_addr_opt, emit_stub_syms)
727 plt_style): Delete. Adjust all refs to instead use..
728 (params): ..this. New variable.
729 (ppc_after_open_output): New function. Tweak params and pass to
731 (ppc_after_open): Adjust ppc_elf_select_plt_layout call.
732 (ppc_before_allocation): Adjust ppc_elf_tls_setup call. Enable
733 relaxation for ppc476 workaround.
734 (PARSE_AND_LIST_*): Add --{no-,}ppc476-workaround support.
735 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
737 2014-02-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
739 * ld/ld.texinfo: Change ALIGN_WITH_INPUT documentation.
740 * ld/ldlang.c (lang_size_sections_1): Add dotdelta
741 variable which reflects the VMA change due to alignment
742 requirements. Use dotdelta do change the LMA if
743 ALIGN_WITH_INPUT is requested.
745 2014-02-01 Hans-Peter Nilsson <hp@bitrange.com>
747 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Fix typo in
748 call to bfd_set_section_vma exposed by recent bfd_set_section_vma
751 2014-01-30 Sandra Loosemore <sandra@codesourcery.com>
753 * Makefile.am (enios2elf.c, enios2linux.c): Update dependencies.
754 * Makefile.in: Regenerated.
755 * emulparams/nios2elf.sh (EXTRA_EM_FILE): Set.
756 * emulparams/nios2linux.sh (EXTRA_EM_FILE): Set.
757 * emultempl/nios2elf.em: New file.
758 * gen-doc.texi (NIOSII): Set.
759 * ld.texinfo (NIOSII): Set.
761 2014-01-28 Nick Clifton <nickc@redhat.com>
763 * Makefile.am: Remove obsolete MSP430 emulations.
764 * configure.tgt: Likewise.
765 * emulparams/msp430all.sh: Likewise.
766 * Makefile.in: Regenerate.
768 2014-01-24 H.J. Lu <hongjiu.lu@intel.com>
771 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Improve
772 orphaned TLS section handling.
774 2014-01-24 Alan Modra <amodra@gmail.com>
776 * ldlang.c (lang_output_section_find_by_flags): Be careful to
777 test look->bfd_section->flags if available rather than
778 look->flags. Separate SEC_THREAD_LOCAL handling from
779 SEC_READONLY loop, and rewrite.
781 2014-01-22 Alan Modra <amodra@gmail.com>
783 * ldlang.c (asneeded_list_head, asneeded_list_tail): New vars.
784 (lang_init): Initialise them.
785 (lang_print_asneeded): New function.
786 (lang_process): Call lang_print_asneeded.
787 * ldlang.h (struct asneeded_minfo): New.
788 (asneeded_list_tail): Declare.
789 * ldmain.c (add_archive_element): Improve archive map heading.
790 * ldmisc.c (minfo): Stash --as-needed info.
792 2014-01-22 Alan Modra <amodra@gmail.com>
794 * ld.h (struct map_symbol_def): Move to..
796 * ldlang.c (print_assignment): Don't set expld.assign_name to dot.
798 2014-01-22 Alan Modra <amodra@gmail.com>
800 * ld.texinfo (Output Section Discarding): Mention assigning to dot
801 as a way of keeping otherwise empty sections.
802 * ldexp.c (is_dot, is_value, is_sym_value, is_dot_ne_0,
803 is_dot_plus_0, is_align_conditional): New predicates.
804 (exp_fold_tree_1): Set SEC_KEEP when assigning to dot inside an
805 output section, except for some special cases.
806 * scripttempl/elfmicroblaze.sc: Use canonical form to align at
807 end of .heap and .stack.
809 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
811 * emulparams/aarch64linuxb.sh (ELF_INTERPRETER_NAME): Define.
813 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
815 * emulparams/aarch64linux.sh (ELF_INTERPRETER_NAME): Define.
817 2014-01-20 Alan Modra <amodra@gmail.com>
819 * ldlang.h (struct lang_definedness_hash_entry): Add by_object and
820 by_script. Make iteration a single bit field.
821 (lang_track_definedness, lang_symbol_definition_iteration): Delete.
822 (lang_symbol_defined): Declare.
823 * ldlang.c (lang_statement_iteration): Expand comment a little.
824 (lang_init <lang_definedness_table>): Make it bigger.
825 (lang_track_definedness, lang_symbol_definition): Delete.
826 (lang_definedness_newfunc): Update.
827 (lang_symbol_defined): New function.
828 (lang_update_definedness): Create entries here. Do track whether
829 script definition of symbol is valid, even when also defined in
831 * ldexp.c (fold_name <DEFINED>): Update.
832 (fold_name <NAME>): Allow self-assignment for absolute symbols
833 defined in a linker script.
835 2014-01-20 Guy Martin <gmsoft@tuxicoman.be>
836 Alan Modra <amodra@gmail.com>
838 * ldlang.h (lang_output_section_get): Define.
839 * ldlang.c (lang_output_section_get): Likewise.
840 (init_os): Set the output_section userdata to the output
842 * emultempl/hppaelf.em: Use lang_output_section_get instead of
843 lang_output_section_find where applicable.
844 * emultempl/aarch64elf.em: Likewise.
845 * emultempl/aix.em: Likewise.
846 * emultempl/armelf.em: Likewise.
847 * emultempl/m68hc1xelf.em: Likewise.
848 * emultempl/metagelf.em: Likewise.
849 * emultempl/mipself.em: Likewise.
850 * emultempl/ppc64elf.em: Likewise.
851 * emultempl/spuelf.em: Likewise.
853 2014-01-17 Alan Modra <amodra@gmail.com>
855 * genscripts.sh (COMPILE_IN): Don't set if already set.
856 * emulparams/nds32elf.sh: Don't clear EMULATION_LIBPATH, set
858 * emulparams/nds32elf16m.sh: Likewise.
859 * emulparams/nds32elf_linux.sh: Likewise.
860 * emultempl/aix.em: Test COMPILE_IN value is "yes".
861 * emultempl/armcoff.em: Likewise.
862 * emultempl/elf32.em: Likewise.
863 * emultempl/generic.em: Likewise.
864 * emultempl/gld960.em: Likewise.
865 * emultempl/gld960c.em: Likewise.
866 * emultempl/linux.em: Likewise.
867 * emultempl/lnk960.em: Likewise.
868 * emultempl/m68kcoff.em: Likewise.
869 * emultempl/sunos.em: Likewise.
870 * emultempl/ticoff.em: Likewise.
872 2014-01-16 H.J. Lu <hongjiu.lu@intel.com>
875 * genscripts.sh: Don't search directory with LIBPATH_SUFFIX_SKIP
877 * emulparams/elf32_x86_64.sh (LIBPATH_SUFFIX_SKIP): Set to 64
878 for elf32_x86_64 emulation.
879 * emulparams/elf_i386.sh (LIBPATH_SUFFIX_SKIP): Set to 64
880 for elf_i386 emulation.
882 2014-01-16 Alan Modra <amodra@gmail.com>
884 * ld.h (fat_section_userdata_type, get_userdata): Move to..
885 * ldlang.h (input_section_userdata_type, get_userdata): ..here.
886 * ldlang.c (init_map_userdata): Delete. Fold into..
887 (sort_def_symbol): ..here. Don't attach input section userdata
888 to output sections or global bfd sections.
889 (lang_map): Don't pre-allocate input section userdata.
890 (init_os): Don't allocate userdata for output sections.
891 (print_all_symbols): Update.
893 2014-01-15 H.J. Lu <hongjiu.lu@intel.com>
895 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
896 Silence uninitialized warning on ehdr_start_save with older
899 2014-01-15 Alan Modra <amodra@gmail.com>
901 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Define
902 __ehdr_start before size_dynamic_sections and restore afterwards.
904 2014-01-10 Alan Modra <amodra@gmail.com>
909 * ldlang.c (lang_size_sections): Remove unneeded RELRO base
910 adjust. Tidy comments.
911 * ld.texinfo (DATA_SEGMENT_RELRO_END): Correct description.
913 2014-01-10 Hans-Peter Nilsson <hp@axis.com>
915 * emulparams/crislinux.sh (COMMONPAGESIZE): Define.
917 2014-01-08 H.J. Lu <hongjiu.lu@intel.com>
922 * ldlang.c (lang_size_sections): Properly align RELRO base.
924 2014-01-08 H.J. Lu <hongjiu.lu@intel.com>
926 * ldver.c (ldversion): Update copyright year to 2014.
928 For older changes see ChangeLog-2013
930 Copyright (C) 2014 Free Software Foundation, Inc.
932 Copying and distribution of this file, with or without modification,
933 are permitted in any medium without royalty provided the copyright
934 notice and this notice are preserved.
940 version-control: never