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