1 2009-08-24 Nick Clifton <nickc@redhat.com>
3 * scripttempl/elfxtensa.sc (DISCARDED): Discard sections with
5 * scripttempl/armbpabi.sc: Likewise.
6 * scripttempl/elf32sh-symbian.sc: Likewise.
7 * scripttempl/elf64hppa.sc: Likewise.
8 * scripttempl/mep.sc: Likewise.
10 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12 * Makefile.am (ldmain.o, ldfile.o): Fix typos in non-fastdep
14 (eelf32_spu.o): Add dependency tracking.
15 * Makefile.in: Regenerate.
17 * Makefile.am (am__skiplex, am__skipyacc): New.
18 * Makefile.in: Regenerate.
20 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22 * Makefile.am (bin_PROGRAMS): Renamed from ...
23 (noinst_PROGRAMS): ... this.
24 (transform): Override, including the renaming of ld-new to ld.
25 (install-exec-local): Installation of ld in $(bindir) not needed
27 (AM_CPPFLAGS): Renamed from ...
29 (MAINTAINERCLEANFILES): Add ld.1.
30 * Makefile.in: Regenerate.
32 * Makefile.am (AUTOMAKE_OPTIONS): Remove cygnus. Add
33 no-texinfo.tex, no-dist, foreign.
34 (TEXINFO_TEX): New variable.
35 (install-data-local): Removed, not needed any more.
36 (all): Dependencies upon info and ld.1 not needed any more.
37 (MKDEP, DEP, DEP1, dep.sed, dep, dep-in, dep-am): Removed.
38 (mkdep generated section): Removed.
39 (ldgram.o, ldlex.o, deffilep.o, ldmain.o, ldfile.o): Rewrite to
40 use automake dependency tracking mechanism.
41 (EXTRA_ld_new_SOURCES): Add pep-dll.c, pe-dll.c, and
42 $(ALL_EMULATIONS:.o=.c) $(ALL_64_EMULATIONS:.o=.c) so their
43 dependencies are tracked too.
44 (BUILT_SOURCES): New, list $(GENERATED_HFILES) to ensure they
46 * configure.in: Use AM_MAINTAINER_MODE.
47 * aclocal.m4, configure, Makefile.in: Regenerate.
49 * Makefile.am (pdf__strip_dir, install-pdf, install-pdf-am)
50 (install-pdf-recursive, html__strip_dir, install-html)
51 (install-html-am, install-html-recursive): Remove.
52 * Makefile.in: Regenerate.
54 * Makefile.in: Regenerate.
55 * aclocal.m4: Likewise.
56 * config.in: Likewise.
57 * configure: Likewise.
59 2009-08-21 Richard Guenther <rguenther@suse.de>
61 * scripttempl/elf.sc: Discard sections with .gnu.lto_ prefix.
63 2009-08-12 Tristan Gingold <gingold@adacore.com>
65 * ld.h (fat_user_section_struct): Add map_symbol_def_count field.
66 * ldlang.c (hash_entry_addr_cmp): New function.
67 (print_all_symbols): Sort the symbols by address before printing them.
69 2009-08-10 Alan Modra <amodra@bigpond.net.au>
72 * ldemul.c (after_allocation_default): Run lang_relax_sections.
73 * ldlang.h (lang_relax_sections): Declare.
74 * ldlang.c (relax_sections): Delete.
75 (lang_relax_sections): New function.
76 (lang_process): Don't relax directly from here.
77 * emultempl/alphaelf.em (alpha_finish): Call finish_default.
78 * emultempl/armelf.em (arm_elf_after_allocation): Delete. Move body..
79 (gld${EMULATION_NAME}_finish): ..to here. Move existing code..
80 (gld${EMULATION_NAME}_after_allocation): ..to here. New function.
81 (LDEMUL_AFTER_ALLOCATION): Update.
82 * emultempl/avrelf.em (avr_elf_finish, LDEMUL_FINISH): Delete.
83 (avr_elf_after_allocation): New function.
84 (LDEMUL_AFTER_ALLOCATION): Define.
85 * emultempl/elf-generic.em (gld${EMULATION_NAME}_map_segments): Call
87 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Delete. Move..
88 (gld${EMULATION_NAME}_after_allocation): ..code to here. New function.
89 (LDEMUL_AFTER_ALLOCATION, LDEMUL_FINISH): Update.
90 * emultempl/genelf.em (gld${EMULATION_NAME}_finish): Delete. Move..
91 (gld${EMULATION_NAME}_after_allocation): ..code to here. New function.
92 (LDEMUL_FINISH): Delete.
93 (LDEMUL_AFTER_ALLOCATION): Define.
94 * emultempl/hppaelf.em (gld${EMULATION_NAME}_finish): Delete. Move..
95 (gld${EMULATION_NAME}_after_allocation): ..to here. New function.
96 (LDEMUL_FINISH): Delete.
97 (LDEMUL_AFTER_ALLOCATION): Define.
98 * emultempl/m68hc1xelf.em (m68hc11elf_finish): Delete. Move..
99 (m68hc11elf_after_allocation): ..to here. New function.
100 (LDEMUL_FINISH): Delete.
101 (LDEMUL_AFTER_ALLOCATION): Define.
102 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
103 gld${EMULATION_NAME}_after_allocation.
104 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Call
105 gld${EMULATION_NAME}_after_allocation.
106 * emultempl/mmo.em (mmo_finish): Delete. Move body..
107 (gld${EMULATION_NAME}_after_allocation): ..to here. New function.
108 (LDEMUL_FINISH): Define.
109 * emultempl/ppc64elf.em (ppc_layout_sections_again): Set elf_gp.
110 (gld${EMULATION_NAME}_finish): Move code sizing sections..
111 (gld${EMULATION_NAME}_after_allocation): ..to here.
112 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_after_allocation):
113 Call gld${EMULATION_NAME}_after_allocation.
114 * emultempl/spuelf.em (gld${EMULATION_NAME}_finish): Delete
115 bfd_elf_discard_info and map_segments call.
117 2009-08-06 Michael Eager <eager@eagercon.com>
119 * Makefile.am: Add eelf32mb_linux.o, eelf32microblaze.o to
120 ALL_EMULATIONS, targets.
121 * Makefile.in: Regenerate.
122 * configure.tgt: Add microblaze*-linux*, microblaze* targets.
123 * emulparams/elf32mb_linux.sh: New.
124 * emulparams/elf32microblaze.sh. New.
125 * scripttempl/elfmicroblaze.sc: New.
127 2009-08-05 Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
129 * emulparams/elf32_spu.sh (OTHER_READONLY_SECTIONS): Add .fixup
130 section and __fixup_start symbol.
131 * emultempl/spuelf.em (params): Initialize emit_fixups member.
132 (spu_before_allocation): Call spu_elf_size_sections.
133 (OPTION_SPU_EMIT_FIXUPS): Define.
134 (PARSE_AND_LIST_LONGOPTS): Add --emit-fixups.
135 (PARSE_AND_LIST_ARGS_CASES): Handle --emit-fixups.
136 * ld.texinfo (--emit-fixups): Document.
138 2009-08-04 Alan Modra <amodra@bigpond.net.au>
141 * emultempl/ppc32elf.em (ppc_before_allocation): Test rawsize,
142 not size, after lang_reset_memory_regions.
144 2009-07-30 Alan Modra <amodra@bigpond.net.au>
146 * emulparams/elf32ppc.sh (PLT): Don't include ".iplt".
147 * emulparams/elf_i386.sh (IREL_IN_PLT): Define.
148 * emulparams/elf_x86_64.sh (IREL_IN_PLT): Define.
149 * scripttempl/elf.sc: Create separate .iplt and .rela.iplt sections
152 2009-07-29 Hans-Peter Nilsson <hp@bitrange.com>
154 * scripttempl/mmo.sc: For relocateable links, set $OUTPUT_FORMAT to
155 the new $RELOCATEABLE_OUTPUT_FORMAT, if set.
156 (OUTPUT_FORMAT): Use the variable $OUTPUT_FORMAT.
157 (ENTRY): Don't emit for relocateable links.
158 (/DISCARD/): Don't discard .gnu.warning.* for relocateable links.
159 * emulparams/mmo.sh (RELOCATEABLE_OUTPUT_FORMAT): Set, to
161 * emulparams/elf64mmix.sh (OTHER_TEXT_SECTIONS): Empty, don't
162 provide "Main" or set "_start.", for relocateable links.
164 2009-07-27 Nick Clifton <nickc@redhat.com>
166 * (po/fi.po): Updated Finnish translation.
168 2009-07-25 H.J. Lu <hongjiu.lu@intel.com>
170 * configure.tgt (targ64_extra_emuls): Add elf_l1om if elf_x86_64
171 is supported. Add elf_l1om_fbsd if elf_x86_64_fbsd is supported.
172 (targ_extra_emuls): Likewise.
174 * Makefile.am (ALL_64_EMULATIONS): Add eelf_l1om.o and
177 (eelf_l1om_fbsd.c): Likewise.
178 * Makefile.in: Regenerated.
180 * emulparams/elf_l1om.sh: New.
181 * emulparams/elf_l1om_fbsd.sh: Likewise.
183 2009-07-23 Ulrich Drepper <drepper@redhat.com>
185 * NEWS: Mention the linker's support for symbols with a binding of
188 2009-07-22 H.J. Lu <hongjiu.lu@intel.com>
191 * ldlang.c (insert_os_after): Tie assignments to non-alloc
192 output sections if there is no-input section.
194 2009-07-11 Alan Modra <amodra@bigpond.net.au>
196 * ldlang.c (insert_os_after): Don't tie assignments to non-alloc
199 2009-07-10 Alan Modra <amodra@bigpond.net.au>
201 * emultempl/ppc32elf.em (ppc_before_allocation): Turn on
202 linker relaxation if it might be necessary.
204 2009-07-10 Alan Modra <amodra@bigpond.net.au>
206 * emulparams/elf32ppc.sh (GOTPLT, PLT): Handle .iplt.
208 2009-07-06 Matthias Klose <doko@ubuntu.com>
210 * ld.texinfo: Fix typo.
212 2009-07-03 Tristan Gingold <gingold@adacore.com>
214 * scripttempl/pep.sc: Put .eh_frame in its own section.
215 * scripttempl/pe.sc: Ditto.
217 2009-06-26 Kai Tietz <kai.tietz@onevision.com>
219 * scripttempl/pe.sc (.debug_pubtypes): Added section rule.
220 * scripttempl/pep.sc: Likewise.
222 2009-06-25 Tristan Gingold <gingold@adacore.com>
224 * ldlang.c (print_input_section): Add is_discarded parameter. Adjust
226 (lang_map): Print the size of discarded sections.
227 (print_statement): Adjust call to print_input_section.
229 2009-06-18 Dave Korn <dave.korn.cygwin@gmail.com>
231 Merge cegcc and mingw32ce target name changes from CeGCC project:
233 2008-09-24 Pedro Alves <pedroalves@users.sourceforge.net>
235 * configure.tgt (arm*-*-cegcc*): Set LIB_PATH to
236 ${tooldir}/lib/w32api.
238 2007-12-25 Pedro Alves <pedro_alves@portugalmail.pt>
240 * configure.tgt: Add arm*-*-cegcc* target.
242 2007-12-17 Pedro Alves <pedro_alves@portugalmail.pt>
244 * configure.tgt: Add arm-*-mingw32ce* target.
246 2009-06-10 Philip Blundell <philb@gnu.org>
248 * emultempl/armelf.em (gld${EMULATION_NAME}_finish): Avoid crash
249 if section has no ELF data.
251 2009-06-06 H.J. Lu <hongjiu.lu@intel.com>
253 * scripttempl/elf.sc: Add .rel.ifunc and .rela.ifunc.
255 2009-06-05 H.J. Lu <hongjiu.lu@intel.com>
257 * scripttempl/elf.sc: Remove .rel.ifunc.dyn and .rela.ifunc.dyn.
259 2009-06-04 Alan Modra <amodra@bigpond.net.au>
261 * dep-in.sed: Don't use \n in replacement part of s command.
262 * Makefile.am (DEP1): LC_ALL for uniq.
263 * Makefile.in: Regenerate.
265 2009-06-01 H.J. Lu <hongjiu.lu@intel.com>
267 * scripttempl/elf.sc (PLT): Add "*(.iplt)".
268 (GOT): Add "*(.igot.plt)a" and "*(.igot)".
269 (GOTPLT): Add "*(.igot)".
270 (__rel_iplt_start): New.
271 (__rel_iplt_end): Likewise.
272 (__rela_iplt_start): Likewise.
273 (__rela_iplt_end): Likewise.
275 2009-05-27 Dave Korn <dave.korn.cygwin@gmail.com>
277 * deffilep.y (%union): Add new string-type semantic value 'digits'.
278 (%token): Remove NUMBER as token, add DIGITS.
279 (%type): Add NUMBER as type. Add new id types anylang_id, opt_id.
280 (ALIGNCOMM): Parse an anylang_id instead of a plain ID.
281 (anylang_id): New production.
282 (opt_digits): Likewise.
285 (def_lex): Return strings of digits in raw string form as DIGITS
286 token, instead of converting to numeric integer type.
288 2009-05-26 Nathan Sidwell <nathan@codesourcery.com>
290 * ldmain.c (main): Don't reject --relax -r.
291 * ld.texinfo (PowerPC ELF32): Document behaviour of relaxing
294 2009-05-26 Nick Clifton <nickc@redhat.com>
296 * po/id.po: Updated Indonesian translation.
297 * po/ld.pot: Updated template file.
299 2009-05-26 Alan Modra <amodra@bigpond.net.au>
301 * dep-in.sed: Output one filename per line with all lines having
302 continuation backslash. Prefix first line with "A", following
304 * Makefile.am (DEP): Don't use dep.sed here.
305 (DEP1): Run $MKDEP on single files, use dep.sed here on dependencies,
307 * Makefile.in: Regenerate.
309 2009-05-26 Alan Modra <amodra@bigpond.net.au>
311 * ldlang.c (lang_check_section_addresses): Ignore non-alloc sections.
313 2009-05-22 Julian Brown <julian@codesourcery.com>
315 * emultempl/armelf.em (fix_cortex_a8): New.
316 (arm_elf_before_allocation): Call bfd_elf32_arm_set_cortex_a8_fix.
317 (arm_elf_create_output_section_statements): Add fix_cortex_a8 to
318 bfd_elf32_arm_set_target_relocs.
319 (OPTION_FIX_CORTEX_A8, OPTION_NO_FIX_CORTEX_A8): New.
320 (PARSE_AND_LIST_LONGOPTS): Add [no-]fix-cortex-a8 options.
321 (PARSE_AND_LIST_OPTIONS): Add [no-]fix-cortex-a8 options.
322 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_[NO_]FIX_CORTEX_A8.
323 * ld.texinfo (--[no-]fix-cortex-a8): Briefly document new options.
325 2009-05-22 Nathan Sidwell <nathan@codesourcery.com>
327 * ldlang.c (lang_check_section_addresses): Ignore non-loadable
328 sections when checking for overlap. Clarify error message
329 concerns load address.
331 2009-05-22 Alan Modra <amodra@bigpond.net.au>
333 * Makefile.am: Run "make dep-am".
334 * Makefile.in: Regenerate.
336 2009-05-19 Dave Korn <dave.korn.cygwin@gmail.com>
338 * NEWS: Mention new feature.
339 * deffile.h (def_file_aligncomm): Add new struct definition.
340 (def_file): Add new def_file_aligncomm member.
341 * deffilep.y (%token): Add new ALIGNCOMM token.
342 (command): Add production rule for ALIGNCOMM.
343 (def_file_free): Free any chained def_file_aligncomm structs.
344 (diropts[]): Add entry for '-aligncomm' .drectve command.
345 (def_aligncomm): New grammar function.
346 * ld.texinfo: Document new feature.
347 * pe-dll.c (process_def_file): Rename from this ...
348 (process_def_file_and_drectve): ... to this, updating all callers,
349 and process any aligncomms chained to the def file after scanning
350 all .drectve sections.
351 (generate_edata): Updated to match.
352 (pe_dll_build_sections): Likewise.
354 2009-05-17 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
356 * pe-dll.c (process_def_file): Do not create empty export table.
358 2009-05-15 Alan Modra <amodra@bigpond.net.au>
360 * ldlang.c (lang_output_section_statement_lookup): Add function
361 comment. Make "name" non-const. Ensure duplicate entries use
362 the same string, allowing simple comparison in hash bucket loop.
363 Tweak constraint check.
364 (next_matching_output_section_statement): New function.
365 * ldlang.h (lang_output_section_statement_lookup): Update.
366 (next_matching_output_section_statement): Declare.
367 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
368 combine orphan sections when input sections flags differ in
370 * emultempl/pe.em: Formatting throughout.
371 (gld${EMULATION_NAME}_place_orphan): As for elf32.em.
372 * emultempl/pep.em: Formatting throughout.
373 (gld${EMULATION_NAME}_place_orphan): As for elf32.em.
375 2009-05-14 Ulrich Weigand <uweigand@de.ibm.com>
377 * emultempl/spuelf.em (PARSE_AND_LIST_ARGS_CASES): Always use
378 compact stubs with software i-cache.
380 2009-05-14 Alan Modra <amodra@bigpond.net.au>
382 * emultempl/spuelf.em (spu_before_allocation): Call
383 spu_elf_place_overlay_data.
385 2009-05-14 Alan Modra <amodra@bigpond.net.au>
387 * ldlang.c (lang_insert_orphan): Add __start_<section> symbol
388 assignment inside output section statement. Ensure only one
389 set of symbols per output section.
390 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Add non-
391 dollar sections before dollar sections. Correct add_child
393 * emultempl/pep.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
395 2009-05-05 Paul Brook <paul@codesourcery.com>
397 * emultempl/armelf.em (compare_output_sec_vma): New function.
398 (gld${EMULATION_NAME}_finish): Add exidx munging code.
400 2009-05-05 Anatoly Sokolov <aesok@post.ru>
402 * scripttempl/avr.sc (MEMORY): Use DATA_ORIGIN.
403 * emulparams/avr1.sh (DATA_ORIGIN): Add.
404 * emulparams/avr2.sh (DATA_ORIGIN): Add.
405 * emulparams/avr25.sh (DATA_ORIGIN): Add.
406 * emulparams/avr3.sh (DATA_ORIGIN): Add.
407 * emulparams/avr31.sh (DATA_ORIGIN): Add.
408 * emulparams/avr35.sh (DATA_ORIGIN): Add.
409 * emulparams/avr4.sh (DATA_ORIGIN): Add.
410 * emulparams/avr5.sh (DATA_ORIGIN): Add.
411 * emulparams/avr51.sh (DATA_ORIGIN): Add.
412 (DATA_LENGTH): Update.
413 * emulparams/avr6.sh (DATA_ORIGIN): Add.
414 (DATA_LENGTH): Update.
416 2009-05-04 Dave Korn <dave.korn.cygwin@gmail.com>
418 * NEWS: Mention new feature.
419 * ld.texinfo (--version-script): Document extent of PE support.
420 (WIN32): Mention --version-script. Extend auto-export description.
421 * pe-dll.c (process_def_file): Use version script info to filter
422 symbols from auto-export.
423 * testsuite/ld-pe/vers-script-1.d: New file.
424 * testsuite/ld-pe/vers-script-2.d: New file.
425 * testsuite/ld-pe/vers-script-3.d: New file.
426 * testsuite/ld-pe/vers-script-4.d: New file.
427 * testsuite/ld-pe/vers-script-1.ver: New file.
428 * testsuite/ld-pe/vers-script-2.ver: New file.
429 * testsuite/ld-pe/vers-script-3.ver: New file.
430 * testsuite/ld-pe/vers-script-4.ver: New file.
431 * testsuite/ld-pe/vers-script-dll.c: New file.
432 * testsuite/ld-pe/vers-script.exp: New test script.
434 2009-05-01 Nathan Sidwell <nathan@codesourcery.com>
436 * emulparams/vxworks.sh (TEXT_START_ADDR): Override.
438 2009-04-30 Nick Clifton <nickc@redhat.com>
440 * NEWS: Mention support for IFUNC symbols.
442 2009-04-29 Anthony Green <green@moxielogic.com>
444 * emulparams/elf32moxie.sh (STACK_ADDR): Move default stack
445 position out to accommodate larger programs.
447 2009-04-29 Chris Demetriou <cgd@google.com>
449 * lexsup.c (option_values): Add OPTION_NO_EXPORT_DYNAMIC.
450 (ld_options): Likewise.
451 (parse_args): Likewise.
452 * ld.texinfo: Document --no-export-dynamic.
453 * NEWS: Mention --no-export-dynamic.
455 2009-04-29 Alan Modra <amodra@bigpond.net.au>
457 * deffilep.y (STACKSIZE_K): Rename from STACKSIZE.
459 2009-04-25 Alan Modra <amodra@bigpond.net.au>
462 * genscripts.sh: Don't pass $EMULATION_NAME as $CUSTOMIZER_SCRIPT
465 2009-04-21 Daniel Jacobowitz <dan@codesourcery.com>
467 * emultempl/armelf.em (bfd_for_interwork, arm_elf_after_open)
468 (arm_elf_set_bfd_for_interworking): Delete.
469 (arm_elf_before_allocation): Do not set the interworking BFD.
470 Move allocation inside not-dynamic block.
471 (arm_elf_create_output_section_statements): Create glue sections
472 and set the interworking BFD here.
473 (LDEMUL_AFTER_OPEN): Delete.
475 2009-04-16 Richard Sandiford <r.sandiford@uk.ibm.com>
477 * ldlang.c (lang_one_common): Use bfd_define_common_symbol.
479 2009-04-15 Anthony Green <green@moxielogic.com>
481 * configure.tgt: Add moxie support.
482 * Makefile.am: Add moxie files.
483 * Makefile.in: Rebuilt.
484 * emulparams/elf32moxie.sh: New file.
485 * scripttempl/moxie.sc: New file.
487 2009-04-15 Kazu Hirata <kazu@codesourcery.com>
489 * ldlang.c: Do not include limits.h.
491 2009-04-14 Alan Modra <amodra@bigpond.net.au>
494 * ldfile.c (find_scripts_dir): Use make_relative_prefix to find
495 ldscripts in build tree. Don't repeat search for ../lib/ldscripts.
497 2009-04-13 H.J. Lu <hongjiu.lu@intel.com>
499 * ldfile.c (ldfile_find_command_file): Revert the last change.
501 2009-04-11 H.J. Lu <hongjiu.lu@intel.com>
504 * ldfile.c (ldfile_find_command_file): First try raw name.
506 2009-04-09 Nick Clifton <nickc@redhat.com>
509 * ld.texinfo (Output Section Constraint): New node. Documents the
510 ONLY_IF_RO and ONLY_IF_RW constraints.
511 (Symbolic Constants): New node. Documents the CONSTANT operator.
513 2009-04-09 Thilo Fischer <thilo.fischer@uni-muenster.de>
515 * emultempl/spuelf.em (embedded_spu_file): Use pex_one in place
518 2009-04-08 H.J. Lu <hongjiu.lu@intel.com>
520 * lexsup.c (option_values): Add OPTION_WARN_ALTERNATE_EM.
521 (ld_options): Likewise.
522 (parse_args): Likewise.
524 * ld.texinfo: Document --warn-alternate-em.
526 * NEWS: Mention --warn-alternate-em.
528 2009-04-07 DJ Delorie <dj@redhat.com>
530 * emulparams/elf32mep.sh: Change default endian to little.
532 2009-04-07 Nick Clifton <nickc@redhat.com>
534 * ld.texinfo (Output Section Address): Note that specifying an
535 address for an output section will only change the location
536 counter if the output section is used.
538 2009-04-06 Kazu Hirata <kazu@codesourcery.com>
540 * ldfile.c (ldfile_find_command_file): Initialize result.
542 2009-04-06 Kazu Hirata <kazu@codesourcery.com>
544 * ld.texinfo (-L): Mention that -L options do not affect how ld
545 searches for a linker script unless -T option is specified.
546 * ldfile.c (ldfile_find_command_file): Append the path obtained
547 from the program name to the search path instead of
548 prepending. Add a new parameter "default_only". Restrict the
549 search to the default script location if the new parameter is
551 (ldfile_open_command_file_1): New.
552 (ldfile_open_command_file): Call ldfile_open_command_file_1.
553 (ldfile_open_default_command_file): New.
555 2009-04-03 Nathan Sidwell <nathan@codesourcery.com>
557 * ldlang.c (lang_leave_output_section_statement): Set lma_region
558 if it is not overridden and section is for the same vma region as
559 the previous section.
561 2009-04-02 Dave Korn <dave.korn.cygwin@gmail.com>
564 * ld.texinfo (--export-dynamic): Mention --export-all-symbols.
565 * emultempl/pe.em (gld_${EMULATION_NAME}_after_parse): Issue
566 warning if --export-dynamic was passed on command-line.
567 * emultempl/pep.em (gld_${EMULATION_NAME}_after_parse): Likewise.
569 2009-04-01 Richard Sandiford <r.sandiford@uk.ibm.com>
571 * emultempl/aix.em (gld${EMULATION_NAME}_open_dynamic_archive): New
573 (ld_${EMULATION_NAME}_emulation): Use it.
575 2009-03-20 H.J. Lu <hongjiu.lu@intel.com>
578 * ldlang.c (lang_end): Warn missing entry symbol for -pie.
580 2009-03-19 Alan Modra <amodra@bigpond.net.au>
582 * emultempl/spuelf.em (spu_before_allocation): Report errors from
583 spu_elf_find_overlays.
585 2009-03-18 H.J. Lu <hongjiu.lu@intel.com>
588 * lexsup.c (parse_args): Call ldlang_add_undef for -e.
590 2009-03-18 Alan Modra <amodra@bigpond.net.au>
592 * ld.h: Remove alloca handling.
594 2009-03-17 Alan Modra <amodra@bigpond.net.au>
596 * emultempl/spu_icache.S: Add new entry to dummy handler.
597 * emultempl/spu_icache.o_c: Regenerate.
598 * emultempl/spuelf.em (params): Init new field.
599 (no_overlays): New static var.
600 (spu_before_allocation): Use it.
601 (OPTION_SPU_COMPACT_STUBS): Define.
602 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add compact-stubs.
603 (PARSE_AND_LIST_ARGS_CASES): Handle compact-stubs. Adjust no-overlays
606 2009-03-17 Alan Modra <amodra@bigpond.net.au>
608 * configure.host (HOSTING_LIBS): Two dollars on shell variable
609 expansion to suit make.
611 2009-03-17 Alan Modra <amodra@bigpond.net.au>
613 * configure.in: Invoke ACX_PROG_CMP_IGNORE_INITIAL.
614 * Makefile.am (check-DEJAGNU): Set DO_COMPARE.
615 * aclocal.m4: Regenerate.
616 * configure: Regenerate.
617 * Makefile.in: Regenerate.
619 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
621 * emultempl/aix.em (auto_export_flags): New variable.
622 (explicit_auto_export_flags): Likewise.
623 (OPTION_EXPALL, OPTION_EXPFULL): New enum values.
624 (OPTION_NOEXPALL, OPTION_NOEXPFULL): Likewise.
625 (gld${EMULATION_NAME}_add_options): Add -bexpall, -bexpfull,
626 -bnoexpall and -bnoexpfull.
627 (gld${EMULATION_NAME}_handle_option): Handle them.
628 (gld${EMULATION_NAME}_before_allocation): Update the call to
629 bfd_size_dynamic_sections.
631 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
633 * emultempl/aix.em (gld${EMULATION_NAME}_handle_option): Make
634 -berok and -bernotok control link_info.unresolved_syms_in_objects
635 and link_info.unresolved_syms_in_shared_libs instead of
636 force_make_executable.
638 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
640 * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Set
641 config.dynamic_link to TRUE.
643 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
645 * emultempl/aix.em (gld${EMULATION_NAME}_before_allocation): Mark
646 .text, .data and .bss output sections as SEC_KEEP.
648 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
650 * configure.tgt: Extend AIX 5 behavior to AIX 6 and above.
652 2009-03-14 Dave Korn <dave.korn.cygwin@gmail.com>
653 Danny Smith <dannysmith@users.sourceforge.net>
655 * emultmpl/pe.em (pe_dll_characteristics): New variable.
656 (OPTION_DYNAMIC_BASE, OPTION_FORCE_INTEGRITY, OPTION_NX_COMPAT,
657 OPTION_NO_ISOLATION. OPTION_NO_SEH, OPTION_NO_BIND,
658 OPTION_WDM_DRIVER, OPTION_TERMINAL_SERVER_AWARE):
659 New macros for options to set DllCharacteristics flag bits.
660 (gld${EMULATION_NAME}_add_options): Add dynamicbase, forceinteg,
661 nxcompat, no-isolation, no-seh, no-bind, wdmdriver, tsaware options.
662 (init): Add DllCharacteristics field.
663 (gld_${EMULATION_NAME}_list_options): List new options.
664 (gld${EMULATION_NAME}_handle_option): Handle new options.
665 * emultmpl/pep.em (pe_dll_characteristics): New variable.
666 (OPTION_DYNAMIC_BASE, OPTION_FORCE_INTEGRITY, OPTION_NX_COMPAT,
667 OPTION_NO_ISOLATION. OPTION_NO_SEH, OPTION_NO_BIND,
668 OPTION_WDM_DRIVER, OPTION_TERMINAL_SERVER_AWARE):
669 New macros for options to set DllCharacteristics flags.
670 (gld${EMULATION_NAME}_add_options): Add dynamicbase, forceinteg,
671 nxcompat,no-isolation, no-seh, no-bind, wdmdriver, tsaware options.
672 (init): Add DllCharacteristics field.
673 (gld_${EMULATION_NAME}_list_options): List new options.
674 (gld${EMULATION_NAME}_handle_option): Handle new options.
675 * ldtexinfo : Document dynamicbase, forceinteg, nxcompat,
676 no-isolation, no-seh, no-bind, wdmdriver, tsaware options.
678 2009-03-06 Nick Clifton <nickc@redhat.com>
680 * po/es.po: Updated Spanish translation.
682 2009-03-03 Dave Korn <dave.korn.cygwin@gmail.com>
684 * emultempl/pe.em (debug_section_p): New bfd_map_over_sections hook.
685 (gld_${EMULATION_NAME}_after_open): Use it to iterate all sections
686 of all input BFDs, looking for debug info. Enable long section names
688 * emultempl/pe.em (debug_section_p): Likewise.
689 (gld_${EMULATION_NAME}_after_open): Likewise.
690 * NEWS: Retrospectively adjust news announcement.
691 * ld.texinfo: Update documentation to mention new behaviour.
693 2009-03-03 Alan Modra <amodra@bigpond.net.au>
695 * Makefile.am: Run "make dep-am".
696 * Makefile.in: Regenerate.
698 2009-03-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
700 * ldgram.y: Add support for REGION_ALIAS operator.
701 * ldlang.c: Likewise.
702 * ldlang.h: Likewise.
704 * NEWS: Mention the new feature.
705 * ld.texinfo: Document the new feature.
707 2009-03-02 Qinwei <qinwei@sunnorth.com.cn>
709 * Makefile.am: Replace score elf emulation with score3 and score7
711 * Makefile.in: Regenerate,
712 * NEWS: Mention support for Score7 architecture.
713 * configure.tgt: Add score7 emulation to score-elf target.
714 * emulparams/scoreelf.sh: Add score7 support.
715 * emultempl/scoreelf.em: Likewise.
717 2009-03-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
719 * configure.tgt: Only use elf64hppa target emulation for hpux.
720 * emulparams/elf64hppa.sh: Don't include hppa64linux.sh.
721 (SCRIPT_NAME): Use new script elf64hppa.
722 (SCRIPT_NAME, ELFSIZE, NO_REL_RELOCS, ARCH, MACHINE, ENTRY,
723 TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT, OTHER_READONLY_SECTIONS,
724 OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS, OTHER_GOT_RELOC_SECTIONS,
725 DATA_START_SYMBOLS, OTHER_SYMBOLS, DATA_PLT, PLT_BEFORE_GOT,
726 TEXT_DYNAMIC): Define.
727 * emulparams/hppa64linux.sh: Adjust comments.
728 * scripttempl/elf64hppa.sc: New file.
730 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
732 * configure: Regenerate.
734 2009-02-27 Dave Korn <dave.korn.cygwin@gmail.com>
736 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse): Set
737 default state of auto-import flag based on $target.
739 2009-02-24 Joseph Myers <joseph@codesourcery.com>
741 * ld.texinfo (ARM): Document changed meaning of --stub-group-size.
742 * emultempl/armelf.em (hook_in_stub): Insert after the input section.
743 (elf32_arm_add_stub_section): Update comment.
744 (PARSE_AND_LIST_OPTIONS): Update help for --stub-group-size.
746 2009-02-24 Sandra Loosemore <sandra@codesourcery.com>
748 * ld.texinfo (Options): Correct typos in example. Recommend
749 using joined forms of syntax for passing options with arguments
751 (-a): Use consistent syntax for documenting option arguments.
752 Clean up indexing and markup.
753 (-A/--architecture): Likewise.
754 (-f/--auxiliary): Likewise.
755 (-F/--filter): Likewise.
757 (-G/--gpsize): Likewise.
758 (-h/-soname):Likewise.
760 (-l/--library): Likewise.
761 (-L/--library-path): Likewise.
763 (--defsym): Likewise.
764 (-I/--dynamic-linker): Likewise.
766 (--oformat): Likewise.
767 (--retain-symbols-file): Likewise.
769 (-rpath-link): Likewise.
770 (--sort-common): Likewise.
771 (--sort-section): Likewise.
772 (--split-by-file): Likewise.
773 (--split-by-reloc): Likewise.
774 (--sysroot): Likewise.
775 (--section-start): Likewise.
776 (-Tbss, -Tdata, -Ttext): Likewise.
777 (-Ttext-segment): Likewise.
778 (--version-script): Likewise.
781 2009-02-18 Dave Korn <dave.korn.cygwin@gmail.com>
783 * ld.texinfo: Update to mention long section name options.
784 * NEWS: Mention new behaviour and command-line options.
785 * pe-dll.c (pe_use_coff_long_section_names): New global variable.
786 (pe_output_file_set_long_section_names): New function.
787 (pe_dll_build_sections): Call it on output BFDs.
788 (pe_exe_build_sections): Likewise.
789 (pe_dll_fill_sections): Likewise.
790 (pe_exe_fill_sections): Likewise.
791 * pe-dll.h (pe_use_coff_long_section_names): Declare extern.
792 (pe_output_file_set_long_section_names): Add prototype.
793 * pep-dll.c (pe_use_coff_long_section_names): Define pep_ alias.
794 (pe_output_file_set_long_section_names): Likewise.
795 * pep-dll.h (pep_use_coff_long_section_names): Declare extern.
796 (pep_output_file_set_long_section_names): Add prototype.
797 * pe.em (OPTION_ENABLE_LONG_SECTION_NAMES): New getopt value macro.
798 (OPTION_DISABLE_LONG_SECTION_NAMES): Likewise.
799 (gld${EMULATION_NAME}_add_options): Add new options to xtra_long[].
800 (gld_${EMULATION_NAME}_list_options): Describe them.
801 (gld${EMULATION_NAME}_handle_option): Set or clear global
802 pe_use_coff_long_section_names flag when options recognised.
803 (gld_${EMULATION_NAME}_after_open): En/disable long section names
804 for main output bfd by calling pe_output_file_set_long_section_names.
805 * pep.em (enum options): Extend enum with new getopt option values.
806 (gld${EMULATION_NAME}_add_options): Add new options to xtra_long[].
807 (gld_${EMULATION_NAME}_list_options): Describe them.
808 (gld${EMULATION_NAME}_handle_option): Set or clear global
809 pe_use_coff_long_section_names flag when options recognised.
810 (gld_${EMULATION_NAME}_after_open): En/disable long section names
811 for main output bfd by calling pep_output_file_set_long_section_names.
813 2009-02-16 Dave Korn <dave.korn.cygwin@gmail.com>
815 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Don't emit
816 inadvertent .reloc sections caused by refactoring accident.
818 2009-02-16 Alan Modra <amodra@bigpond.net.au>
820 * ldlang.c (process_insert_statements): ASSERT that output section
821 statements are in order.
823 2009-02-16 Alan Modra <amodra@bigpond.net.au>
825 * ldlang.c (push_stat_ptr, pop_stat_ptr): New functions.
826 (stat_save, stat_save_ptr): New variables.
827 (lang_insert_orphan): Use push_stat_ptr and pop_stat_ptr.
828 (load_symbols): Likewise. Delete dead "bad_load" code.
829 (open_input_bfds): Warn on script containing output sections.
830 (lang_enter_output_section_statement): Use push_stat_ptr.
831 (lang_enter_group): Likewise.
832 (lang_leave_output_section_statement): Use pop_stat_ptr.
833 (lang_leave_group): Likewise.
834 * ldlang.h (push_stat_ptr, pop_stat_ptr): Declare.
835 * ldctor.c (ldctor_build_sets): Use push_stat_ptr and pop_stat_ptr.
836 * emultempl/beos.em (gld_${EMULATION_NAME}_set_symbols): Likewise.
837 * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Likewise.
838 * emultempl/pep.em (gld_${EMULATION_NAME}_set_symbols): Likewise.
839 * emultempl/spuelf.em (spu_place_special_section): Likewise.
840 * emultempl/xtensaelf.em (ld_xtensa_insert_page_offsets): Likewise.
842 2009-02-09 Nathan Sidwell <nathan@codesourcery.com>
844 Missing piece of 2009-01-26 commit
845 * ldlang.c (lang_process): Don't consider relocatable flag when
846 checking for overlap.
848 2009-02-05 Joseph Myers <joseph@codesourcery.com>
850 * emulparams/m68kelf.sh: Add newline at end of file.
852 2009-02-04 Nick Clifton <nickc@redhat.com>
855 * ld.texinfo (--allow-shlib-undefined): Correct description of
856 default settings and tidy up the rest of the entry.
858 2009-02-04 Alan Modra <amodra@bigpond.net.au>
860 * emultempl/spuelf.em (spu_after_open): Don't combine .text.ia.*
861 during relocatable link.
863 2009-02-03 Nick Clifton <nickc@redhat.com>
866 * ld.texinfo (Constants): Document the base-encoding suffixes
867 supported in linker scripts.
869 2009-02-03 Alan Modra <amodra@bigpond.net.au>
871 * NEWS: Mention --as-needed change.
873 2009-02-03 Carlos O'Donell <carlos@codesourcery.com>
875 * configure.in: AC_SUBST pdfdir.
876 * Makefile.am: Add install-pdf, install-pdf-am,
877 and install-pdf-recursive targets. Define pdf__strip_dir.
878 * po/Make-in: Add install-pdf target.
879 * configure: Regenerate.
880 * Makefile.in: Regenerate.
882 2009-01-31 Alan Modra <amodra@bigpond.net.au>
884 * ld.texinfo (--as-needed): Update.
886 2009-01-29 Andrew Jenner <andrew@codesourcery.com>
888 * emultempl/armelf.em: Correct formatting of help text for
889 --no-enum-size-warning option.
891 2009-01-26 Nathan Sidwell <nathan@codesourcery.com>
893 * lexsup.c (parse_args): Set check_section_addresses to 1 or 0.
894 * ld.h (args_type): Make check_section_addresses a char.
895 * ldmain.c (main): Default check_section_addresses to -1. Check it
896 for relocatable links.
897 * ld.texinfo (--check-sections): Update documentation.
899 2009-01-26 Kai Tietz <kai.tietz@onevision.com>
901 * pe-dll.c (tmp_seq2): New static variable.
902 (make_singleton_name_imp): New.
903 (make_import_fixup_entry): Use for v2 the _imp_<name> symbol and
904 avoid duplicate import table generation for same symbol.
905 (pe_create_runtime_relocator_reference): Make reference for
908 2009-01-21 Alan Modra <amodra@bigpond.net.au>
910 * emultempl/spuelf.em (params): Init new field.
911 (OPTION_SPU_NON_IA_TEXT): Define.
912 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --non-ia-text.
913 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_SPU_NON_IA_TEXT.
915 2009-01-16 H.J. Lu <hongjiu.lu@intel.com>
917 * lexsup.c (option_values): Add OPTION_TTEXT_SEGMENT.
918 (ld_options): Add -Ttext-segment.
919 (parse_args): Handle OPTION_TTEXT_SEGMENT.
921 * ld.texinfo: Document -Ttext-segment.
923 * NEWS: Mention -Ttext-segment.
925 * scripttempl/elf.sc (TEXT_START_ADDR): Use SEGMENT_START.
926 (SHLIB_TEXT_START_ADDR): Likewise.
928 2009-01-13 Alan Modra <amodra@bigpond.net.au>
930 * emultempl/spu_icache.o_c: Regenerate.
932 2009-01-12 Alan Modra <amodra@bigpond.net.au>
934 * emultempl/spuelf.em (params): Init new fields.
935 (num_lines_set, line_size_set, icache_mgr, icache_mgr_stream): New vars.
936 (spu_place_special_section): Adjust placement for soft-icache. Pad
937 soft-icache section to a fixed size. Clear addr_tree.
938 (spu_elf_load_ovl_mgr): Support soft-icache. Map overlay manager
939 sections a little more intelligently.
940 (gld${EMULATION_NAME}_finish): Don't call spu_elf_build_stubs.
941 (OPTION_SPU_NUM_LINES): Rename from OPTION_SPU_NUM_REGIONS.
942 (OPTION_SPU_SOFT_ICACHE, OPTION_SPU_LINE_SIZE): Define.
943 (OPTION_SPU_LRLIVE): Define.
944 (PARSE_AND_LIST_LONGOPTS): Add new soft-icache options.
945 (PARSE_AND_LIST_OPTIONS): Likewise.
946 (PARSE_AND_LIST_ARGS_CASES): Handle them.
947 * emultempl/spu_icache.S: Dummy file.
948 * emultempl/spu_icache.o_c: Regenerate.
949 * Makefile.am (eelf32_spu.c): Depend on spu_icache.o_c.
950 (spu_icache.o_c): Add rule to build.
951 (CLEANFILES): Zap temp files.
952 (EXTRA_DIST): Add spu_icache.o_c.
953 * Makefile.in: Regenerate.
955 2009-01-08 Kai Tietz <kai.tietz@onevision.com>
957 * pe.em (OPTION_USE_NUL_PREFIXED_IMPORT_TABLES): New.
958 (gld..._add_options): Add new option
959 --use-nul-prefixed-import-tables.
960 (gld..._handle_option): Likewise.
961 * pep.em: Same as for pe.em.
962 * ld.texinfo: Add new option documentation for
963 --use-nul-prefixed-import-tables.
964 * pe-dll.c (pe_use_nul_prefixed_import_tables): New.
965 (make_head): Make prefix leading zero prefix element for
966 idata$4 and idata$5 dependent to new flag.
967 (make_import_fixup_entry): Remove idata4/5 prefix.
968 * pe-dll.h (pe_use_nul_prefixed_import_tables): New.
969 * pep-dll.c (pe_use_nul_prefixed_import_tables): New.
970 * pep-dll.h (pep_use_nul_prefixed_import_tables): New.
971 * NEWS: Add new option.
973 2009-01-05 Kai Tietz <kai.tietz@onevision.com>
975 * emultempl/pe.em: Prefix dollar characters to be outputed in
977 * emultempl/pep.em: Likewise.
979 2009-01-03 Dave Korn <dave.korn.cygwin@gmail.com>
981 * NEWS: Mention new feature --exclude-modules-for-implib.
982 * ld.texinfo: Document new --exclude-modules-for-implib option.
983 * pe-dll.c (exclude_list_struct): Change type member from int to
984 new enumeration exclude_type.
985 (pe_dll_add_excludes): Accept exclude_type instead of int param.
986 (auto_export): Replace magic constants by exclude_type values and
987 handle new choice EXCLUDEFORIMPLIB.
988 (pe_dll_generate_implib): Accept a pointer to the link_info and
989 iterate all input BFDs looking for EXCLUDEFORIMPLIB modules; re-open
990 fresh BFDs for any found and link into import lib archive chain.
991 * pe-dll.h (exclude_type): Add new enumerated type to replace magic
992 constants previously used for exclude_list_struct type member.
993 (pe_dll_add_excludes, pe_dll_generate_implib): Update prototypes.
994 * pep-dll.h (exclude_type, pe_dll_add_excludes,
995 pe_dll_generate_implib): Likewise to all the above.
996 * emultempl/pe.em (OPTION_EXCLUDE_MODULES_FOR_IMPLIB): Define new
997 getopts long option code for new --exclude-modules-for-implib option.
998 (gld${EMULATION_NAME}_add_options): Add new entry to xtra_long[].
999 (gld_${EMULATION_NAME}_list_options): List usage for it.
1000 (gld${EMULATION_NAME}_handle_option): Use exclude_type enumerated
1001 values when calling pe_dll_add_excludes, and handle EXCLUDEFORIMPLIB.
1002 (gld_${EMULATION_NAME}_finish): Pass pointer to link_info when
1003 calling pe_dll_generate_implib.
1004 * emultempl/pep.em (options): Define new enumerated value for getopts
1005 long option code for new --exclude-modules-for-implib option.
1006 (gld${EMULATION_NAME}_add_options, gld_${EMULATION_NAME}_list_options,
1007 gld${EMULATION_NAME}_handle_option, gld_${EMULATION_NAME}_finish):
1008 Again, likewise to all the above.
1010 2009-01-03 Dave Korn <dave.korn.cygwin@gmail.com>
1012 * pe-dll.c (autofilter_liblist): Add entry for shared libgcc.
1013 (libnamencmp): New function.
1014 (auto_export): Use it in place of strncmp when filtering libraries.
1016 For older changes see ChangeLog-2008
1022 version-control: never