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