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