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