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