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