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