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