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