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