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