1 2009-07-03 Tristan Gingold <gingold@adacore.com>
3 * scripttempl/pep.sc: Put .eh_frame in its own section.
4 * scripttempl/pe.sc: Ditto.
6 2009-06-26 Kai Tietz <kai.tietz@onevision.com>
8 * scripttempl/pe.sc (.debug_pubtypes): Added section rule.
9 * scripttempl/pep.sc: Likewise.
11 2009-06-25 Tristan Gingold <gingold@adacore.com>
13 * ldlang.c (print_input_section): Add is_discarded parameter. Adjust
15 (lang_map): Print the size of discarded sections.
16 (print_statement): Adjust call to print_input_section.
18 2009-06-18 Dave Korn <dave.korn.cygwin@gmail.com>
20 Merge cegcc and mingw32ce target name changes from CeGCC project:
22 2008-09-24 Pedro Alves <pedroalves@users.sourceforge.net>
24 * configure.tgt (arm*-*-cegcc*): Set LIB_PATH to
25 ${tooldir}/lib/w32api.
27 2007-12-25 Pedro Alves <pedro_alves@portugalmail.pt>
29 * configure.tgt: Add arm*-*-cegcc* target.
31 2007-12-17 Pedro Alves <pedro_alves@portugalmail.pt>
33 * configure.tgt: Add arm-*-mingw32ce* target.
35 2009-06-10 Philip Blundell <philb@gnu.org>
37 * emultempl/armelf.em (gld${EMULATION_NAME}_finish): Avoid crash
38 if section has no ELF data.
40 2009-06-06 H.J. Lu <hongjiu.lu@intel.com>
42 * scripttempl/elf.sc: Add .rel.ifunc and .rela.ifunc.
44 2009-06-05 H.J. Lu <hongjiu.lu@intel.com>
46 * scripttempl/elf.sc: Remove .rel.ifunc.dyn and .rela.ifunc.dyn.
48 2009-06-04 Alan Modra <amodra@bigpond.net.au>
50 * dep-in.sed: Don't use \n in replacement part of s command.
51 * Makefile.am (DEP1): LC_ALL for uniq.
52 * Makefile.in: Regenerate.
54 2009-06-01 H.J. Lu <hongjiu.lu@intel.com>
56 * scripttempl/elf.sc (PLT): Add "*(.iplt)".
57 (GOT): Add "*(.igot.plt)a" and "*(.igot)".
58 (GOTPLT): Add "*(.igot)".
59 (__rel_iplt_start): New.
60 (__rel_iplt_end): Likewise.
61 (__rela_iplt_start): Likewise.
62 (__rela_iplt_end): Likewise.
64 2009-05-27 Dave Korn <dave.korn.cygwin@gmail.com>
66 * deffilep.y (%union): Add new string-type semantic value 'digits'.
67 (%token): Remove NUMBER as token, add DIGITS.
68 (%type): Add NUMBER as type. Add new id types anylang_id, opt_id.
69 (ALIGNCOMM): Parse an anylang_id instead of a plain ID.
70 (anylang_id): New production.
71 (opt_digits): Likewise.
74 (def_lex): Return strings of digits in raw string form as DIGITS
75 token, instead of converting to numeric integer type.
77 2009-05-26 Nathan Sidwell <nathan@codesourcery.com>
79 * ldmain.c (main): Don't reject --relax -r.
80 * ld.texinfo (PowerPC ELF32): Document behaviour of relaxing
83 2009-05-26 Nick Clifton <nickc@redhat.com>
85 * po/id.po: Updated Indonesian translation.
86 * po/ld.pot: Updated template file.
88 2009-05-26 Alan Modra <amodra@bigpond.net.au>
90 * dep-in.sed: Output one filename per line with all lines having
91 continuation backslash. Prefix first line with "A", following
93 * Makefile.am (DEP): Don't use dep.sed here.
94 (DEP1): Run $MKDEP on single files, use dep.sed here on dependencies,
96 * Makefile.in: Regenerate.
98 2009-05-26 Alan Modra <amodra@bigpond.net.au>
100 * ldlang.c (lang_check_section_addresses): Ignore non-alloc sections.
102 2009-05-22 Julian Brown <julian@codesourcery.com>
104 * emultempl/armelf.em (fix_cortex_a8): New.
105 (arm_elf_before_allocation): Call bfd_elf32_arm_set_cortex_a8_fix.
106 (arm_elf_create_output_section_statements): Add fix_cortex_a8 to
107 bfd_elf32_arm_set_target_relocs.
108 (OPTION_FIX_CORTEX_A8, OPTION_NO_FIX_CORTEX_A8): New.
109 (PARSE_AND_LIST_LONGOPTS): Add [no-]fix-cortex-a8 options.
110 (PARSE_AND_LIST_OPTIONS): Add [no-]fix-cortex-a8 options.
111 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_[NO_]FIX_CORTEX_A8.
112 * ld.texinfo (--[no-]fix-cortex-a8): Briefly document new options.
114 2009-05-22 Nathan Sidwell <nathan@codesourcery.com>
116 * ldlang.c (lang_check_section_addresses): Ignore non-loadable
117 sections when checking for overlap. Clarify error message
118 concerns load address.
120 2009-05-22 Alan Modra <amodra@bigpond.net.au>
122 * Makefile.am: Run "make dep-am".
123 * Makefile.in: Regenerate.
125 2009-05-19 Dave Korn <dave.korn.cygwin@gmail.com>
127 * NEWS: Mention new feature.
128 * deffile.h (def_file_aligncomm): Add new struct definition.
129 (def_file): Add new def_file_aligncomm member.
130 * deffilep.y (%token): Add new ALIGNCOMM token.
131 (command): Add production rule for ALIGNCOMM.
132 (def_file_free): Free any chained def_file_aligncomm structs.
133 (diropts[]): Add entry for '-aligncomm' .drectve command.
134 (def_aligncomm): New grammar function.
135 * ld.texinfo: Document new feature.
136 * pe-dll.c (process_def_file): Rename from this ...
137 (process_def_file_and_drectve): ... to this, updating all callers,
138 and process any aligncomms chained to the def file after scanning
139 all .drectve sections.
140 (generate_edata): Updated to match.
141 (pe_dll_build_sections): Likewise.
143 2009-05-17 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
145 * pe-dll.c (process_def_file): Do not create empty export table.
147 2009-05-15 Alan Modra <amodra@bigpond.net.au>
149 * ldlang.c (lang_output_section_statement_lookup): Add function
150 comment. Make "name" non-const. Ensure duplicate entries use
151 the same string, allowing simple comparison in hash bucket loop.
152 Tweak constraint check.
153 (next_matching_output_section_statement): New function.
154 * ldlang.h (lang_output_section_statement_lookup): Update.
155 (next_matching_output_section_statement): Declare.
156 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
157 combine orphan sections when input sections flags differ in
159 * emultempl/pe.em: Formatting throughout.
160 (gld${EMULATION_NAME}_place_orphan): As for elf32.em.
161 * emultempl/pep.em: Formatting throughout.
162 (gld${EMULATION_NAME}_place_orphan): As for elf32.em.
164 2009-05-14 Ulrich Weigand <uweigand@de.ibm.com>
166 * emultempl/spuelf.em (PARSE_AND_LIST_ARGS_CASES): Always use
167 compact stubs with software i-cache.
169 2009-05-14 Alan Modra <amodra@bigpond.net.au>
171 * emultempl/spuelf.em (spu_before_allocation): Call
172 spu_elf_place_overlay_data.
174 2009-05-14 Alan Modra <amodra@bigpond.net.au>
176 * ldlang.c (lang_insert_orphan): Add __start_<section> symbol
177 assignment inside output section statement. Ensure only one
178 set of symbols per output section.
179 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Add non-
180 dollar sections before dollar sections. Correct add_child
182 * emultempl/pep.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
184 2009-05-05 Paul Brook <paul@codesourcery.com>
186 * emultempl/armelf.em (compare_output_sec_vma): New function.
187 (gld${EMULATION_NAME}_finish): Add exidx munging code.
189 2009-05-05 Anatoly Sokolov <aesok@post.ru>
191 * scripttempl/avr.sc (MEMORY): Use DATA_ORIGIN.
192 * emulparams/avr1.sh (DATA_ORIGIN): Add.
193 * emulparams/avr2.sh (DATA_ORIGIN): Add.
194 * emulparams/avr25.sh (DATA_ORIGIN): Add.
195 * emulparams/avr3.sh (DATA_ORIGIN): Add.
196 * emulparams/avr31.sh (DATA_ORIGIN): Add.
197 * emulparams/avr35.sh (DATA_ORIGIN): Add.
198 * emulparams/avr4.sh (DATA_ORIGIN): Add.
199 * emulparams/avr5.sh (DATA_ORIGIN): Add.
200 * emulparams/avr51.sh (DATA_ORIGIN): Add.
201 (DATA_LENGTH): Update.
202 * emulparams/avr6.sh (DATA_ORIGIN): Add.
203 (DATA_LENGTH): Update.
205 2009-05-04 Dave Korn <dave.korn.cygwin@gmail.com>
207 * NEWS: Mention new feature.
208 * ld.texinfo (--version-script): Document extent of PE support.
209 (WIN32): Mention --version-script. Extend auto-export description.
210 * pe-dll.c (process_def_file): Use version script info to filter
211 symbols from auto-export.
212 * testsuite/ld-pe/vers-script-1.d: New file.
213 * testsuite/ld-pe/vers-script-2.d: New file.
214 * testsuite/ld-pe/vers-script-3.d: New file.
215 * testsuite/ld-pe/vers-script-4.d: New file.
216 * testsuite/ld-pe/vers-script-1.ver: New file.
217 * testsuite/ld-pe/vers-script-2.ver: New file.
218 * testsuite/ld-pe/vers-script-3.ver: New file.
219 * testsuite/ld-pe/vers-script-4.ver: New file.
220 * testsuite/ld-pe/vers-script-dll.c: New file.
221 * testsuite/ld-pe/vers-script.exp: New test script.
223 2009-05-01 Nathan Sidwell <nathan@codesourcery.com>
225 * emulparams/vxworks.sh (TEXT_START_ADDR): Override.
227 2009-04-30 Nick Clifton <nickc@redhat.com>
229 * NEWS: Mention support for IFUNC symbols.
231 2009-04-29 Anthony Green <green@moxielogic.com>
233 * emulparams/elf32moxie.sh (STACK_ADDR): Move default stack
234 position out to accommodate larger programs.
236 2009-04-29 Chris Demetriou <cgd@google.com>
238 * lexsup.c (option_values): Add OPTION_NO_EXPORT_DYNAMIC.
239 (ld_options): Likewise.
240 (parse_args): Likewise.
241 * ld.texinfo: Document --no-export-dynamic.
242 * NEWS: Mention --no-export-dynamic.
244 2009-04-29 Alan Modra <amodra@bigpond.net.au>
246 * deffilep.y (STACKSIZE_K): Rename from STACKSIZE.
248 2009-04-25 Alan Modra <amodra@bigpond.net.au>
251 * genscripts.sh: Don't pass $EMULATION_NAME as $CUSTOMIZER_SCRIPT
254 2009-04-21 Daniel Jacobowitz <dan@codesourcery.com>
256 * emultempl/armelf.em (bfd_for_interwork, arm_elf_after_open)
257 (arm_elf_set_bfd_for_interworking): Delete.
258 (arm_elf_before_allocation): Do not set the interworking BFD.
259 Move allocation inside not-dynamic block.
260 (arm_elf_create_output_section_statements): Create glue sections
261 and set the interworking BFD here.
262 (LDEMUL_AFTER_OPEN): Delete.
264 2009-04-16 Richard Sandiford <r.sandiford@uk.ibm.com>
266 * ldlang.c (lang_one_common): Use bfd_define_common_symbol.
268 2009-04-15 Anthony Green <green@moxielogic.com>
270 * configure.tgt: Add moxie support.
271 * Makefile.am: Add moxie files.
272 * Makefile.in: Rebuilt.
273 * emulparams/elf32moxie.sh: New file.
274 * scripttempl/moxie.sc: New file.
276 2009-04-15 Kazu Hirata <kazu@codesourcery.com>
278 * ldlang.c: Do not include limits.h.
280 2009-04-14 Alan Modra <amodra@bigpond.net.au>
283 * ldfile.c (find_scripts_dir): Use make_relative_prefix to find
284 ldscripts in build tree. Don't repeat search for ../lib/ldscripts.
286 2009-04-13 H.J. Lu <hongjiu.lu@intel.com>
288 * ldfile.c (ldfile_find_command_file): Revert the last change.
290 2009-04-11 H.J. Lu <hongjiu.lu@intel.com>
293 * ldfile.c (ldfile_find_command_file): First try raw name.
295 2009-04-09 Nick Clifton <nickc@redhat.com>
298 * ld.texinfo (Output Section Constraint): New node. Documents the
299 ONLY_IF_RO and ONLY_IF_RW constraints.
300 (Symbolic Constants): New node. Documents the CONSTANT operator.
302 2009-04-09 Thilo Fischer <thilo.fischer@uni-muenster.de>
304 * emultempl/spuelf.em (embedded_spu_file): Use pex_one in place
307 2009-04-08 H.J. Lu <hongjiu.lu@intel.com>
309 * lexsup.c (option_values): Add OPTION_WARN_ALTERNATE_EM.
310 (ld_options): Likewise.
311 (parse_args): Likewise.
313 * ld.texinfo: Document --warn-alternate-em.
315 * NEWS: Mention --warn-alternate-em.
317 2009-04-07 DJ Delorie <dj@redhat.com>
319 * emulparams/elf32mep.sh: Change default endian to little.
321 2009-04-07 Nick Clifton <nickc@redhat.com>
323 * ld.texinfo (Output Section Address): Note that specifying an
324 address for an output section will only change the location
325 counter if the output section is used.
327 2009-04-06 Kazu Hirata <kazu@codesourcery.com>
329 * ldfile.c (ldfile_find_command_file): Initialize result.
331 2009-04-06 Kazu Hirata <kazu@codesourcery.com>
333 * ld.texinfo (-L): Mention that -L options do not affect how ld
334 searches for a linker script unless -T option is specified.
335 * ldfile.c (ldfile_find_command_file): Append the path obtained
336 from the program name to the search path instead of
337 prepending. Add a new parameter "default_only". Restrict the
338 search to the default script location if the new parameter is
340 (ldfile_open_command_file_1): New.
341 (ldfile_open_command_file): Call ldfile_open_command_file_1.
342 (ldfile_open_default_command_file): New.
344 2009-04-03 Nathan Sidwell <nathan@codesourcery.com>
346 * ldlang.c (lang_leave_output_section_statement): Set lma_region
347 if it is not overridden and section is for the same vma region as
348 the previous section.
350 2009-04-02 Dave Korn <dave.korn.cygwin@gmail.com>
353 * ld.texinfo (--export-dynamic): Mention --export-all-symbols.
354 * emultempl/pe.em (gld_${EMULATION_NAME}_after_parse): Issue
355 warning if --export-dynamic was passed on command-line.
356 * emultempl/pep.em (gld_${EMULATION_NAME}_after_parse): Likewise.
358 2009-04-01 Richard Sandiford <r.sandiford@uk.ibm.com>
360 * emultempl/aix.em (gld${EMULATION_NAME}_open_dynamic_archive): New
362 (ld_${EMULATION_NAME}_emulation): Use it.
364 2009-03-20 H.J. Lu <hongjiu.lu@intel.com>
367 * ldlang.c (lang_end): Warn missing entry symbol for -pie.
369 2009-03-19 Alan Modra <amodra@bigpond.net.au>
371 * emultempl/spuelf.em (spu_before_allocation): Report errors from
372 spu_elf_find_overlays.
374 2009-03-18 H.J. Lu <hongjiu.lu@intel.com>
377 * lexsup.c (parse_args): Call ldlang_add_undef for -e.
379 2009-03-18 Alan Modra <amodra@bigpond.net.au>
381 * ld.h: Remove alloca handling.
383 2009-03-17 Alan Modra <amodra@bigpond.net.au>
385 * emultempl/spu_icache.S: Add new entry to dummy handler.
386 * emultempl/spu_icache.o_c: Regenerate.
387 * emultempl/spuelf.em (params): Init new field.
388 (no_overlays): New static var.
389 (spu_before_allocation): Use it.
390 (OPTION_SPU_COMPACT_STUBS): Define.
391 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add compact-stubs.
392 (PARSE_AND_LIST_ARGS_CASES): Handle compact-stubs. Adjust no-overlays
395 2009-03-17 Alan Modra <amodra@bigpond.net.au>
397 * configure.host (HOSTING_LIBS): Two dollars on shell variable
398 expansion to suit make.
400 2009-03-17 Alan Modra <amodra@bigpond.net.au>
402 * configure.in: Invoke ACX_PROG_CMP_IGNORE_INITIAL.
403 * Makefile.am (check-DEJAGNU): Set DO_COMPARE.
404 * aclocal.m4: Regenerate.
405 * configure: Regenerate.
406 * Makefile.in: Regenerate.
408 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
410 * emultempl/aix.em (auto_export_flags): New variable.
411 (explicit_auto_export_flags): Likewise.
412 (OPTION_EXPALL, OPTION_EXPFULL): New enum values.
413 (OPTION_NOEXPALL, OPTION_NOEXPFULL): Likewise.
414 (gld${EMULATION_NAME}_add_options): Add -bexpall, -bexpfull,
415 -bnoexpall and -bnoexpfull.
416 (gld${EMULATION_NAME}_handle_option): Handle them.
417 (gld${EMULATION_NAME}_before_allocation): Update the call to
418 bfd_size_dynamic_sections.
420 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
422 * emultempl/aix.em (gld${EMULATION_NAME}_handle_option): Make
423 -berok and -bernotok control link_info.unresolved_syms_in_objects
424 and link_info.unresolved_syms_in_shared_libs instead of
425 force_make_executable.
427 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
429 * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Set
430 config.dynamic_link to TRUE.
432 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
434 * emultempl/aix.em (gld${EMULATION_NAME}_before_allocation): Mark
435 .text, .data and .bss output sections as SEC_KEEP.
437 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
439 * configure.tgt: Extend AIX 5 behavior to AIX 6 and above.
441 2009-03-14 Dave Korn <dave.korn.cygwin@gmail.com>
442 Danny Smith <dannysmith@users.sourceforge.net>
444 * emultmpl/pe.em (pe_dll_characteristics): New variable.
445 (OPTION_DYNAMIC_BASE, OPTION_FORCE_INTEGRITY, OPTION_NX_COMPAT,
446 OPTION_NO_ISOLATION. OPTION_NO_SEH, OPTION_NO_BIND,
447 OPTION_WDM_DRIVER, OPTION_TERMINAL_SERVER_AWARE):
448 New macros for options to set DllCharacteristics flag bits.
449 (gld${EMULATION_NAME}_add_options): Add dynamicbase, forceinteg,
450 nxcompat, no-isolation, no-seh, no-bind, wdmdriver, tsaware options.
451 (init): Add DllCharacteristics field.
452 (gld_${EMULATION_NAME}_list_options): List new options.
453 (gld${EMULATION_NAME}_handle_option): Handle new options.
454 * emultmpl/pep.em (pe_dll_characteristics): New variable.
455 (OPTION_DYNAMIC_BASE, OPTION_FORCE_INTEGRITY, OPTION_NX_COMPAT,
456 OPTION_NO_ISOLATION. OPTION_NO_SEH, OPTION_NO_BIND,
457 OPTION_WDM_DRIVER, OPTION_TERMINAL_SERVER_AWARE):
458 New macros for options to set DllCharacteristics flags.
459 (gld${EMULATION_NAME}_add_options): Add dynamicbase, forceinteg,
460 nxcompat,no-isolation, no-seh, no-bind, wdmdriver, tsaware options.
461 (init): Add DllCharacteristics field.
462 (gld_${EMULATION_NAME}_list_options): List new options.
463 (gld${EMULATION_NAME}_handle_option): Handle new options.
464 * ldtexinfo : Document dynamicbase, forceinteg, nxcompat,
465 no-isolation, no-seh, no-bind, wdmdriver, tsaware options.
467 2009-03-06 Nick Clifton <nickc@redhat.com>
469 * po/es.po: Updated Spanish translation.
471 2009-03-03 Dave Korn <dave.korn.cygwin@gmail.com>
473 * emultempl/pe.em (debug_section_p): New bfd_map_over_sections hook.
474 (gld_${EMULATION_NAME}_after_open): Use it to iterate all sections
475 of all input BFDs, looking for debug info. Enable long section names
477 * emultempl/pe.em (debug_section_p): Likewise.
478 (gld_${EMULATION_NAME}_after_open): Likewise.
479 * NEWS: Retrospectively adjust news announcement.
480 * ld.texinfo: Update documentation to mention new behaviour.
482 2009-03-03 Alan Modra <amodra@bigpond.net.au>
484 * Makefile.am: Run "make dep-am".
485 * Makefile.in: Regenerate.
487 2009-03-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
489 * ldgram.y: Add support for REGION_ALIAS operator.
490 * ldlang.c: Likewise.
491 * ldlang.h: Likewise.
493 * NEWS: Mention the new feature.
494 * ld.texinfo: Document the new feature.
496 2009-03-02 Qinwei <qinwei@sunnorth.com.cn>
498 * Makefile.am: Replace score elf emulation with score3 and score7
500 * Makefile.in: Regenerate,
501 * NEWS: Mention support for Score7 architecture.
502 * configure.tgt: Add score7 emulation to score-elf target.
503 * emulparams/scoreelf.sh: Add score7 support.
504 * emultempl/scoreelf.em: Likewise.
506 2009-03-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
508 * configure.tgt: Only use elf64hppa target emulation for hpux.
509 * emulparams/elf64hppa.sh: Don't include hppa64linux.sh.
510 (SCRIPT_NAME): Use new script elf64hppa.
511 (SCRIPT_NAME, ELFSIZE, NO_REL_RELOCS, ARCH, MACHINE, ENTRY,
512 TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT, OTHER_READONLY_SECTIONS,
513 OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS, OTHER_GOT_RELOC_SECTIONS,
514 DATA_START_SYMBOLS, OTHER_SYMBOLS, DATA_PLT, PLT_BEFORE_GOT,
515 TEXT_DYNAMIC): Define.
516 * emulparams/hppa64linux.sh: Adjust comments.
517 * scripttempl/elf64hppa.sc: New file.
519 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
521 * configure: Regenerate.
523 2009-02-27 Dave Korn <dave.korn.cygwin@gmail.com>
525 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse): Set
526 default state of auto-import flag based on $target.
528 2009-02-24 Joseph Myers <joseph@codesourcery.com>
530 * ld.texinfo (ARM): Document changed meaning of --stub-group-size.
531 * emultempl/armelf.em (hook_in_stub): Insert after the input section.
532 (elf32_arm_add_stub_section): Update comment.
533 (PARSE_AND_LIST_OPTIONS): Update help for --stub-group-size.
535 2009-02-24 Sandra Loosemore <sandra@codesourcery.com>
537 * ld.texinfo (Options): Correct typos in example. Recommend
538 using joined forms of syntax for passing options with arguments
540 (-a): Use consistent syntax for documenting option arguments.
541 Clean up indexing and markup.
542 (-A/--architecture): Likewise.
543 (-f/--auxiliary): Likewise.
544 (-F/--filter): Likewise.
546 (-G/--gpsize): Likewise.
547 (-h/-soname):Likewise.
549 (-l/--library): Likewise.
550 (-L/--library-path): Likewise.
552 (--defsym): Likewise.
553 (-I/--dynamic-linker): Likewise.
555 (--oformat): Likewise.
556 (--retain-symbols-file): Likewise.
558 (-rpath-link): Likewise.
559 (--sort-common): Likewise.
560 (--sort-section): Likewise.
561 (--split-by-file): Likewise.
562 (--split-by-reloc): Likewise.
563 (--sysroot): Likewise.
564 (--section-start): Likewise.
565 (-Tbss, -Tdata, -Ttext): Likewise.
566 (-Ttext-segment): Likewise.
567 (--version-script): Likewise.
570 2009-02-18 Dave Korn <dave.korn.cygwin@gmail.com>
572 * ld.texinfo: Update to mention long section name options.
573 * NEWS: Mention new behaviour and command-line options.
574 * pe-dll.c (pe_use_coff_long_section_names): New global variable.
575 (pe_output_file_set_long_section_names): New function.
576 (pe_dll_build_sections): Call it on output BFDs.
577 (pe_exe_build_sections): Likewise.
578 (pe_dll_fill_sections): Likewise.
579 (pe_exe_fill_sections): Likewise.
580 * pe-dll.h (pe_use_coff_long_section_names): Declare extern.
581 (pe_output_file_set_long_section_names): Add prototype.
582 * pep-dll.c (pe_use_coff_long_section_names): Define pep_ alias.
583 (pe_output_file_set_long_section_names): Likewise.
584 * pep-dll.h (pep_use_coff_long_section_names): Declare extern.
585 (pep_output_file_set_long_section_names): Add prototype.
586 * pe.em (OPTION_ENABLE_LONG_SECTION_NAMES): New getopt value macro.
587 (OPTION_DISABLE_LONG_SECTION_NAMES): Likewise.
588 (gld${EMULATION_NAME}_add_options): Add new options to xtra_long[].
589 (gld_${EMULATION_NAME}_list_options): Describe them.
590 (gld${EMULATION_NAME}_handle_option): Set or clear global
591 pe_use_coff_long_section_names flag when options recognised.
592 (gld_${EMULATION_NAME}_after_open): En/disable long section names
593 for main output bfd by calling pe_output_file_set_long_section_names.
594 * pep.em (enum options): Extend enum with new getopt option values.
595 (gld${EMULATION_NAME}_add_options): Add new options to xtra_long[].
596 (gld_${EMULATION_NAME}_list_options): Describe them.
597 (gld${EMULATION_NAME}_handle_option): Set or clear global
598 pe_use_coff_long_section_names flag when options recognised.
599 (gld_${EMULATION_NAME}_after_open): En/disable long section names
600 for main output bfd by calling pep_output_file_set_long_section_names.
602 2009-02-16 Dave Korn <dave.korn.cygwin@gmail.com>
604 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Don't emit
605 inadvertent .reloc sections caused by refactoring accident.
607 2009-02-16 Alan Modra <amodra@bigpond.net.au>
609 * ldlang.c (process_insert_statements): ASSERT that output section
610 statements are in order.
612 2009-02-16 Alan Modra <amodra@bigpond.net.au>
614 * ldlang.c (push_stat_ptr, pop_stat_ptr): New functions.
615 (stat_save, stat_save_ptr): New variables.
616 (lang_insert_orphan): Use push_stat_ptr and pop_stat_ptr.
617 (load_symbols): Likewise. Delete dead "bad_load" code.
618 (open_input_bfds): Warn on script containing output sections.
619 (lang_enter_output_section_statement): Use push_stat_ptr.
620 (lang_enter_group): Likewise.
621 (lang_leave_output_section_statement): Use pop_stat_ptr.
622 (lang_leave_group): Likewise.
623 * ldlang.h (push_stat_ptr, pop_stat_ptr): Declare.
624 * ldctor.c (ldctor_build_sets): Use push_stat_ptr and pop_stat_ptr.
625 * emultempl/beos.em (gld_${EMULATION_NAME}_set_symbols): Likewise.
626 * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Likewise.
627 * emultempl/pep.em (gld_${EMULATION_NAME}_set_symbols): Likewise.
628 * emultempl/spuelf.em (spu_place_special_section): Likewise.
629 * emultempl/xtensaelf.em (ld_xtensa_insert_page_offsets): Likewise.
631 2009-02-09 Nathan Sidwell <nathan@codesourcery.com>
633 Missing piece of 2009-01-26 commit
634 * ldlang.c (lang_process): Don't consider relocatable flag when
635 checking for overlap.
637 2009-02-05 Joseph Myers <joseph@codesourcery.com>
639 * emulparams/m68kelf.sh: Add newline at end of file.
641 2009-02-04 Nick Clifton <nickc@redhat.com>
644 * ld.texinfo (--allow-shlib-undefined): Correct description of
645 default settings and tidy up the rest of the entry.
647 2009-02-04 Alan Modra <amodra@bigpond.net.au>
649 * emultempl/spuelf.em (spu_after_open): Don't combine .text.ia.*
650 during relocatable link.
652 2009-02-03 Nick Clifton <nickc@redhat.com>
655 * ld.texinfo (Constants): Document the base-encoding suffixes
656 supported in linker scripts.
658 2009-02-03 Alan Modra <amodra@bigpond.net.au>
660 * NEWS: Mention --as-needed change.
662 2009-02-03 Carlos O'Donell <carlos@codesourcery.com>
664 * configure.in: AC_SUBST pdfdir.
665 * Makefile.am: Add install-pdf, install-pdf-am,
666 and install-pdf-recursive targets. Define pdf__strip_dir.
667 * po/Make-in: Add install-pdf target.
668 * configure: Regenerate.
669 * Makefile.in: Regenerate.
671 2009-01-31 Alan Modra <amodra@bigpond.net.au>
673 * ld.texinfo (--as-needed): Update.
675 2009-01-29 Andrew Jenner <andrew@codesourcery.com>
677 * emultempl/armelf.em: Correct formatting of help text for
678 --no-enum-size-warning option.
680 2009-01-26 Nathan Sidwell <nathan@codesourcery.com>
682 * lexsup.c (parse_args): Set check_section_addresses to 1 or 0.
683 * ld.h (args_type): Make check_section_addresses a char.
684 * ldmain.c (main): Default check_section_addresses to -1. Check it
685 for relocatable links.
686 * ld.texinfo (--check-sections): Update documentation.
688 2009-01-26 Kai Tietz <kai.tietz@onevision.com>
690 * pe-dll.c (tmp_seq2): New static variable.
691 (make_singleton_name_imp): New.
692 (make_import_fixup_entry): Use for v2 the _imp_<name> symbol and
693 avoid duplicate import table generation for same symbol.
694 (pe_create_runtime_relocator_reference): Make reference for
697 2009-01-21 Alan Modra <amodra@bigpond.net.au>
699 * emultempl/spuelf.em (params): Init new field.
700 (OPTION_SPU_NON_IA_TEXT): Define.
701 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --non-ia-text.
702 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_SPU_NON_IA_TEXT.
704 2009-01-16 H.J. Lu <hongjiu.lu@intel.com>
706 * lexsup.c (option_values): Add OPTION_TTEXT_SEGMENT.
707 (ld_options): Add -Ttext-segment.
708 (parse_args): Handle OPTION_TTEXT_SEGMENT.
710 * ld.texinfo: Document -Ttext-segment.
712 * NEWS: Mention -Ttext-segment.
714 * scripttempl/elf.sc (TEXT_START_ADDR): Use SEGMENT_START.
715 (SHLIB_TEXT_START_ADDR): Likewise.
717 2009-01-13 Alan Modra <amodra@bigpond.net.au>
719 * emultempl/spu_icache.o_c: Regenerate.
721 2009-01-12 Alan Modra <amodra@bigpond.net.au>
723 * emultempl/spuelf.em (params): Init new fields.
724 (num_lines_set, line_size_set, icache_mgr, icache_mgr_stream): New vars.
725 (spu_place_special_section): Adjust placement for soft-icache. Pad
726 soft-icache section to a fixed size. Clear addr_tree.
727 (spu_elf_load_ovl_mgr): Support soft-icache. Map overlay manager
728 sections a little more intelligently.
729 (gld${EMULATION_NAME}_finish): Don't call spu_elf_build_stubs.
730 (OPTION_SPU_NUM_LINES): Rename from OPTION_SPU_NUM_REGIONS.
731 (OPTION_SPU_SOFT_ICACHE, OPTION_SPU_LINE_SIZE): Define.
732 (OPTION_SPU_LRLIVE): Define.
733 (PARSE_AND_LIST_LONGOPTS): Add new soft-icache options.
734 (PARSE_AND_LIST_OPTIONS): Likewise.
735 (PARSE_AND_LIST_ARGS_CASES): Handle them.
736 * emultempl/spu_icache.S: Dummy file.
737 * emultempl/spu_icache.o_c: Regenerate.
738 * Makefile.am (eelf32_spu.c): Depend on spu_icache.o_c.
739 (spu_icache.o_c): Add rule to build.
740 (CLEANFILES): Zap temp files.
741 (EXTRA_DIST): Add spu_icache.o_c.
742 * Makefile.in: Regenerate.
744 2009-01-08 Kai Tietz <kai.tietz@onevision.com>
746 * pe.em (OPTION_USE_NUL_PREFIXED_IMPORT_TABLES): New.
747 (gld..._add_options): Add new option
748 --use-nul-prefixed-import-tables.
749 (gld..._handle_option): Likewise.
750 * pep.em: Same as for pe.em.
751 * ld.texinfo: Add new option documentation for
752 --use-nul-prefixed-import-tables.
753 * pe-dll.c (pe_use_nul_prefixed_import_tables): New.
754 (make_head): Make prefix leading zero prefix element for
755 idata$4 and idata$5 dependent to new flag.
756 (make_import_fixup_entry): Remove idata4/5 prefix.
757 * pe-dll.h (pe_use_nul_prefixed_import_tables): New.
758 * pep-dll.c (pe_use_nul_prefixed_import_tables): New.
759 * pep-dll.h (pep_use_nul_prefixed_import_tables): New.
760 * NEWS: Add new option.
762 2009-01-05 Kai Tietz <kai.tietz@onevision.com>
764 * emultempl/pe.em: Prefix dollar characters to be outputed in
766 * emultempl/pep.em: Likewise.
768 2009-01-03 Dave Korn <dave.korn.cygwin@gmail.com>
770 * NEWS: Mention new feature --exclude-modules-for-implib.
771 * ld.texinfo: Document new --exclude-modules-for-implib option.
772 * pe-dll.c (exclude_list_struct): Change type member from int to
773 new enumeration exclude_type.
774 (pe_dll_add_excludes): Accept exclude_type instead of int param.
775 (auto_export): Replace magic constants by exclude_type values and
776 handle new choice EXCLUDEFORIMPLIB.
777 (pe_dll_generate_implib): Accept a pointer to the link_info and
778 iterate all input BFDs looking for EXCLUDEFORIMPLIB modules; re-open
779 fresh BFDs for any found and link into import lib archive chain.
780 * pe-dll.h (exclude_type): Add new enumerated type to replace magic
781 constants previously used for exclude_list_struct type member.
782 (pe_dll_add_excludes, pe_dll_generate_implib): Update prototypes.
783 * pep-dll.h (exclude_type, pe_dll_add_excludes,
784 pe_dll_generate_implib): Likewise to all the above.
785 * emultempl/pe.em (OPTION_EXCLUDE_MODULES_FOR_IMPLIB): Define new
786 getopts long option code for new --exclude-modules-for-implib option.
787 (gld${EMULATION_NAME}_add_options): Add new entry to xtra_long[].
788 (gld_${EMULATION_NAME}_list_options): List usage for it.
789 (gld${EMULATION_NAME}_handle_option): Use exclude_type enumerated
790 values when calling pe_dll_add_excludes, and handle EXCLUDEFORIMPLIB.
791 (gld_${EMULATION_NAME}_finish): Pass pointer to link_info when
792 calling pe_dll_generate_implib.
793 * emultempl/pep.em (options): Define new enumerated value for getopts
794 long option code for new --exclude-modules-for-implib option.
795 (gld${EMULATION_NAME}_add_options, gld_${EMULATION_NAME}_list_options,
796 gld${EMULATION_NAME}_handle_option, gld_${EMULATION_NAME}_finish):
797 Again, likewise to all the above.
799 2009-01-03 Dave Korn <dave.korn.cygwin@gmail.com>
801 * pe-dll.c (autofilter_liblist): Add entry for shared libgcc.
802 (libnamencmp): New function.
803 (auto_export): Use it in place of strncmp when filtering libraries.
805 For older changes see ChangeLog-2008
811 version-control: never