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