1 2014-12-23 Alan Modra <amodra@gmail.com>
3 * ldexp.c (struct definedness_hash_entry, definedness_table)
4 (definedness_newfunc, symbol_defined, update_definedness): Move
6 * ldlang.h (struct lang_definedness_hash_entry): ..here,..
7 * ldlang.c (lang_definedness_table, lang_definedness_newfunc)
8 (lang_symbol_defined, lang_update_definedness): ..and here.
9 * ldexp.c (ldexp_init, ldexp_finish): New functions, extracted from..
10 * ldlang.c (lang_init, lang_finish): ..here.
11 * ldexp.h (ldexp_init, ldexp_finish): Declare.
12 * ldlang.h (lang_symbol_defined, lang_update_definedness): Delete.
13 * ldmain.c (main): Call ldexp_init and ldexp_finish.
15 2014-12-10 Alan Modra <amodra@gmail.com>
17 * ldmisc.c: #include "coff-bfd.h"
19 2014-12-06 Eric Botcazou <ebotcazou@adacore.com>
21 * configure.tgt: Add Visium support.
22 * Makefile.am (ALL_EMULATION_SOURCES): Add eelf32visium.c.
23 (eelf32visium.c): New rule.
24 * Makefile.in: Regenerate.
25 * emulparams/elf32visium.sh: New file.
26 * scripttempl/visium.sc: Likewise.
28 2014-11-25 H.J. Lu <hongjiu.lu@intel.com>
30 * emulparams/elf_i386.sh (TINY_READONLY_SECTION): New.
31 * emulparams/elf_x86_64.sh (TINY_READONLY_SECTION): Add .plt.got.
33 2014-11-24 H.J. Lu <hongjiu.lu@intel.com>
35 * configure: Regenerated.
37 2014-11-24 Alan Modra <amodra@gmail.com>
39 * ld.texinfo: Correct --plt-align documentation.
40 * emultempl/ppc64elf.em (plt_stub_align): Delete. Use and set
41 params.plt_stub_align instead.
43 2014-11-18 Igor Zamyatin <igor.zamyatin@intel.com>
45 * emulparams/elf_x86_64.sh (BNDPLT): Set to yes for x86_64.
46 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
47 "-z bndplt" if BNDPLT is yes.
48 (gld${EMULATION_NAME}_list_options): Add "-z bndplt" entry.
49 * ld.texinfo: Add description for bndplt.
51 2014-10-08 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
53 * avrtiny.sc: Apply avr.sc fixes.
55 2014-11-04 Alan Modra <amodra@gmail.com>
57 * emultempl/spu_icache.o_c: Regenerate.
58 * emultempl/spu_ovl.o_c: Regenerate.
60 2014-11-03 Andrew Burgess <andrew.burgess@embecosm.com>
62 * testsuite/ld-avr/relax-02.d: Update to check size of symbols has
64 * testsuite/ld-avr/relax-03.d: Likewise.
66 2014-11-03 Andrew Burgess <andrew.burgess@embecosm.com>
68 * testsuite/ld-avr/relax-02.d: New file.
69 * testsuite/ld-avr/relax-02.s: New file.
70 * testsuite/ld-avr/relax-03.d: New file.
71 * testsuite/ld-avr/relax-03.s: New file.
73 2014-10-29 Nick Clifton <nickc@redhat.com>
75 * po/bg.po: Updated Bulgarian translation.
77 2014-10-24 Tejas Belagod <tejas.belagod@arm.com>
79 * emultempl/aarch64elf.em: Add command-line option for erratum 835769.
81 2014-10-17 Hans-Peter Nilsson <hp@axis.com>
83 Implement --print-sysroot in ld.
84 * ldlex.h (enum option_values): Add entry OPTION_PRINT_SYSROOT.
85 * lexsup.c (ld_options): Add entry for --print-sysroot.
86 (parse_args) <OPTION_PRINT_SYSROOT>: Print sysroot and exit early.
88 2014-10-16 Alan Modra <amodra@gmail.com>
91 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Don't attempt
92 to access ELF header e_flags when not ppc64 ELF output.
94 2014-10-15 Tristan Gingold <gingold@adacore.com>
96 * configure: Regenerate.
98 2014-10-15 Hans-Peter Nilsson <hp@axis.com>
100 * ldlex.l (INPUTLIST): New start condition.
101 (comment pattern, ",", "(", ")", "AS_NEEDED")
102 ({FILENAMECHAR1}{FILENAMECHAR}*, "-l"{FILENAMECHAR}+)
103 (quoted string pattern, whitespace pattern): Add INPUTLIST to
104 valid start conditions.
105 (<INPUTLIST>"="{FILENAMECHAR1}{FILENAMECHAR}*): New NAME rule.
106 (ldlex_inputlist): New start-condition-setter function.
107 * ldgram.y (input_list1): Rename from input_list. All recursive
109 (input_list): New wrapper rule for input_list1, setting
110 INPUTLIST lexer state for the duration of parsing input_list1.
111 * ldlang.c (lang_add_input_file): If the first character in the
112 filename is '=', prepend the sysroot and force the context of that
113 input file to non-sysroot.
114 * ld.texinfo (Options): When mentioning "=" and sysroot, mention
115 that --sysroot controls it, not only through the configuration.
116 (input files in linker scripts): When mentioning
117 behavior of first character "/" on scripts within sysroot, also
118 mention that effect can be forced by prefixing with "=" and
121 2014-10-14 Tristan Gingold <gingold@adacore.com>
123 * NEWS: Add marker for 2.25.
125 2014-10-13 Alan Modra <amodra@gmail.com>
127 * ldlang.c (lang_add_section): Set up map_head.s and map_tail.s when
130 2014-09-16 Kuan-Lin Chen <kuanlinchentw@gmail.com>
132 * emultempl/nds32elf.em (nds32_elf_after_open): Do not keep
134 (nds32_elf_after_allocation): Move all optimizations into
135 nds32_elf_relax_section.
137 2014-09-15 Andrew Bennett <andrew.bennett@imgtec.com>
138 Matthew Fortune <matthew.fortune@imgtec.com>
140 * ldmain.c (get_emulation): Add support for -mips32r6 and -mips64r6.
142 2014-09-12 Andrew Bennett <andrew.bennett@imgtec.com>
144 * configure.tgt: Add mips*-img-elf* target triple.
146 2014-09-01 Jon TURNEY <jon.turney@dronecode.org.uk>
148 * emultempl/pe.em (write_build_id, setup_build_id): Change pe/coff
149 build-id section name from '.build-id' to '.buildid'.
150 * emultempl/pep.em (write_build_id, setup_build_id): Ditto.
152 2014-08-22 Andreas Tobler <andreast@fgznet.ch>
154 * emulparams/armelf_fbsd.sh (TEXT_START_ADDR): Increase alignment to
155 64kB boundary like in armelf_linux.sh.
157 2014-08-22 Alan Modra <amodra@gmail.com>
159 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation): Call
160 bfd_elf_discard_info after generating glink .eh_frame. Delete
161 redundant test on ppc64_elf_setup_section_lists status.
163 2014-08-20 Maciej W. Rozycki <macro@codesourcery.com>
165 * emultempl/armelf.em (OPTION_STUBGROUP_SIZE): Fix formatting.
166 (OPTION_NO_MERGE_EXIDX_ENTRIES, OPTION_LONG_PLT): Likewise.
168 2014-08-20 Will Newton <will.newton@linaro.org>
170 * configure.tgt: Default armeb-*-eabi* to big endian.
172 2014-08-20 Daniel Micay <danielmicay@gmail.com>
174 * emultempl/pep.em: Add --high-entropy-va switch.
175 * ld.texinfo: Document the --high-entropy-va switch.
177 2014-08-20 Nick Clifton <nickc@redhat.com>
179 * scripttempl/DWARF.sc: Add copyright notice.
180 * scripttempl/aix.sc: Likewise.
181 * scripttempl/alpha.sc: Likewise.
182 * scripttempl/alphavms.sc: Likewise.
183 * scripttempl/aout.sc: Likewise.
184 * scripttempl/armaout.sc: Likewise.
185 * scripttempl/armbpabi.sc: Likewise.
186 * scripttempl/armcoff.sc: Likewise.
187 * scripttempl/avr.sc: Likewise.
188 * scripttempl/avrtiny.sc: Likewise.
189 * scripttempl/crisaout.sc: Likewise.
190 * scripttempl/delta68.sc: Likewise.
191 * scripttempl/dlx.sc: Likewise.
192 * scripttempl/elf.sc: Likewise.
193 * scripttempl/elf32cr16.sc: Likewise.
194 * scripttempl/elf32cr16c.sc: Likewise.
195 * scripttempl/elf32crx.sc: Likewise.
196 * scripttempl/elf32msp430.sc: Likewise.
197 * scripttempl/elf32msp430_3.sc: Likewise.
198 * scripttempl/elf32sh-symbian.sc: Likewise.
199 * scripttempl/elf32xc16x.sc: Likewise.
200 * scripttempl/elf32xc16xl.sc: Likewise.
201 * scripttempl/elf32xc16xs.sc: Likewise.
202 * scripttempl/elf64hppa.sc: Likewise.
203 * scripttempl/elf_chaos.sc: Likewise.
204 * scripttempl/elfd10v.sc: Likewise.
205 * scripttempl/elfd30v.sc: Likewise.
206 * scripttempl/elfi370.sc: Likewise.
207 * scripttempl/elfm68hc11.sc: Likewise.
208 * scripttempl/elfm68hc12.sc: Likewise.
209 * scripttempl/elfmicroblaze.sc: Likewise.
210 * scripttempl/elfxgate.sc: Likewise.
211 * scripttempl/elfxtensa.sc: Likewise.
212 * scripttempl/epiphany_4x4.sc: Likewise.
213 * scripttempl/epocpe.sc: Likewise.
214 * scripttempl/h8300.sc: Likewise.
215 * scripttempl/h8300h.sc: Likewise.
216 * scripttempl/h8300hn.sc: Likewise.
217 * scripttempl/h8300s.sc: Likewise.
218 * scripttempl/h8300sn.sc: Likewise.
219 * scripttempl/h8300sx.sc: Likewise.
220 * scripttempl/h8300sxn.sc: Likewise.
221 * scripttempl/h8500.sc: Likewise.
222 * scripttempl/h8500b.sc: Likewise.
223 * scripttempl/h8500c.sc: Likewise.
224 * scripttempl/h8500m.sc: Likewise.
225 * scripttempl/h8500s.sc: Likewise.
226 * scripttempl/hppaelf.sc: Likewise.
227 * scripttempl/i386beos.sc: Likewise.
228 * scripttempl/i386coff.sc: Likewise.
229 * scripttempl/i386go32.sc: Likewise.
230 * scripttempl/i386msdos.sc: Likewise.
231 * scripttempl/i860coff.sc: Likewise.
232 * scripttempl/i960.sc: Likewise.
233 * scripttempl/ia64vms.sc: Likewise.
234 * scripttempl/ip2k.sc: Likewise.
235 * scripttempl/iq2000.sc: Likewise.
236 * scripttempl/m68kaux.sc: Likewise.
237 * scripttempl/m68kcoff.sc: Likewise.
238 * scripttempl/m88kbcs.sc: Likewise.
239 * scripttempl/mcorepe.sc: Likewise.
240 * scripttempl/mep.sc: Likewise.
241 * scripttempl/mips.sc: Likewise.
242 * scripttempl/mipsbsd.sc: Likewise.
243 * scripttempl/mmo.sc: Likewise.
244 * scripttempl/moxie.sc: Likewise.
245 * scripttempl/nds32elf.sc: Likewise.
246 * scripttempl/nw.sc: Likewise.
247 * scripttempl/pe.sc: Likewise.
248 * scripttempl/pep.sc: Likewise.
249 * scripttempl/pj.sc: Likewise.
250 * scripttempl/ppcpe.sc: Likewise.
251 * scripttempl/psos.sc: Likewise.
252 * scripttempl/riscix.sc: Likewise.
253 * scripttempl/sh.sc: Likewise.
254 * scripttempl/sparccoff.sc: Likewise.
255 * scripttempl/st2000.sc: Likewise.
256 * scripttempl/tic30aout.sc: Likewise.
257 * scripttempl/tic30coff.sc: Likewise.
258 * scripttempl/tic4xcoff.sc: Likewise.
259 * scripttempl/tic54xcoff.sc: Likewise.
260 * scripttempl/tic80coff.sc: Likewise.
261 * scripttempl/v850.sc: Likewise.
262 * scripttempl/v850_rh850.sc: Likewise.
263 * scripttempl/vanilla.sc: Likewise.
264 * scripttempl/w65.sc: Likewise.
265 * scripttempl/xstormy16.sc: Likewise.
266 * scripttempl/z80.sc: Likewise.
267 * scripttempl/z8000.sc: Likewise.
269 2014-08-19 Alan Modra <amodra@gmail.com>
271 * configure: Regenerate.
273 2014-08-18 Alan Modra <amodra@gmail.com>
275 * ld.texinfo (--as-needed): Clarify that references from libraries
276 must be from needed libraries.
278 2014-08-18 Alan Modra <amodra@gmail.com>
280 * emultempl/aarch64elf.em (gld${EMULATION_NAME}_after_allocation):
281 Handle error status from bfd_elf_discard_info.
282 * emultempl/armelf.em: Likewise.
283 * emultempl/elf32.em: Likewise.
284 * emultempl/hppaelf.em: Likewise.
285 * emultempl/metagelf.em: Likewise.
286 * emultempl/nios2elf.em: Likewise.
287 * emultempl/ppc64elf.em: Likewise.
288 * emultempl/tic6xdsbt.em: Likewise.
289 * emultempl/vms.em: Likewise.
291 2014-08-14 Alan Modra <amodra@gmail.com>
294 * ldlang.c (map_head_is_link_order): Rename from
295 stripped_excluded_sections.
296 (lang_clear_os_map): New function, extracted from..
297 (strip_excluded_output_sections): ..here.
298 * ldlang.h (lang_clear_os_map): Declare.
299 * ldwrite.c (ldwrite): Call lang_clear_os_map.
300 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_after_allocation):
303 2014-08-14 Alan Modra <amodra@gmail.com>
305 * configure.ac: Move AC_PROG_CC and other macros earlier. Delete
306 plugin checks now done in config/plugins.m4.
307 * config.in: Regenerate.
308 * configure: Regenerate.
310 2014-08-14 Alan Modra <amodra@gmail.com>
312 * plugin.c (is_ir_dummy_bfd): Test BFD_PLUGIN flag rather than
315 2014-08-13 Yaakov Selkowitz <yselkowi@redhat.com>
317 * pe-dll.c (autofilter_entry_type autofilter_symbollist_i386): Add
320 2014-08-13 Alan Modra <amodra@gmail.com>
322 * ldlang.c (open_input_bfds): Don't use bfd_elf_get_dyn_lib_class.
324 2014-08-12 Alan Modra <amodra@gmail.com>
326 * ldlang.h (struct lang_input_statement_flags): Don't make "reload"
327 field conditional on ENABLE_PLUGINS.
328 * ldlang.c (open_input_bfds): Expand plugin_should_reload.
329 * plugin.h (plugin_should_reload): Delete.
330 * plugin.c (plugin_should_reload): Delete.
332 2014-08-12 Alan Modra <amodra@gmail.com>
334 * ldmain.c (notice): Update args.
335 * plugin.c (plugin_notice): Likewise. Follow warning sym link.
336 Handle new indirect symbol.
338 2014-08-12 Alan Modra <amodra@gmail.com>
340 * plugin.c (plugin_load_plugins): Set link_info.lto_plugin_active.
342 2014-08-08 Ulrich Drepper <drepper@gmail.com>
344 * ldlang.h (struct lang_input_statement_flags): Add pushed
346 * ldlex.h (enum option_values): Add OPTION_PUSH_STATE and
348 * lexsup.c (ld_options): Add entries for --push-state and
350 (parse_args): Handle OPTION_PUSH_STATE and OPTION_POP_STATE.
351 * ld.texinfo: Document --push-state and --pop-state.
353 2014-08-06 H.J. Lu <hongjiu.lu@intel.com>
356 * plugin.c (plugin_opt_plugin_arg): Drop --pass-through.
358 2014-08-05 Alan Modra <amodra@gmail.com>
360 * Makefile.in: Regenerate.
362 2014-07-29 Matthew Fortune <matthew.fortune@imgtec.com>
364 * emulparams/elf32bmip.sh: Add .MIPS.abiflags.
365 * emulparams/elf32bmipn32-defs.sh: Likewise.
366 * emulparams/elf64bmip-defs.sh: Likewise.
368 2014-07-27 Anthony Green <green@moxielogic.com>
370 * Makefile.am (ALL_EMULATION_SOURCES): Add moxiebox support.
371 (emoxiebox.c): Build.
372 * configure.tgt (targ_extra_ofiles): Add moxie-*-moxiebox*.
373 * emulparams/moxiebox.sh (TEXT_START_ADDR): New file.
374 * Makefile.in: Rebuilt.
376 2014-07-17 Stefan Kristiansson <stefan.kristiansson@saunalahti.fi>
378 * emulparams/elf32or1k_linux.sh (TEXT_START_ADDR): Increase from
379 0x0 to first page boundary at 0x2000.
381 2014-07-10 Max Filippov <jcmvbkbc@gmail.com>
383 * emultempl/xtensaelf.em (is_inconsistent_linkonce_section):
384 correctly handle missing dot in section name after
385 ".gnu.linkonce.prop.".
387 2014-07-08 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
389 * scripttempl/avr.sc: Remove KEEP for .data and
390 force .bss VMA to end of .data VMA.
392 2014-07-08 Will Newton <will.newton@linaro.org>
394 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Increase
395 alignment to 64kB boundary.
397 2014-07-04 Alan Modra <amodra@gmail.com>
399 * configure.ac: Update "configure.in" comments.
400 * configure: Regenerate.
402 2014-07-04 Alan Modra <amodra@gmail.com>
404 * configure.ac: Rename from configure.in.
405 * Makefile.in: Regenerate.
406 * config.in: Regenerate.
408 2014-07-04 Alan Modra <amodra@gmail.com>
410 * configure.in: Include bfd/version.m4.
411 (AC_INIT, AM_INIT_AUTOMAKE): Use modern form.
412 (BFD_VERSION): Delete.
413 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Remove bfd/configure.in.
414 * configure: Regenerate.
415 * Makefile.in: Regenerate.
417 2014-07-03 Alan Modra <amodra@gmail.com>
420 * ldlang.c (load_symbols): Always check flags.reload.
421 (open_input_bfds): Always reload --as-needed shared libraries,
422 not just when rescanning.
423 * ldlang.h (struct lang_input_statement_flags): Update reload comment.
424 * plugin.c (plugin_should_reload): Assume shared library arg.
425 * plugin.h (plugin_should_reload): Update comment.
427 2014-07-01 Alan Modra <amodra@gmail.com>
429 * emultempl/ppc64elf.em (stub_added): Delete.
430 (gld${EMULATION_NAME}_finish): Call ppc64_elf_build_stubs even when
431 none of the usual stubs have been added. Only change entry_section
434 2014-07-01 Alan Modra <amodra@gmail.com>
436 * sysdep.h: Don't include limits.h and sys/param.h. Don't
437 include unistd.h twice.
438 (LD_PATHMAX): Don't define.
439 * ldlang.c (lang_common): Don't use UINT_MAX.
441 2014-07-01 Barney Stratford <barney_stratford@fastmail.fm>
442 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
443 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
444 Soundararajan <Sounderarajan.D@atmel.com>
446 * Makefile.am (ALL_EMULATION_SOURCES): Add avrtiny emulation source.
447 (eavrtiny.c): Add rules for avrtiny emulation source.
448 * Makefile.in: Regenerate.
449 * configure.tgt: Add avrtiny to avr target emulations.
450 * scripttempl/avrtiny.sc: New file. Linker script template for
452 * emulparams/avrtiny.sh: New file. Emulation parameters for
455 2014-06-30 Ulrich Drepper <drepper@gmail.com>
457 * lexsup.c (parse_args): Check whether provided SONAME is empty
458 string. If yes, warn and ignore it. Don't overwrite valid SONAME
461 2014-06-26 Linda Zhang <lindasc@qq.com>
463 * emultempl/pe.em: Initialise insert_timestamp to true.
464 Add a --no-insert-timestamp command line option.
465 * emultempl/pep.em: Likewise.
466 * ld.texinfo: Document that --insert-timestamp is enabled by
467 default and that it now has an inverse command line option.
468 * NEWS: Mention the new behaviour.
470 2014-06-25 Nick Clifton <nickc@redhat.com>
472 * Makefile.am (ALL_EMULATION_SOURCES): Move ei386pep.c from
474 (ALL_64_EMULATION_SOURCES): ... to here.
475 (ALL_EMUL_EXTRA_OFILES): Move pep-dll.o from here...
476 (ALL_64_EMUL_EXTRA_OFILES): New. ... to here.
477 * configure.in (EMUL_EXTRA_OFILES): Include
478 ALL_64_EMUL_EXTRA_OFILES when making a 64-bit enabled build.
479 * Makefile.in: Regenerate.
480 * configure: Regenerate.
482 2014-06-18 Andreas Tobler <andreast@fgznet.ch>
484 * configure.tgt (arm*-*-freebsd*): Update targ_extra_emuls.
485 (arm*b-*-freebsd*): Add target.
486 * emulparams/armelfb_fbsd.sh: Added.
487 * emulparams/armelf_fbsd.sh: Updated.
488 * Makefile.am (ALL_EMULATION_SOURCES): Add earmelfb_fbsd.c.
489 * Makefile.in: Regenerate.
491 2014-06-16 Alan Modra <amodra@gmail.com>
493 * scripttempl/elf.sc: Edit out __rela_iplt symbol assignments from
494 .rel sections, and __rel_iplt from .rela sections.
495 * scripttempl/nds32elf.sc: Likewise.
496 * Makefile.am (ends32*.c) Depend on nds32elf.sc.
497 * Makefile.in: Regenerate.
499 2014-06-13 Alan Modra <amodra@gmail.com>
502 * ldlang.c (output_bfd_hash_table_free_fn): Delete.
503 (open_output): Don't set it..
504 * ldmain.c (ld_cleanup): ..or call it.
506 2014-06-13 Alan Modra <amodra@gmail.com>
508 * emultempl/cr16elf.em, * emultempl/elf32.em, * emultempl/genelf.em,
509 * emultempl/m68kcoff.em, * emultempl/m68kelf.em,
510 * emultempl/nds32elf.em, * emultempl/pe.em, * emultempl/pep.em,
511 * ldlang.c, * ldmain.c, * pe-dll.c: Update for bfd.link_next change.
513 2014-06-13 Alan Modra <amodra@gmail.com>
515 * Makefile.am (ALL_EMULATION_SOURCES): Add enios2elf.c, enios2linux.c.
516 * Makefile.in: Regenerate.
518 2014-06-07 Alan Modra <amodra@gmail.com>
520 * ldexp.c (exp_fold_tree_1 <etree_provide>): Make PROVIDEd
521 linker script symbol value override a built-in linker symbol.
523 2014-06-05 Joel Brobecker <brobecker@adacore.com>
525 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Add dependency on
526 bfd's development.sh.
527 * Makefile.in, configure: Regenerate.
529 2014-06-02 Alan Modra <amodra@gmail.com>
531 * emulparams/elf32bfin.sh: Rename from bfin.sh.
532 * emulparams/elf32bfinfd.sh: Update to suit.
533 * emulparams/msp430.sh: Rename from msp430all.sh. Remove
534 MSP430_NAME and msp430X vars.
535 * emulparams/msp430X.sh: New.
536 * emulparams/score3_elf.sh: Rename from scoreelf.sh. Remove
537 SCORE_NAME and score7_elf ARCH setting.
538 * emulparams/score7_elf.sh: New.
539 * Makefile.am (eelf32bfin.c, eelf32bfinfd.c): Update dependencies.
540 (emsp430.c, emsp430X.c, escore3_elf.c, escore7_elf.c): Likewise.
541 * Makefile.in: Regenerate.
542 * genscripts.sh: Delete customizer_script param.
544 2014-05-28 Hans-Peter Nilsson <hp@axis.com>
546 * Makefile.am: Change all rules with ${GENSCRIPTS}
547 invocations to be just dependencies.
548 ($(ALL_EMULATION_SOURCES) $(ALL_64_EMULATION_SOURCES))
549 (run-genscripts): New rules.
550 * Makefile.in: Regenerate.
552 2014-05-27 DJ Delorie <dj@redhat.com>
554 * ld/ldemul.h (extra_map_file_text): New field.
555 (ldemul_extra_map_file_text): Declare.
556 * ld/ldemul.c (ldemul_extra_map_file_text): Define.
557 * ld/ldlang.c (lang_map): Call it.
559 * ld/emultempl/rxelf.em: Add extra_map_file_text hook.
560 * ld/emultempl/aix.em: Add NULL extra_map_file_text hook.
561 * ld/emultempl/armcoff.em: Likewise.
562 * ld/emultempl/beos.em: Likewise.
563 * ld/emultempl/elf32.em: Likewise.
564 * ld/emultempl/generic.em: Likewise.
565 * ld/emultempl/gld960.em: Likewise.
566 * ld/emultempl/gld960c.em: Likewise.
567 * ld/emultempl/linux.em: Likewise.
568 * ld/emultempl/lnk960.em: Likewise.
569 * ld/emultempl/m68kcoff.em: Likewise.
570 * ld/emultempl/pe.em: Likewise.
571 * ld/emultempl/pep.em: Likewise.
572 * ld/emultempl/sunos.em: Likewise.
573 * ld/emultempl/ticoff.em: Likewise.
574 * ld/emultempl/vanilla.em: Likewise.
576 2014-05-24 Alan Modra <amodra@gmail.com>
578 * ldlang.c (base): Move variable to..
579 * mri.c: ..here, and make static.
580 * ldlang.h (base): Delete declaration.
582 2014-05-20 Hans-Peter Nilsson <hp@axis.com>
584 * Makefile.am (ALL_EMULATION_SOURCES): Add missing eelf32mbel_linux.c.
585 * Makefile.in: Regenerate.
587 2014-05-20 Alan Modra <amodra@gmail.com>
590 * emulparams/elf32ppccommon.sh (_SDA_BASE_, _SDA2_BASE_): Delete.
591 * emultempl/ppc32elf.em (ppc_before_allocation): Call
592 ppc_elf_maybe_strip_sdata_syms.
593 * ldlang.c (size_input_section): Correct output_offset value
594 for excluded input sections.
596 2014-05-16 John Marino <binutils@marino.st>
598 * configure.tgt: Add /lib to dragonfly NATIVE_LIB_DIRS.
600 2014-05-11 Chung-Lin Tang <cltang@codesourcery.com>
602 * emulparams/nios2linux.sh (OTHER_GOT_SYMBOLS): Wrap _gp in HIDDEN(),
603 and gp in PROVIDE_HIDDEN.
605 2014-05-10 Hans-Peter Nilsson <hp@bitrange.com>
607 * ldlang.c (lang_finish): Don't call bfd_link_hash_table_free here.
608 (output_bfd_hash_table_free_fn): New variable.
609 (open_output): Save the _bfd_link_hash_table_free function for the
610 output_bfd into output_bfd_hash_table_free_fn.
611 * ldmain.c (ld_cleanup): If set, call output_bfd_hash_table_free_fn
613 * ldlang.h (output_bfd_hash_table_free_fn): Declare.
615 2014-05-02 Alan Modra <amodra@gmail.com>
617 * emultempl/metagelf.em: Update bfd target vector naming.
618 * emultempl/nios2elf.em: Likewise.
619 * emultempl/spuelf.em: Likewise.
620 * emultempl/tic6xdsbt.em: Likewise.
622 2014-04-22 Christian Svensson <blue@cmd.nu>
624 * Makefile.am: Remove openrisc and or32 support. Add support for or1k.
625 * configure.tgt: Likewise.
626 * emulparams/elf32or1k.sh: New file.
627 * emulparams/elf32or1k_linux.sh: New file.
628 * emulparams/elf32openrisc.sh: Delete.
629 * emulparams/or32.sh: Delete.
630 * emulparams/or32elf.sh: Delete.
631 * scripttempl/or32.sc: Delete.
632 * Makefile.in: Regenerate.
634 2014-04-21 Richard Henderson <rth@redhat.com>
636 * emultempl/alphaelf.em (alpha_after_parse): Enable 2 relax passes.
638 2014-04-16 Steve Ellcey <sellcey@mips.com>
640 * emultempl/elf32.em: Include safe-ctype.h.
642 2014-04-16 Steve Ellcey <sellcey@mips.com>
644 * ldbuildid.c (generate_build_id): Add ATTRIBUTE_UNUSED to size arg.
646 2014-04-09 Nick Clifton <nickc@redhat.com>
648 * Makefile.am (default-manifest.o): Remove rule.
649 (EMUL_EXTRA_BINARIES): Delete.
650 (ALL_EMUL_EXTRA_BINARIES): Delete.
651 (ld_new_DEPENDENCIES): Remove EMUL_EXTRA_BINARIES.
652 (install-data-local): Remove EMUL_EXTRA_BINARIES.
653 * Makefile.in: Regenerate.
654 * configure.in (all_emul_extra_binaries): Delete.
655 (EMUL_EXTRA_BINARIES): Remove.
656 * configure: Regenerate.
657 * configure.tgt (target_extra_binaries): Delete.
658 * emultempl/default-manifest.rc: Delete.
659 * ld.texinfo: Remove discussion of default manifest.
660 * emulparams/i386pe.sh (DEFAULT_MANIFEST): Delete.
661 * emulparams/i386pep.sh (DEFAULT_MANIFEST): Delete.
663 2014-04-09 Alan Modra <amodra@gmail.com>
665 * emultempl/spuelf.em: Include safe-ctype.h, remove duplicate errno.h.
666 * emultempl/nds32elf.em: Include bfd_stdint.h.
667 * po/POTFILES.in: Regenerate.
669 2014-04-09 Alan Modra <amodra@gmail.com>
671 * emultempl/ppc32elf.em (no_zero_padding, ppc_finish): New functions.
672 (LDEMUL_FINISH): Define.
674 2014-04-08 Nick Clifton <nickc@redhat.com>
676 * scripttempl/pe.sc (R_RSRC): Remove default manifest.
677 * scripttempl/pep.sc (R_RSRC): Remove default manifest.
679 2014-04-08 Jon TURNEY <jon.turney@dronecode.org.uk>
681 * emultempl/elf32.em (id_note_section_size, read_hex, write_build_id):
682 Move code for parsing build-id option and calculating the build-id to...
683 * ldbuildid.c: New file.
684 * ldbuildid.h: New file.
685 * Makefile.am (CFILES, HFILES, OFILES, ld_new_SOURCES): Add new
687 * Makefile.in: Regenerate.
688 * ld.texinfo: Update --build-id description to mention COFF
690 * NEWS: Mention support for COFF build ids.
691 * emultempl/pe.em (gld${EMULATION_NAME}_handle_option):
692 (pecoff_checksum_contents, write_build_id, setup_build_id)
693 (gld_${EMULATION_NAME}_after_open): Handle and implement
695 * emultempl/pep.em: Likewise.
697 2014-04-04 Cary Coutant <ccoutant@google.com>
700 * ld.texinfo: Document optional comma following output section
701 command and overlay command.
703 2014-04-04 Alan Modra <amodra@gmail.com>
705 * ldlang.c (lang_size_sections_1 <lang_input_section_enum>): Use
706 current "fill", not "output_section_statement->fill".
708 2014-03-31 Nick Clifton <nickc@redhat.com>
711 * emultempl/elf32.em (_after_open): Create a .note.GNU-stack
712 section when performing a relocatable link with -z [no]execstack
715 2014-03-27 H.J. Lu <hongjiu.lu@intel.com>
718 * ldmain.c (symbol_warning): New function.
719 (warning_callback): Use it. Scan all input files for a reference
722 2014-03-21 Christopher Faylor <me.cygwin2013@cgf.cx>
724 * ld.texinfo: Document change in handling of --enable-auto-image-base.
725 * emultempl/pe.em (pe_auto_image_base): Set to default base.
726 (gld_${EMULATION_NAME}_list_options): Change usage message to reflect
727 optional --enable-auto-image-base argument.
728 (gld${EMULATION_NAME}_handle_option): Handle optional
729 --enable-auto-image-base argument.
730 (compute_dll_image_base): Eliminate constant. Use pe_auto_image_base.
732 2014-03-19 Nick Clifton <nickc@redhat.com>
734 * Makefile.am (default-manifest.o): Use WINDRES_FOR_TARGET.
735 * Makefile.in: Regenerate.
736 * emultempl/default-manifest.rc: Fix typo.
737 * scripttempl/pe.sc (R_RSRC): Fix default-manifest exclusion.
738 (.rsrc): Add SUBALIGN(4). Remove SORT.
739 * scripttempl/pep.sc: Likewise.
741 2014-03-17 Christopher Faylor <me.cygwin2014@cgf.cx>
743 * Makefile.am: Use host version of windres.
744 * Makefile.in: Regenerate.
746 2014-03-14 Romain Geissler <romain.geissler@amadeus.com>
747 Alan Modra <amodra@gmail.com>
749 * ldlang.h (full_name_provided): New input flag.
750 * ldlang.c (new_afile): Don't use lang_input_file_is_search_file_enum
751 for -l:namespec. Instead use lang_input_file_is_l_enum with
752 full_name_provided flag.
753 * ldlfile.c (ldfile_open_file_search): Don't complete lib name if
754 full_name_provided flag is set.
755 * emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive):
756 Handle full_name_provided libraries. Tidy EXTRA_SHLIB_EXTENSION
757 support. Set DT_NEEDED for -l:namespec as namespec.
758 * emultempl/aix.em (ppc_after_open_output): Handle full_name_provided.
759 * emultempl/linux.em (gld${EMULATION_NAME}_open_dynamic_archive):
760 Don't handle full_name_provided libraries.
761 * emultempl/pe.em (gld${EMULATION_NAME}_open_dynamic_archive): Ditto.
762 * emultempl/pep.em (gld${EMULATION_NAME}_open_dynamic_archive): Ditto.
763 * emultempl/vms.em (gld${EMULATION_NAME}_open_dynamic_archive): Ditto.
765 2014-03-12 Alan Modra <amodra@gmail.com>
767 * Makefile.in: Regenerate.
769 2014-03-05 Alan Modra <amodra@gmail.com>
771 Update copyright years.
773 2014-03-04 Nick Clifton <nickc@redhat.com>
775 * Makefile.am (ALL_EMUL_EXTRA_BINARIES): Remove default-manifest.
776 * Makefile.in: Regenerate.
778 2014-02-27 Yuri Gribov <y.gribov@samsung.com>
780 * emultempl/armelf.em (OPTION_LONG_PLT): Define.
781 (PARSE_AND_LIST_LONGOPTS): Add long-plt.
782 (PARSE_AND_LIST_OPTIONS): Likewise.
783 (PARSE_AND_LIST_ARGS_CASES): Handle long-plt.
784 * ld.texinfo: Document --long-plt.
786 2014-02-27 Alan Modra <amodra@gmail.com>
788 * emulparams/elf32ppcvxworks.sh: Source plt_unwind.sh and
790 * emultempl/ppc32elf.em (ppc_after_open): Don't compile for
792 (LDEMUL_AFTER_OPEN): Don't set for vxworks.
793 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Exclude
794 -secure-plt, -bss-plt and -sdata-got when vxworks.
796 2014-02-27 Nick Clifton <nickc@redhat.com>
798 * configure.in (all_emul_extra_binaries): New variable. Populated
799 by invoking configure.tgt.
800 (EMUL_EXTRA_BINARIES): New substitution.
801 * configure: Regenerate.
802 * configure.tgt (target_extra_binaries): New variable. Set to
803 default-manifest.o for Cygwin and MinGW targets.
804 * Makefile.am (EMUL_EXTRA_BINARIES): New variable. Initialised
805 by the configure script.
806 (ALL_EMUL_EXTRA_BINARIES): New variable.
807 (default-manifest.o): New rule to build the default manifest.
808 (ld_new_DEPENDENCIES): Add EMUL_EXTRA_BINARIES.
809 (install-data-local): Add EMUL_EXTRA_BINARIES.
810 * Makefile.in: Regenerate.
811 * ld.texinfo: Document default manifest support.
812 * emulparams/i386pe.sh (DEFAULT_MANIFEST): Define.
813 * emulparams/i386pep.sh (DEFAULT_MANIFEST): Define.
814 * emultempl/default-manifest.rc: New file.
815 * scripttempl/pe.sc (R_RSRC): Include DEFAULT_MANIFEST, if defined.
816 * scripttempl/pep.sc (R_RSRC): Likewise.
818 2014-02-26 Dan Mick <dan.mick@inktank.com>
821 * ldcref.c (cref_sort_array): Compare unmangled names unless
822 demanglng has been requiested.
823 (output_one_cref): Output unmangled name unless demangling has
826 2014-02-19 Igor Zamyatin <igor.zamyatin@intel.com>
827 H.J. Lu <hongjiu.lu@intel.com>
829 * emulparams/elf_x86_64.sh (TINY_READONLY_SECTION): New.
831 2014-02-19 Alan Modra <amodra@gmail.com>
833 * emultempl/ppc64elf.em (params): Init new field.
834 (ppc_create_output_section_statements): Set params.save_restore_funcs
836 (PARSE_AND_LIST_*): Add support for --save-restore-funcs and
837 --no-save-restore-funcs.
839 2014-02-17 Alan Modra <amodra@gmail.com>
841 * emultemps/ppc64elf.em (params): New static struct replacing
842 various other static vars. Adjust code throughout file.
844 2014-02-17 Alan Modra <amodra@gmail.com>
846 * emultempl/ppc32elf.em (ppc_after_open_output): Really enable
847 ppc476 workaround for ld -r.
849 2014-02-12 Alan Modra <amodra@gmail.com>
851 * emultempl/ppc32elf.em (pagesize): New static var.
852 (ppc_after_open_output): Set params.pagesize_p2 from pagesize.
853 (PARSE_AND_LIST_ARGS_CASES): Adjust to use pagesize.
855 2014-02-11 Andrew Pinski <apinski@cavium.com>
857 * emulparams/aarch64linux32.sh (LIBPATH_SUFFIX): Change to ilp32.
858 (ELF_INTERPRETER_NAME): Define.
859 * emulparams/aarch64linux32b.sh (ELF_INTERPRETER_NAME): Define.
861 2014-02-10 Alan Modra <amodra@gmail.com>
863 * po/ld.pot: Regenerate.
865 2014-02-03 Alan Modra <amodra@gmail.com>
867 * emultempl/ppc32elf.em (no_tls_get_addr_opt, emit_stub_syms)
868 plt_style): Delete. Adjust all refs to instead use..
869 (params): ..this. New variable.
870 (ppc_after_open_output): New function. Tweak params and pass to
872 (ppc_after_open): Adjust ppc_elf_select_plt_layout call.
873 (ppc_before_allocation): Adjust ppc_elf_tls_setup call. Enable
874 relaxation for ppc476 workaround.
875 (PARSE_AND_LIST_*): Add --{no-,}ppc476-workaround support.
876 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
878 2014-02-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
880 * ld/ld.texinfo: Change ALIGN_WITH_INPUT documentation.
881 * ld/ldlang.c (lang_size_sections_1): Add dotdelta
882 variable which reflects the VMA change due to alignment
883 requirements. Use dotdelta do change the LMA if
884 ALIGN_WITH_INPUT is requested.
886 2014-02-01 Hans-Peter Nilsson <hp@bitrange.com>
888 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Fix typo in
889 call to bfd_set_section_vma exposed by recent bfd_set_section_vma
892 2014-01-30 Sandra Loosemore <sandra@codesourcery.com>
894 * Makefile.am (enios2elf.c, enios2linux.c): Update dependencies.
895 * Makefile.in: Regenerated.
896 * emulparams/nios2elf.sh (EXTRA_EM_FILE): Set.
897 * emulparams/nios2linux.sh (EXTRA_EM_FILE): Set.
898 * emultempl/nios2elf.em: New file.
899 * gen-doc.texi (NIOSII): Set.
900 * ld.texinfo (NIOSII): Set.
902 2014-01-28 Nick Clifton <nickc@redhat.com>
904 * Makefile.am: Remove obsolete MSP430 emulations.
905 * configure.tgt: Likewise.
906 * emulparams/msp430all.sh: Likewise.
907 * Makefile.in: Regenerate.
909 2014-01-24 H.J. Lu <hongjiu.lu@intel.com>
912 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Improve
913 orphaned TLS section handling.
915 2014-01-24 Alan Modra <amodra@gmail.com>
917 * ldlang.c (lang_output_section_find_by_flags): Be careful to
918 test look->bfd_section->flags if available rather than
919 look->flags. Separate SEC_THREAD_LOCAL handling from
920 SEC_READONLY loop, and rewrite.
922 2014-01-22 Alan Modra <amodra@gmail.com>
924 * ldlang.c (asneeded_list_head, asneeded_list_tail): New vars.
925 (lang_init): Initialise them.
926 (lang_print_asneeded): New function.
927 (lang_process): Call lang_print_asneeded.
928 * ldlang.h (struct asneeded_minfo): New.
929 (asneeded_list_tail): Declare.
930 * ldmain.c (add_archive_element): Improve archive map heading.
931 * ldmisc.c (minfo): Stash --as-needed info.
933 2014-01-22 Alan Modra <amodra@gmail.com>
935 * ld.h (struct map_symbol_def): Move to..
937 * ldlang.c (print_assignment): Don't set expld.assign_name to dot.
939 2014-01-22 Alan Modra <amodra@gmail.com>
941 * ld.texinfo (Output Section Discarding): Mention assigning to dot
942 as a way of keeping otherwise empty sections.
943 * ldexp.c (is_dot, is_value, is_sym_value, is_dot_ne_0,
944 is_dot_plus_0, is_align_conditional): New predicates.
945 (exp_fold_tree_1): Set SEC_KEEP when assigning to dot inside an
946 output section, except for some special cases.
947 * scripttempl/elfmicroblaze.sc: Use canonical form to align at
948 end of .heap and .stack.
950 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
952 * emulparams/aarch64linuxb.sh (ELF_INTERPRETER_NAME): Define.
954 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
956 * emulparams/aarch64linux.sh (ELF_INTERPRETER_NAME): Define.
958 2014-01-20 Alan Modra <amodra@gmail.com>
960 * ldlang.h (struct lang_definedness_hash_entry): Add by_object and
961 by_script. Make iteration a single bit field.
962 (lang_track_definedness, lang_symbol_definition_iteration): Delete.
963 (lang_symbol_defined): Declare.
964 * ldlang.c (lang_statement_iteration): Expand comment a little.
965 (lang_init <lang_definedness_table>): Make it bigger.
966 (lang_track_definedness, lang_symbol_definition): Delete.
967 (lang_definedness_newfunc): Update.
968 (lang_symbol_defined): New function.
969 (lang_update_definedness): Create entries here. Do track whether
970 script definition of symbol is valid, even when also defined in
972 * ldexp.c (fold_name <DEFINED>): Update.
973 (fold_name <NAME>): Allow self-assignment for absolute symbols
974 defined in a linker script.
976 2014-01-20 Guy Martin <gmsoft@tuxicoman.be>
977 Alan Modra <amodra@gmail.com>
979 * ldlang.h (lang_output_section_get): Define.
980 * ldlang.c (lang_output_section_get): Likewise.
981 (init_os): Set the output_section userdata to the output
983 * emultempl/hppaelf.em: Use lang_output_section_get instead of
984 lang_output_section_find where applicable.
985 * emultempl/aarch64elf.em: Likewise.
986 * emultempl/aix.em: Likewise.
987 * emultempl/armelf.em: Likewise.
988 * emultempl/m68hc1xelf.em: Likewise.
989 * emultempl/metagelf.em: Likewise.
990 * emultempl/mipself.em: Likewise.
991 * emultempl/ppc64elf.em: Likewise.
992 * emultempl/spuelf.em: Likewise.
994 2014-01-17 Alan Modra <amodra@gmail.com>
996 * genscripts.sh (COMPILE_IN): Don't set if already set.
997 * emulparams/nds32elf.sh: Don't clear EMULATION_LIBPATH, set
999 * emulparams/nds32elf16m.sh: Likewise.
1000 * emulparams/nds32elf_linux.sh: Likewise.
1001 * emultempl/aix.em: Test COMPILE_IN value is "yes".
1002 * emultempl/armcoff.em: Likewise.
1003 * emultempl/elf32.em: Likewise.
1004 * emultempl/generic.em: Likewise.
1005 * emultempl/gld960.em: Likewise.
1006 * emultempl/gld960c.em: Likewise.
1007 * emultempl/linux.em: Likewise.
1008 * emultempl/lnk960.em: Likewise.
1009 * emultempl/m68kcoff.em: Likewise.
1010 * emultempl/sunos.em: Likewise.
1011 * emultempl/ticoff.em: Likewise.
1013 2014-01-16 H.J. Lu <hongjiu.lu@intel.com>
1016 * genscripts.sh: Don't search directory with LIBPATH_SUFFIX_SKIP
1018 * emulparams/elf32_x86_64.sh (LIBPATH_SUFFIX_SKIP): Set to 64
1019 for elf32_x86_64 emulation.
1020 * emulparams/elf_i386.sh (LIBPATH_SUFFIX_SKIP): Set to 64
1021 for elf_i386 emulation.
1023 2014-01-16 Alan Modra <amodra@gmail.com>
1025 * ld.h (fat_section_userdata_type, get_userdata): Move to..
1026 * ldlang.h (input_section_userdata_type, get_userdata): ..here.
1027 * ldlang.c (init_map_userdata): Delete. Fold into..
1028 (sort_def_symbol): ..here. Don't attach input section userdata
1029 to output sections or global bfd sections.
1030 (lang_map): Don't pre-allocate input section userdata.
1031 (init_os): Don't allocate userdata for output sections.
1032 (print_all_symbols): Update.
1034 2014-01-15 H.J. Lu <hongjiu.lu@intel.com>
1036 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
1037 Silence uninitialized warning on ehdr_start_save with older
1040 2014-01-15 Alan Modra <amodra@gmail.com>
1042 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Define
1043 __ehdr_start before size_dynamic_sections and restore afterwards.
1045 2014-01-10 Alan Modra <amodra@gmail.com>
1050 * ldlang.c (lang_size_sections): Remove unneeded RELRO base
1051 adjust. Tidy comments.
1052 * ld.texinfo (DATA_SEGMENT_RELRO_END): Correct description.
1054 2014-01-10 Hans-Peter Nilsson <hp@axis.com>
1056 * emulparams/crislinux.sh (COMMONPAGESIZE): Define.
1058 2014-01-08 H.J. Lu <hongjiu.lu@intel.com>
1063 * ldlang.c (lang_size_sections): Properly align RELRO base.
1065 2014-01-08 H.J. Lu <hongjiu.lu@intel.com>
1067 * ldver.c (ldversion): Update copyright year to 2014.
1069 For older changes see ChangeLog-2013
1071 Copyright (C) 2014 Free Software Foundation, Inc.
1073 Copying and distribution of this file, with or without modification,
1074 are permitted in any medium without royalty provided the copyright
1075 notice and this notice are preserved.
1081 version-control: never