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