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