1 2014-08-20 Nick Clifton <nickc@redhat.com>
3 * scripttempl/DWARF.sc: Add copyright notice.
4 * scripttempl/aix.sc: Likewise.
5 * scripttempl/alpha.sc: Likewise.
6 * scripttempl/alphavms.sc: Likewise.
7 * scripttempl/aout.sc: Likewise.
8 * scripttempl/armaout.sc: Likewise.
9 * scripttempl/armbpabi.sc: Likewise.
10 * scripttempl/armcoff.sc: Likewise.
11 * scripttempl/avr.sc: Likewise.
12 * scripttempl/avrtiny.sc: Likewise.
13 * scripttempl/crisaout.sc: Likewise.
14 * scripttempl/delta68.sc: Likewise.
15 * scripttempl/dlx.sc: Likewise.
16 * scripttempl/elf.sc: Likewise.
17 * scripttempl/elf32cr16.sc: Likewise.
18 * scripttempl/elf32cr16c.sc: Likewise.
19 * scripttempl/elf32crx.sc: Likewise.
20 * scripttempl/elf32msp430.sc: Likewise.
21 * scripttempl/elf32msp430_3.sc: Likewise.
22 * scripttempl/elf32sh-symbian.sc: Likewise.
23 * scripttempl/elf32xc16x.sc: Likewise.
24 * scripttempl/elf32xc16xl.sc: Likewise.
25 * scripttempl/elf32xc16xs.sc: Likewise.
26 * scripttempl/elf64hppa.sc: Likewise.
27 * scripttempl/elf_chaos.sc: Likewise.
28 * scripttempl/elfd10v.sc: Likewise.
29 * scripttempl/elfd30v.sc: Likewise.
30 * scripttempl/elfi370.sc: Likewise.
31 * scripttempl/elfm68hc11.sc: Likewise.
32 * scripttempl/elfm68hc12.sc: Likewise.
33 * scripttempl/elfmicroblaze.sc: Likewise.
34 * scripttempl/elfxgate.sc: Likewise.
35 * scripttempl/elfxtensa.sc: Likewise.
36 * scripttempl/epiphany_4x4.sc: Likewise.
37 * scripttempl/epocpe.sc: Likewise.
38 * scripttempl/h8300.sc: Likewise.
39 * scripttempl/h8300h.sc: Likewise.
40 * scripttempl/h8300hn.sc: Likewise.
41 * scripttempl/h8300s.sc: Likewise.
42 * scripttempl/h8300sn.sc: Likewise.
43 * scripttempl/h8300sx.sc: Likewise.
44 * scripttempl/h8300sxn.sc: Likewise.
45 * scripttempl/h8500.sc: Likewise.
46 * scripttempl/h8500b.sc: Likewise.
47 * scripttempl/h8500c.sc: Likewise.
48 * scripttempl/h8500m.sc: Likewise.
49 * scripttempl/h8500s.sc: Likewise.
50 * scripttempl/hppaelf.sc: Likewise.
51 * scripttempl/i386beos.sc: Likewise.
52 * scripttempl/i386coff.sc: Likewise.
53 * scripttempl/i386go32.sc: Likewise.
54 * scripttempl/i386msdos.sc: Likewise.
55 * scripttempl/i860coff.sc: Likewise.
56 * scripttempl/i960.sc: Likewise.
57 * scripttempl/ia64vms.sc: Likewise.
58 * scripttempl/ip2k.sc: Likewise.
59 * scripttempl/iq2000.sc: Likewise.
60 * scripttempl/m68kaux.sc: Likewise.
61 * scripttempl/m68kcoff.sc: Likewise.
62 * scripttempl/m88kbcs.sc: Likewise.
63 * scripttempl/mcorepe.sc: Likewise.
64 * scripttempl/mep.sc: Likewise.
65 * scripttempl/mips.sc: Likewise.
66 * scripttempl/mipsbsd.sc: Likewise.
67 * scripttempl/mmo.sc: Likewise.
68 * scripttempl/moxie.sc: Likewise.
69 * scripttempl/nds32elf.sc: Likewise.
70 * scripttempl/nw.sc: Likewise.
71 * scripttempl/pe.sc: Likewise.
72 * scripttempl/pep.sc: Likewise.
73 * scripttempl/pj.sc: Likewise.
74 * scripttempl/ppcpe.sc: Likewise.
75 * scripttempl/psos.sc: Likewise.
76 * scripttempl/riscix.sc: Likewise.
77 * scripttempl/sh.sc: Likewise.
78 * scripttempl/sparccoff.sc: Likewise.
79 * scripttempl/st2000.sc: Likewise.
80 * scripttempl/tic30aout.sc: Likewise.
81 * scripttempl/tic30coff.sc: Likewise.
82 * scripttempl/tic4xcoff.sc: Likewise.
83 * scripttempl/tic54xcoff.sc: Likewise.
84 * scripttempl/tic80coff.sc: Likewise.
85 * scripttempl/v850.sc: Likewise.
86 * scripttempl/v850_rh850.sc: Likewise.
87 * scripttempl/vanilla.sc: Likewise.
88 * scripttempl/w65.sc: Likewise.
89 * scripttempl/xstormy16.sc: Likewise.
90 * scripttempl/z80.sc: Likewise.
91 * scripttempl/z8000.sc: Likewise.
93 2014-08-19 Alan Modra <amodra@gmail.com>
95 * configure: Regenerate.
97 2014-08-18 Alan Modra <amodra@gmail.com>
99 * ld.texinfo (--as-needed): Clarify that references from libraries
100 must be from needed libraries.
102 2014-08-18 Alan Modra <amodra@gmail.com>
104 * emultempl/aarch64elf.em (gld${EMULATION_NAME}_after_allocation):
105 Handle error status from bfd_elf_discard_info.
106 * emultempl/armelf.em: Likewise.
107 * emultempl/elf32.em: Likewise.
108 * emultempl/hppaelf.em: Likewise.
109 * emultempl/metagelf.em: Likewise.
110 * emultempl/nios2elf.em: Likewise.
111 * emultempl/ppc64elf.em: Likewise.
112 * emultempl/tic6xdsbt.em: Likewise.
113 * emultempl/vms.em: Likewise.
115 2014-08-14 Alan Modra <amodra@gmail.com>
118 * ldlang.c (map_head_is_link_order): Rename from
119 stripped_excluded_sections.
120 (lang_clear_os_map): New function, extracted from..
121 (strip_excluded_output_sections): ..here.
122 * ldlang.h (lang_clear_os_map): Declare.
123 * ldwrite.c (ldwrite): Call lang_clear_os_map.
124 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_after_allocation):
127 2014-08-14 Alan Modra <amodra@gmail.com>
129 * configure.ac: Move AC_PROG_CC and other macros earlier. Delete
130 plugin checks now done in config/plugins.m4.
131 * config.in: Regenerate.
132 * configure: Regenerate.
134 2014-08-14 Alan Modra <amodra@gmail.com>
136 * plugin.c (is_ir_dummy_bfd): Test BFD_PLUGIN flag rather than
139 2014-08-13 Yaakov Selkowitz <yselkowi@redhat.com>
141 * pe-dll.c (autofilter_entry_type autofilter_symbollist_i386): Add
144 2014-08-13 Alan Modra <amodra@gmail.com>
146 * ldlang.c (open_input_bfds): Don't use bfd_elf_get_dyn_lib_class.
148 2014-08-12 Alan Modra <amodra@gmail.com>
150 * ldlang.h (struct lang_input_statement_flags): Don't make "reload"
151 field conditional on ENABLE_PLUGINS.
152 * ldlang.c (open_input_bfds): Expand plugin_should_reload.
153 * plugin.h (plugin_should_reload): Delete.
154 * plugin.c (plugin_should_reload): Delete.
156 2014-08-12 Alan Modra <amodra@gmail.com>
158 * ldmain.c (notice): Update args.
159 * plugin.c (plugin_notice): Likewise. Follow warning sym link.
160 Handle new indirect symbol.
162 2014-08-12 Alan Modra <amodra@gmail.com>
164 * plugin.c (plugin_load_plugins): Set link_info.lto_plugin_active.
166 2014-08-08 Ulrich Drepper <drepper@gmail.com>
168 * ldlang.h (struct lang_input_statement_flags): Add pushed
170 * ldlex.h (enum option_values): Add OPTION_PUSH_STATE and
172 * lexsup.c (ld_options): Add entries for --push-state and
174 (parse_args): Handle OPTION_PUSH_STATE and OPTION_POP_STATE.
175 * ld.texinfo: Document --push-state and --pop-state.
177 2014-08-06 H.J. Lu <hongjiu.lu@intel.com>
180 * plugin.c (plugin_opt_plugin_arg): Drop --pass-through.
182 2014-08-05 Alan Modra <amodra@gmail.com>
184 * Makefile.in: Regenerate.
186 2014-07-29 Matthew Fortune <matthew.fortune@imgtec.com>
188 * emulparams/elf32bmip.sh: Add .MIPS.abiflags.
189 * emulparams/elf32bmipn32-defs.sh: Likewise.
190 * emulparams/elf64bmip-defs.sh: Likewise.
192 2014-07-27 Anthony Green <green@moxielogic.com>
194 * Makefile.am (ALL_EMULATION_SOURCES): Add moxiebox support.
195 (emoxiebox.c): Build.
196 * configure.tgt (targ_extra_ofiles): Add moxie-*-moxiebox*.
197 * emulparams/moxiebox.sh (TEXT_START_ADDR): New file.
198 * Makefile.in: Rebuilt.
200 2014-07-17 Stefan Kristiansson <stefan.kristiansson@saunalahti.fi>
202 * emulparams/elf32or1k_linux.sh (TEXT_START_ADDR): Increase from
203 0x0 to first page boundary at 0x2000.
205 2014-07-10 Max Filippov <jcmvbkbc@gmail.com>
207 * emultempl/xtensaelf.em (is_inconsistent_linkonce_section):
208 correctly handle missing dot in section name after
209 ".gnu.linkonce.prop.".
211 2014-07-08 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
213 * scripttempl/avr.sc: Remove KEEP for .data and
214 force .bss VMA to end of .data VMA.
216 2014-07-08 Will Newton <will.newton@linaro.org>
218 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Increase
219 alignment to 64kB boundary.
221 2014-07-04 Alan Modra <amodra@gmail.com>
223 * configure.ac: Update "configure.in" comments.
224 * configure: Regenerate.
226 2014-07-04 Alan Modra <amodra@gmail.com>
228 * configure.ac: Rename from configure.in.
229 * Makefile.in: Regenerate.
230 * config.in: Regenerate.
232 2014-07-04 Alan Modra <amodra@gmail.com>
234 * configure.in: Include bfd/version.m4.
235 (AC_INIT, AM_INIT_AUTOMAKE): Use modern form.
236 (BFD_VERSION): Delete.
237 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Remove bfd/configure.in.
238 * configure: Regenerate.
239 * Makefile.in: Regenerate.
241 2014-07-03 Alan Modra <amodra@gmail.com>
244 * ldlang.c (load_symbols): Always check flags.reload.
245 (open_input_bfds): Always reload --as-needed shared libraries,
246 not just when rescanning.
247 * ldlang.h (struct lang_input_statement_flags): Update reload comment.
248 * plugin.c (plugin_should_reload): Assume shared library arg.
249 * plugin.h (plugin_should_reload): Update comment.
251 2014-07-01 Alan Modra <amodra@gmail.com>
253 * emultempl/ppc64elf.em (stub_added): Delete.
254 (gld${EMULATION_NAME}_finish): Call ppc64_elf_build_stubs even when
255 none of the usual stubs have been added. Only change entry_section
258 2014-07-01 Alan Modra <amodra@gmail.com>
260 * sysdep.h: Don't include limits.h and sys/param.h. Don't
261 include unistd.h twice.
262 (LD_PATHMAX): Don't define.
263 * ldlang.c (lang_common): Don't use UINT_MAX.
265 2014-07-01 Barney Stratford <barney_stratford@fastmail.fm>
266 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
267 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
268 Soundararajan <Sounderarajan.D@atmel.com>
270 * Makefile.am (ALL_EMULATION_SOURCES): Add avrtiny emulation source.
271 (eavrtiny.c): Add rules for avrtiny emulation source.
272 * Makefile.in: Regenerate.
273 * configure.tgt: Add avrtiny to avr target emulations.
274 * scripttempl/avrtiny.sc: New file. Linker script template for
276 * emulparams/avrtiny.sh: New file. Emulation parameters for
279 2014-06-30 Ulrich Drepper <drepper@gmail.com>
281 * lexsup.c (parse_args): Check whether provided SONAME is empty
282 string. If yes, warn and ignore it. Don't overwrite valid SONAME
285 2014-06-26 Linda Zhang <lindasc@qq.com>
287 * emultempl/pe.em: Initialise insert_timestamp to true.
288 Add a --no-insert-timestamp command line option.
289 * emultempl/pep.em: Likewise.
290 * ld.texinfo: Document that --insert-timestamp is enabled by
291 default and that it now has an inverse command line option.
292 * NEWS: Mention the new behaviour.
294 2014-06-25 Nick Clifton <nickc@redhat.com>
296 * Makefile.am (ALL_EMULATION_SOURCES): Move ei386pep.c from
298 (ALL_64_EMULATION_SOURCES): ... to here.
299 (ALL_EMUL_EXTRA_OFILES): Move pep-dll.o from here...
300 (ALL_64_EMUL_EXTRA_OFILES): New. ... to here.
301 * configure.in (EMUL_EXTRA_OFILES): Include
302 ALL_64_EMUL_EXTRA_OFILES when making a 64-bit enabled build.
303 * Makefile.in: Regenerate.
304 * configure: Regenerate.
306 2014-06-18 Andreas Tobler <andreast@fgznet.ch>
308 * configure.tgt (arm*-*-freebsd*): Update targ_extra_emuls.
309 (arm*b-*-freebsd*): Add target.
310 * emulparams/armelfb_fbsd.sh: Added.
311 * emulparams/armelf_fbsd.sh: Updated.
312 * Makefile.am (ALL_EMULATION_SOURCES): Add earmelfb_fbsd.c.
313 * Makefile.in: Regenerate.
315 2014-06-16 Alan Modra <amodra@gmail.com>
317 * scripttempl/elf.sc: Edit out __rela_iplt symbol assignments from
318 .rel sections, and __rel_iplt from .rela sections.
319 * scripttempl/nds32elf.sc: Likewise.
320 * Makefile.am (ends32*.c) Depend on nds32elf.sc.
321 * Makefile.in: Regenerate.
323 2014-06-13 Alan Modra <amodra@gmail.com>
326 * ldlang.c (output_bfd_hash_table_free_fn): Delete.
327 (open_output): Don't set it..
328 * ldmain.c (ld_cleanup): ..or call it.
330 2014-06-13 Alan Modra <amodra@gmail.com>
332 * emultempl/cr16elf.em, * emultempl/elf32.em, * emultempl/genelf.em,
333 * emultempl/m68kcoff.em, * emultempl/m68kelf.em,
334 * emultempl/nds32elf.em, * emultempl/pe.em, * emultempl/pep.em,
335 * ldlang.c, * ldmain.c, * pe-dll.c: Update for bfd.link_next change.
337 2014-06-13 Alan Modra <amodra@gmail.com>
339 * Makefile.am (ALL_EMULATION_SOURCES): Add enios2elf.c, enios2linux.c.
340 * Makefile.in: Regenerate.
342 2014-06-07 Alan Modra <amodra@gmail.com>
344 * ldexp.c (exp_fold_tree_1 <etree_provide>): Make PROVIDEd
345 linker script symbol value override a built-in linker symbol.
347 2014-06-05 Joel Brobecker <brobecker@adacore.com>
349 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Add dependency on
350 bfd's development.sh.
351 * Makefile.in, configure: Regenerate.
353 2014-06-02 Alan Modra <amodra@gmail.com>
355 * emulparams/elf32bfin.sh: Rename from bfin.sh.
356 * emulparams/elf32bfinfd.sh: Update to suit.
357 * emulparams/msp430.sh: Rename from msp430all.sh. Remove
358 MSP430_NAME and msp430X vars.
359 * emulparams/msp430X.sh: New.
360 * emulparams/score3_elf.sh: Rename from scoreelf.sh. Remove
361 SCORE_NAME and score7_elf ARCH setting.
362 * emulparams/score7_elf.sh: New.
363 * Makefile.am (eelf32bfin.c, eelf32bfinfd.c): Update dependencies.
364 (emsp430.c, emsp430X.c, escore3_elf.c, escore7_elf.c): Likewise.
365 * Makefile.in: Regenerate.
366 * genscripts.sh: Delete customizer_script param.
368 2014-05-28 Hans-Peter Nilsson <hp@axis.com>
370 * Makefile.am: Change all rules with ${GENSCRIPTS}
371 invocations to be just dependencies.
372 ($(ALL_EMULATION_SOURCES) $(ALL_64_EMULATION_SOURCES))
373 (run-genscripts): New rules.
374 * Makefile.in: Regenerate.
376 2014-05-27 DJ Delorie <dj@redhat.com>
378 * ld/ldemul.h (extra_map_file_text): New field.
379 (ldemul_extra_map_file_text): Declare.
380 * ld/ldemul.c (ldemul_extra_map_file_text): Define.
381 * ld/ldlang.c (lang_map): Call it.
383 * ld/emultempl/rxelf.em: Add extra_map_file_text hook.
384 * ld/emultempl/aix.em: Add NULL extra_map_file_text hook.
385 * ld/emultempl/armcoff.em: Likewise.
386 * ld/emultempl/beos.em: Likewise.
387 * ld/emultempl/elf32.em: Likewise.
388 * ld/emultempl/generic.em: Likewise.
389 * ld/emultempl/gld960.em: Likewise.
390 * ld/emultempl/gld960c.em: Likewise.
391 * ld/emultempl/linux.em: Likewise.
392 * ld/emultempl/lnk960.em: Likewise.
393 * ld/emultempl/m68kcoff.em: Likewise.
394 * ld/emultempl/pe.em: Likewise.
395 * ld/emultempl/pep.em: Likewise.
396 * ld/emultempl/sunos.em: Likewise.
397 * ld/emultempl/ticoff.em: Likewise.
398 * ld/emultempl/vanilla.em: Likewise.
400 2014-05-24 Alan Modra <amodra@gmail.com>
402 * ldlang.c (base): Move variable to..
403 * mri.c: ..here, and make static.
404 * ldlang.h (base): Delete declaration.
406 2014-05-20 Hans-Peter Nilsson <hp@axis.com>
408 * Makefile.am (ALL_EMULATION_SOURCES): Add missing eelf32mbel_linux.c.
409 * Makefile.in: Regenerate.
411 2014-05-20 Alan Modra <amodra@gmail.com>
414 * emulparams/elf32ppccommon.sh (_SDA_BASE_, _SDA2_BASE_): Delete.
415 * emultempl/ppc32elf.em (ppc_before_allocation): Call
416 ppc_elf_maybe_strip_sdata_syms.
417 * ldlang.c (size_input_section): Correct output_offset value
418 for excluded input sections.
420 2014-05-16 John Marino <binutils@marino.st>
422 * configure.tgt: Add /lib to dragonfly NATIVE_LIB_DIRS.
424 2014-05-11 Chung-Lin Tang <cltang@codesourcery.com>
426 * emulparams/nios2linux.sh (OTHER_GOT_SYMBOLS): Wrap _gp in HIDDEN(),
427 and gp in PROVIDE_HIDDEN.
429 2014-05-10 Hans-Peter Nilsson <hp@bitrange.com>
431 * ldlang.c (lang_finish): Don't call bfd_link_hash_table_free here.
432 (output_bfd_hash_table_free_fn): New variable.
433 (open_output): Save the _bfd_link_hash_table_free function for the
434 output_bfd into output_bfd_hash_table_free_fn.
435 * ldmain.c (ld_cleanup): If set, call output_bfd_hash_table_free_fn
437 * ldlang.h (output_bfd_hash_table_free_fn): Declare.
439 2014-05-02 Alan Modra <amodra@gmail.com>
441 * emultempl/metagelf.em: Update bfd target vector naming.
442 * emultempl/nios2elf.em: Likewise.
443 * emultempl/spuelf.em: Likewise.
444 * emultempl/tic6xdsbt.em: Likewise.
446 2014-04-22 Christian Svensson <blue@cmd.nu>
448 * Makefile.am: Remove openrisc and or32 support. Add support for or1k.
449 * configure.tgt: Likewise.
450 * emulparams/elf32or1k.sh: New file.
451 * emulparams/elf32or1k_linux.sh: New file.
452 * emulparams/elf32openrisc.sh: Delete.
453 * emulparams/or32.sh: Delete.
454 * emulparams/or32elf.sh: Delete.
455 * scripttempl/or32.sc: Delete.
456 * Makefile.in: Regenerate.
458 2014-04-21 Richard Henderson <rth@redhat.com>
460 * emultempl/alphaelf.em (alpha_after_parse): Enable 2 relax passes.
462 2014-04-16 Steve Ellcey <sellcey@mips.com>
464 * emultempl/elf32.em: Include safe-ctype.h.
466 2014-04-16 Steve Ellcey <sellcey@mips.com>
468 * ldbuildid.c (generate_build_id): Add ATTRIBUTE_UNUSED to size arg.
470 2014-04-09 Nick Clifton <nickc@redhat.com>
472 * Makefile.am (default-manifest.o): Remove rule.
473 (EMUL_EXTRA_BINARIES): Delete.
474 (ALL_EMUL_EXTRA_BINARIES): Delete.
475 (ld_new_DEPENDENCIES): Remove EMUL_EXTRA_BINARIES.
476 (install-data-local): Remove EMUL_EXTRA_BINARIES.
477 * Makefile.in: Regenerate.
478 * configure.in (all_emul_extra_binaries): Delete.
479 (EMUL_EXTRA_BINARIES): Remove.
480 * configure: Regenerate.
481 * configure.tgt (target_extra_binaries): Delete.
482 * emultempl/default-manifest.rc: Delete.
483 * ld.texinfo: Remove discussion of default manifest.
484 * emulparams/i386pe.sh (DEFAULT_MANIFEST): Delete.
485 * emulparams/i386pep.sh (DEFAULT_MANIFEST): Delete.
487 2014-04-09 Alan Modra <amodra@gmail.com>
489 * emultempl/spuelf.em: Include safe-ctype.h, remove duplicate errno.h.
490 * emultempl/nds32elf.em: Include bfd_stdint.h.
491 * po/POTFILES.in: Regenerate.
493 2014-04-09 Alan Modra <amodra@gmail.com>
495 * emultempl/ppc32elf.em (no_zero_padding, ppc_finish): New functions.
496 (LDEMUL_FINISH): Define.
498 2014-04-08 Nick Clifton <nickc@redhat.com>
500 * scripttempl/pe.sc (R_RSRC): Remove default manifest.
501 * scripttempl/pep.sc (R_RSRC): Remove default manifest.
503 2014-04-08 Jon TURNEY <jon.turney@dronecode.org.uk>
505 * emultempl/elf32.em (id_note_section_size, read_hex, write_build_id):
506 Move code for parsing build-id option and calculating the build-id to...
507 * ldbuildid.c: New file.
508 * ldbuildid.h: New file.
509 * Makefile.am (CFILES, HFILES, OFILES, ld_new_SOURCES): Add new
511 * Makefile.in: Regenerate.
512 * ld.texinfo: Update --build-id description to mention COFF
514 * NEWS: Mention support for COFF build ids.
515 * emultempl/pe.em (gld${EMULATION_NAME}_handle_option):
516 (pecoff_checksum_contents, write_build_id, setup_build_id)
517 (gld_${EMULATION_NAME}_after_open): Handle and implement
519 * emultempl/pep.em: Likewise.
521 2014-04-04 Cary Coutant <ccoutant@google.com>
524 * ld.texinfo: Document optional comma following output section
525 command and overlay command.
527 2014-04-04 Alan Modra <amodra@gmail.com>
529 * ldlang.c (lang_size_sections_1 <lang_input_section_enum>): Use
530 current "fill", not "output_section_statement->fill".
532 2014-03-31 Nick Clifton <nickc@redhat.com>
535 * emultempl/elf32.em (_after_open): Create a .note.GNU-stack
536 section when performing a relocatable link with -z [no]execstack
539 2014-03-27 H.J. Lu <hongjiu.lu@intel.com>
542 * ldmain.c (symbol_warning): New function.
543 (warning_callback): Use it. Scan all input files for a reference
546 2014-03-21 Christopher Faylor <me.cygwin2013@cgf.cx>
548 * ld.texinfo: Document change in handling of --enable-auto-image-base.
549 * emultempl/pe.em (pe_auto_image_base): Set to default base.
550 (gld_${EMULATION_NAME}_list_options): Change usage message to reflect
551 optional --enable-auto-image-base argument.
552 (gld${EMULATION_NAME}_handle_option): Handle optional
553 --enable-auto-image-base argument.
554 (compute_dll_image_base): Eliminate constant. Use pe_auto_image_base.
556 2014-03-19 Nick Clifton <nickc@redhat.com>
558 * Makefile.am (default-manifest.o): Use WINDRES_FOR_TARGET.
559 * Makefile.in: Regenerate.
560 * emultempl/default-manifest.rc: Fix typo.
561 * scripttempl/pe.sc (R_RSRC): Fix default-manifest exclusion.
562 (.rsrc): Add SUBALIGN(4). Remove SORT.
563 * scripttempl/pep.sc: Likewise.
565 2014-03-17 Christopher Faylor <me.cygwin2014@cgf.cx>
567 * Makefile.am: Use host version of windres.
568 * Makefile.in: Regenerate.
570 2014-03-14 Romain Geissler <romain.geissler@amadeus.com>
571 Alan Modra <amodra@gmail.com>
573 * ldlang.h (full_name_provided): New input flag.
574 * ldlang.c (new_afile): Don't use lang_input_file_is_search_file_enum
575 for -l:namespec. Instead use lang_input_file_is_l_enum with
576 full_name_provided flag.
577 * ldlfile.c (ldfile_open_file_search): Don't complete lib name if
578 full_name_provided flag is set.
579 * emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive):
580 Handle full_name_provided libraries. Tidy EXTRA_SHLIB_EXTENSION
581 support. Set DT_NEEDED for -l:namespec as namespec.
582 * emultempl/aix.em (ppc_after_open_output): Handle full_name_provided.
583 * emultempl/linux.em (gld${EMULATION_NAME}_open_dynamic_archive):
584 Don't handle full_name_provided libraries.
585 * emultempl/pe.em (gld${EMULATION_NAME}_open_dynamic_archive): Ditto.
586 * emultempl/pep.em (gld${EMULATION_NAME}_open_dynamic_archive): Ditto.
587 * emultempl/vms.em (gld${EMULATION_NAME}_open_dynamic_archive): Ditto.
589 2014-03-12 Alan Modra <amodra@gmail.com>
591 * Makefile.in: Regenerate.
593 2014-03-05 Alan Modra <amodra@gmail.com>
595 Update copyright years.
597 2014-03-04 Nick Clifton <nickc@redhat.com>
599 * Makefile.am (ALL_EMUL_EXTRA_BINARIES): Remove default-manifest.
600 * Makefile.in: Regenerate.
602 2014-02-27 Yuri Gribov <y.gribov@samsung.com>
604 * emultempl/armelf.em (OPTION_LONG_PLT): Define.
605 (PARSE_AND_LIST_LONGOPTS): Add long-plt.
606 (PARSE_AND_LIST_OPTIONS): Likewise.
607 (PARSE_AND_LIST_ARGS_CASES): Handle long-plt.
608 * ld.texinfo: Document --long-plt.
610 2014-02-27 Alan Modra <amodra@gmail.com>
612 * emulparams/elf32ppcvxworks.sh: Source plt_unwind.sh and
614 * emultempl/ppc32elf.em (ppc_after_open): Don't compile for
616 (LDEMUL_AFTER_OPEN): Don't set for vxworks.
617 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Exclude
618 -secure-plt, -bss-plt and -sdata-got when vxworks.
620 2014-02-27 Nick Clifton <nickc@redhat.com>
622 * configure.in (all_emul_extra_binaries): New variable. Populated
623 by invoking configure.tgt.
624 (EMUL_EXTRA_BINARIES): New substitution.
625 * configure: Regenerate.
626 * configure.tgt (target_extra_binaries): New variable. Set to
627 default-manifest.o for Cygwin and MinGW targets.
628 * Makefile.am (EMUL_EXTRA_BINARIES): New variable. Initialised
629 by the configure script.
630 (ALL_EMUL_EXTRA_BINARIES): New variable.
631 (default-manifest.o): New rule to build the default manifest.
632 (ld_new_DEPENDENCIES): Add EMUL_EXTRA_BINARIES.
633 (install-data-local): Add EMUL_EXTRA_BINARIES.
634 * Makefile.in: Regenerate.
635 * ld.texinfo: Document default manifest support.
636 * emulparams/i386pe.sh (DEFAULT_MANIFEST): Define.
637 * emulparams/i386pep.sh (DEFAULT_MANIFEST): Define.
638 * emultempl/default-manifest.rc: New file.
639 * scripttempl/pe.sc (R_RSRC): Include DEFAULT_MANIFEST, if defined.
640 * scripttempl/pep.sc (R_RSRC): Likewise.
642 2014-02-26 Dan Mick <dan.mick@inktank.com>
645 * ldcref.c (cref_sort_array): Compare unmangled names unless
646 demanglng has been requiested.
647 (output_one_cref): Output unmangled name unless demangling has
650 2014-02-19 Igor Zamyatin <igor.zamyatin@intel.com>
651 H.J. Lu <hongjiu.lu@intel.com>
653 * emulparams/elf_x86_64.sh (TINY_READONLY_SECTION): New.
655 2014-02-19 Alan Modra <amodra@gmail.com>
657 * emultempl/ppc64elf.em (params): Init new field.
658 (ppc_create_output_section_statements): Set params.save_restore_funcs
660 (PARSE_AND_LIST_*): Add support for --save-restore-funcs and
661 --no-save-restore-funcs.
663 2014-02-17 Alan Modra <amodra@gmail.com>
665 * emultemps/ppc64elf.em (params): New static struct replacing
666 various other static vars. Adjust code throughout file.
668 2014-02-17 Alan Modra <amodra@gmail.com>
670 * emultempl/ppc32elf.em (ppc_after_open_output): Really enable
671 ppc476 workaround for ld -r.
673 2014-02-12 Alan Modra <amodra@gmail.com>
675 * emultempl/ppc32elf.em (pagesize): New static var.
676 (ppc_after_open_output): Set params.pagesize_p2 from pagesize.
677 (PARSE_AND_LIST_ARGS_CASES): Adjust to use pagesize.
679 2014-02-11 Andrew Pinski <apinski@cavium.com>
681 * emulparams/aarch64linux32.sh (LIBPATH_SUFFIX): Change to ilp32.
682 (ELF_INTERPRETER_NAME): Define.
683 * emulparams/aarch64linux32b.sh (ELF_INTERPRETER_NAME): Define.
685 2014-02-10 Alan Modra <amodra@gmail.com>
687 * po/ld.pot: Regenerate.
689 2014-02-03 Alan Modra <amodra@gmail.com>
691 * emultempl/ppc32elf.em (no_tls_get_addr_opt, emit_stub_syms)
692 plt_style): Delete. Adjust all refs to instead use..
693 (params): ..this. New variable.
694 (ppc_after_open_output): New function. Tweak params and pass to
696 (ppc_after_open): Adjust ppc_elf_select_plt_layout call.
697 (ppc_before_allocation): Adjust ppc_elf_tls_setup call. Enable
698 relaxation for ppc476 workaround.
699 (PARSE_AND_LIST_*): Add --{no-,}ppc476-workaround support.
700 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
702 2014-02-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
704 * ld/ld.texinfo: Change ALIGN_WITH_INPUT documentation.
705 * ld/ldlang.c (lang_size_sections_1): Add dotdelta
706 variable which reflects the VMA change due to alignment
707 requirements. Use dotdelta do change the LMA if
708 ALIGN_WITH_INPUT is requested.
710 2014-02-01 Hans-Peter Nilsson <hp@bitrange.com>
712 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Fix typo in
713 call to bfd_set_section_vma exposed by recent bfd_set_section_vma
716 2014-01-30 Sandra Loosemore <sandra@codesourcery.com>
718 * Makefile.am (enios2elf.c, enios2linux.c): Update dependencies.
719 * Makefile.in: Regenerated.
720 * emulparams/nios2elf.sh (EXTRA_EM_FILE): Set.
721 * emulparams/nios2linux.sh (EXTRA_EM_FILE): Set.
722 * emultempl/nios2elf.em: New file.
723 * gen-doc.texi (NIOSII): Set.
724 * ld.texinfo (NIOSII): Set.
726 2014-01-28 Nick Clifton <nickc@redhat.com>
728 * Makefile.am: Remove obsolete MSP430 emulations.
729 * configure.tgt: Likewise.
730 * emulparams/msp430all.sh: Likewise.
731 * Makefile.in: Regenerate.
733 2014-01-24 H.J. Lu <hongjiu.lu@intel.com>
736 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Improve
737 orphaned TLS section handling.
739 2014-01-24 Alan Modra <amodra@gmail.com>
741 * ldlang.c (lang_output_section_find_by_flags): Be careful to
742 test look->bfd_section->flags if available rather than
743 look->flags. Separate SEC_THREAD_LOCAL handling from
744 SEC_READONLY loop, and rewrite.
746 2014-01-22 Alan Modra <amodra@gmail.com>
748 * ldlang.c (asneeded_list_head, asneeded_list_tail): New vars.
749 (lang_init): Initialise them.
750 (lang_print_asneeded): New function.
751 (lang_process): Call lang_print_asneeded.
752 * ldlang.h (struct asneeded_minfo): New.
753 (asneeded_list_tail): Declare.
754 * ldmain.c (add_archive_element): Improve archive map heading.
755 * ldmisc.c (minfo): Stash --as-needed info.
757 2014-01-22 Alan Modra <amodra@gmail.com>
759 * ld.h (struct map_symbol_def): Move to..
761 * ldlang.c (print_assignment): Don't set expld.assign_name to dot.
763 2014-01-22 Alan Modra <amodra@gmail.com>
765 * ld.texinfo (Output Section Discarding): Mention assigning to dot
766 as a way of keeping otherwise empty sections.
767 * ldexp.c (is_dot, is_value, is_sym_value, is_dot_ne_0,
768 is_dot_plus_0, is_align_conditional): New predicates.
769 (exp_fold_tree_1): Set SEC_KEEP when assigning to dot inside an
770 output section, except for some special cases.
771 * scripttempl/elfmicroblaze.sc: Use canonical form to align at
772 end of .heap and .stack.
774 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
776 * emulparams/aarch64linuxb.sh (ELF_INTERPRETER_NAME): Define.
778 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
780 * emulparams/aarch64linux.sh (ELF_INTERPRETER_NAME): Define.
782 2014-01-20 Alan Modra <amodra@gmail.com>
784 * ldlang.h (struct lang_definedness_hash_entry): Add by_object and
785 by_script. Make iteration a single bit field.
786 (lang_track_definedness, lang_symbol_definition_iteration): Delete.
787 (lang_symbol_defined): Declare.
788 * ldlang.c (lang_statement_iteration): Expand comment a little.
789 (lang_init <lang_definedness_table>): Make it bigger.
790 (lang_track_definedness, lang_symbol_definition): Delete.
791 (lang_definedness_newfunc): Update.
792 (lang_symbol_defined): New function.
793 (lang_update_definedness): Create entries here. Do track whether
794 script definition of symbol is valid, even when also defined in
796 * ldexp.c (fold_name <DEFINED>): Update.
797 (fold_name <NAME>): Allow self-assignment for absolute symbols
798 defined in a linker script.
800 2014-01-20 Guy Martin <gmsoft@tuxicoman.be>
801 Alan Modra <amodra@gmail.com>
803 * ldlang.h (lang_output_section_get): Define.
804 * ldlang.c (lang_output_section_get): Likewise.
805 (init_os): Set the output_section userdata to the output
807 * emultempl/hppaelf.em: Use lang_output_section_get instead of
808 lang_output_section_find where applicable.
809 * emultempl/aarch64elf.em: Likewise.
810 * emultempl/aix.em: Likewise.
811 * emultempl/armelf.em: Likewise.
812 * emultempl/m68hc1xelf.em: Likewise.
813 * emultempl/metagelf.em: Likewise.
814 * emultempl/mipself.em: Likewise.
815 * emultempl/ppc64elf.em: Likewise.
816 * emultempl/spuelf.em: Likewise.
818 2014-01-17 Alan Modra <amodra@gmail.com>
820 * genscripts.sh (COMPILE_IN): Don't set if already set.
821 * emulparams/nds32elf.sh: Don't clear EMULATION_LIBPATH, set
823 * emulparams/nds32elf16m.sh: Likewise.
824 * emulparams/nds32elf_linux.sh: Likewise.
825 * emultempl/aix.em: Test COMPILE_IN value is "yes".
826 * emultempl/armcoff.em: Likewise.
827 * emultempl/elf32.em: Likewise.
828 * emultempl/generic.em: Likewise.
829 * emultempl/gld960.em: Likewise.
830 * emultempl/gld960c.em: Likewise.
831 * emultempl/linux.em: Likewise.
832 * emultempl/lnk960.em: Likewise.
833 * emultempl/m68kcoff.em: Likewise.
834 * emultempl/sunos.em: Likewise.
835 * emultempl/ticoff.em: Likewise.
837 2014-01-16 H.J. Lu <hongjiu.lu@intel.com>
840 * genscripts.sh: Don't search directory with LIBPATH_SUFFIX_SKIP
842 * emulparams/elf32_x86_64.sh (LIBPATH_SUFFIX_SKIP): Set to 64
843 for elf32_x86_64 emulation.
844 * emulparams/elf_i386.sh (LIBPATH_SUFFIX_SKIP): Set to 64
845 for elf_i386 emulation.
847 2014-01-16 Alan Modra <amodra@gmail.com>
849 * ld.h (fat_section_userdata_type, get_userdata): Move to..
850 * ldlang.h (input_section_userdata_type, get_userdata): ..here.
851 * ldlang.c (init_map_userdata): Delete. Fold into..
852 (sort_def_symbol): ..here. Don't attach input section userdata
853 to output sections or global bfd sections.
854 (lang_map): Don't pre-allocate input section userdata.
855 (init_os): Don't allocate userdata for output sections.
856 (print_all_symbols): Update.
858 2014-01-15 H.J. Lu <hongjiu.lu@intel.com>
860 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
861 Silence uninitialized warning on ehdr_start_save with older
864 2014-01-15 Alan Modra <amodra@gmail.com>
866 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Define
867 __ehdr_start before size_dynamic_sections and restore afterwards.
869 2014-01-10 Alan Modra <amodra@gmail.com>
874 * ldlang.c (lang_size_sections): Remove unneeded RELRO base
875 adjust. Tidy comments.
876 * ld.texinfo (DATA_SEGMENT_RELRO_END): Correct description.
878 2014-01-10 Hans-Peter Nilsson <hp@axis.com>
880 * emulparams/crislinux.sh (COMMONPAGESIZE): Define.
882 2014-01-08 H.J. Lu <hongjiu.lu@intel.com>
887 * ldlang.c (lang_size_sections): Properly align RELRO base.
889 2014-01-08 H.J. Lu <hongjiu.lu@intel.com>
891 * ldver.c (ldversion): Update copyright year to 2014.
893 For older changes see ChangeLog-2013
895 Copyright (C) 2014 Free Software Foundation, Inc.
897 Copying and distribution of this file, with or without modification,
898 are permitted in any medium without royalty provided the copyright
899 notice and this notice are preserved.
905 version-control: never