1 2009-07-30 Alan Modra <amodra@bigpond.net.au>
3 * emulparams/elf32ppc.sh (PLT): Don't include ".iplt".
4 * emulparams/elf_i386.sh (IREL_IN_PLT): Define.
5 * emulparams/elf_x86_64.sh (IREL_IN_PLT): Define.
6 * scripttempl/elf.sc: Create separate .iplt and .rela.iplt sections
9 2009-07-29 Hans-Peter Nilsson <hp@bitrange.com>
11 * scripttempl/mmo.sc: For relocateable links, set $OUTPUT_FORMAT to
12 the new $RELOCATEABLE_OUTPUT_FORMAT, if set.
13 (OUTPUT_FORMAT): Use the variable $OUTPUT_FORMAT.
14 (ENTRY): Don't emit for relocateable links.
15 (/DISCARD/): Don't discard .gnu.warning.* for relocateable links.
16 * emulparams/mmo.sh (RELOCATEABLE_OUTPUT_FORMAT): Set, to
18 * emulparams/elf64mmix.sh (OTHER_TEXT_SECTIONS): Empty, don't
19 provide "Main" or set "_start.", for relocateable links.
21 2009-07-27 Nick Clifton <nickc@redhat.com>
23 * (po/fi.po): Updated Finnish translation.
25 2009-07-25 H.J. Lu <hongjiu.lu@intel.com>
27 * configure.tgt (targ64_extra_emuls): Add elf_l1om if elf_x86_64
28 is supported. Add elf_l1om_fbsd if elf_x86_64_fbsd is supported.
29 (targ_extra_emuls): Likewise.
31 * Makefile.am (ALL_64_EMULATIONS): Add eelf_l1om.o and
34 (eelf_l1om_fbsd.c): Likewise.
35 * Makefile.in: Regenerated.
37 * emulparams/elf_l1om.sh: New.
38 * emulparams/elf_l1om_fbsd.sh: Likewise.
40 2009-07-23 Ulrich Drepper <drepper@redhat.com>
42 * NEWS: Mention the linker's support for symbols with a binding of
45 2009-07-22 H.J. Lu <hongjiu.lu@intel.com>
48 * ldlang.c (insert_os_after): Tie assignments to non-alloc
49 output sections if there is no-input section.
51 2009-07-11 Alan Modra <amodra@bigpond.net.au>
53 * ldlang.c (insert_os_after): Don't tie assignments to non-alloc
56 2009-07-10 Alan Modra <amodra@bigpond.net.au>
58 * emultempl/ppc32elf.em (ppc_before_allocation): Turn on
59 linker relaxation if it might be necessary.
61 2009-07-10 Alan Modra <amodra@bigpond.net.au>
63 * emulparams/elf32ppc.sh (GOTPLT, PLT): Handle .iplt.
65 2009-07-06 Matthias Klose <doko@ubuntu.com>
67 * ld.texinfo: Fix typo.
69 2009-07-03 Tristan Gingold <gingold@adacore.com>
71 * scripttempl/pep.sc: Put .eh_frame in its own section.
72 * scripttempl/pe.sc: Ditto.
74 2009-06-26 Kai Tietz <kai.tietz@onevision.com>
76 * scripttempl/pe.sc (.debug_pubtypes): Added section rule.
77 * scripttempl/pep.sc: Likewise.
79 2009-06-25 Tristan Gingold <gingold@adacore.com>
81 * ldlang.c (print_input_section): Add is_discarded parameter. Adjust
83 (lang_map): Print the size of discarded sections.
84 (print_statement): Adjust call to print_input_section.
86 2009-06-18 Dave Korn <dave.korn.cygwin@gmail.com>
88 Merge cegcc and mingw32ce target name changes from CeGCC project:
90 2008-09-24 Pedro Alves <pedroalves@users.sourceforge.net>
92 * configure.tgt (arm*-*-cegcc*): Set LIB_PATH to
93 ${tooldir}/lib/w32api.
95 2007-12-25 Pedro Alves <pedro_alves@portugalmail.pt>
97 * configure.tgt: Add arm*-*-cegcc* target.
99 2007-12-17 Pedro Alves <pedro_alves@portugalmail.pt>
101 * configure.tgt: Add arm-*-mingw32ce* target.
103 2009-06-10 Philip Blundell <philb@gnu.org>
105 * emultempl/armelf.em (gld${EMULATION_NAME}_finish): Avoid crash
106 if section has no ELF data.
108 2009-06-06 H.J. Lu <hongjiu.lu@intel.com>
110 * scripttempl/elf.sc: Add .rel.ifunc and .rela.ifunc.
112 2009-06-05 H.J. Lu <hongjiu.lu@intel.com>
114 * scripttempl/elf.sc: Remove .rel.ifunc.dyn and .rela.ifunc.dyn.
116 2009-06-04 Alan Modra <amodra@bigpond.net.au>
118 * dep-in.sed: Don't use \n in replacement part of s command.
119 * Makefile.am (DEP1): LC_ALL for uniq.
120 * Makefile.in: Regenerate.
122 2009-06-01 H.J. Lu <hongjiu.lu@intel.com>
124 * scripttempl/elf.sc (PLT): Add "*(.iplt)".
125 (GOT): Add "*(.igot.plt)a" and "*(.igot)".
126 (GOTPLT): Add "*(.igot)".
127 (__rel_iplt_start): New.
128 (__rel_iplt_end): Likewise.
129 (__rela_iplt_start): Likewise.
130 (__rela_iplt_end): Likewise.
132 2009-05-27 Dave Korn <dave.korn.cygwin@gmail.com>
134 * deffilep.y (%union): Add new string-type semantic value 'digits'.
135 (%token): Remove NUMBER as token, add DIGITS.
136 (%type): Add NUMBER as type. Add new id types anylang_id, opt_id.
137 (ALIGNCOMM): Parse an anylang_id instead of a plain ID.
138 (anylang_id): New production.
139 (opt_digits): Likewise.
142 (def_lex): Return strings of digits in raw string form as DIGITS
143 token, instead of converting to numeric integer type.
145 2009-05-26 Nathan Sidwell <nathan@codesourcery.com>
147 * ldmain.c (main): Don't reject --relax -r.
148 * ld.texinfo (PowerPC ELF32): Document behaviour of relaxing
151 2009-05-26 Nick Clifton <nickc@redhat.com>
153 * po/id.po: Updated Indonesian translation.
154 * po/ld.pot: Updated template file.
156 2009-05-26 Alan Modra <amodra@bigpond.net.au>
158 * dep-in.sed: Output one filename per line with all lines having
159 continuation backslash. Prefix first line with "A", following
161 * Makefile.am (DEP): Don't use dep.sed here.
162 (DEP1): Run $MKDEP on single files, use dep.sed here on dependencies,
164 * Makefile.in: Regenerate.
166 2009-05-26 Alan Modra <amodra@bigpond.net.au>
168 * ldlang.c (lang_check_section_addresses): Ignore non-alloc sections.
170 2009-05-22 Julian Brown <julian@codesourcery.com>
172 * emultempl/armelf.em (fix_cortex_a8): New.
173 (arm_elf_before_allocation): Call bfd_elf32_arm_set_cortex_a8_fix.
174 (arm_elf_create_output_section_statements): Add fix_cortex_a8 to
175 bfd_elf32_arm_set_target_relocs.
176 (OPTION_FIX_CORTEX_A8, OPTION_NO_FIX_CORTEX_A8): New.
177 (PARSE_AND_LIST_LONGOPTS): Add [no-]fix-cortex-a8 options.
178 (PARSE_AND_LIST_OPTIONS): Add [no-]fix-cortex-a8 options.
179 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_[NO_]FIX_CORTEX_A8.
180 * ld.texinfo (--[no-]fix-cortex-a8): Briefly document new options.
182 2009-05-22 Nathan Sidwell <nathan@codesourcery.com>
184 * ldlang.c (lang_check_section_addresses): Ignore non-loadable
185 sections when checking for overlap. Clarify error message
186 concerns load address.
188 2009-05-22 Alan Modra <amodra@bigpond.net.au>
190 * Makefile.am: Run "make dep-am".
191 * Makefile.in: Regenerate.
193 2009-05-19 Dave Korn <dave.korn.cygwin@gmail.com>
195 * NEWS: Mention new feature.
196 * deffile.h (def_file_aligncomm): Add new struct definition.
197 (def_file): Add new def_file_aligncomm member.
198 * deffilep.y (%token): Add new ALIGNCOMM token.
199 (command): Add production rule for ALIGNCOMM.
200 (def_file_free): Free any chained def_file_aligncomm structs.
201 (diropts[]): Add entry for '-aligncomm' .drectve command.
202 (def_aligncomm): New grammar function.
203 * ld.texinfo: Document new feature.
204 * pe-dll.c (process_def_file): Rename from this ...
205 (process_def_file_and_drectve): ... to this, updating all callers,
206 and process any aligncomms chained to the def file after scanning
207 all .drectve sections.
208 (generate_edata): Updated to match.
209 (pe_dll_build_sections): Likewise.
211 2009-05-17 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
213 * pe-dll.c (process_def_file): Do not create empty export table.
215 2009-05-15 Alan Modra <amodra@bigpond.net.au>
217 * ldlang.c (lang_output_section_statement_lookup): Add function
218 comment. Make "name" non-const. Ensure duplicate entries use
219 the same string, allowing simple comparison in hash bucket loop.
220 Tweak constraint check.
221 (next_matching_output_section_statement): New function.
222 * ldlang.h (lang_output_section_statement_lookup): Update.
223 (next_matching_output_section_statement): Declare.
224 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
225 combine orphan sections when input sections flags differ in
227 * emultempl/pe.em: Formatting throughout.
228 (gld${EMULATION_NAME}_place_orphan): As for elf32.em.
229 * emultempl/pep.em: Formatting throughout.
230 (gld${EMULATION_NAME}_place_orphan): As for elf32.em.
232 2009-05-14 Ulrich Weigand <uweigand@de.ibm.com>
234 * emultempl/spuelf.em (PARSE_AND_LIST_ARGS_CASES): Always use
235 compact stubs with software i-cache.
237 2009-05-14 Alan Modra <amodra@bigpond.net.au>
239 * emultempl/spuelf.em (spu_before_allocation): Call
240 spu_elf_place_overlay_data.
242 2009-05-14 Alan Modra <amodra@bigpond.net.au>
244 * ldlang.c (lang_insert_orphan): Add __start_<section> symbol
245 assignment inside output section statement. Ensure only one
246 set of symbols per output section.
247 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Add non-
248 dollar sections before dollar sections. Correct add_child
250 * emultempl/pep.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
252 2009-05-05 Paul Brook <paul@codesourcery.com>
254 * emultempl/armelf.em (compare_output_sec_vma): New function.
255 (gld${EMULATION_NAME}_finish): Add exidx munging code.
257 2009-05-05 Anatoly Sokolov <aesok@post.ru>
259 * scripttempl/avr.sc (MEMORY): Use DATA_ORIGIN.
260 * emulparams/avr1.sh (DATA_ORIGIN): Add.
261 * emulparams/avr2.sh (DATA_ORIGIN): Add.
262 * emulparams/avr25.sh (DATA_ORIGIN): Add.
263 * emulparams/avr3.sh (DATA_ORIGIN): Add.
264 * emulparams/avr31.sh (DATA_ORIGIN): Add.
265 * emulparams/avr35.sh (DATA_ORIGIN): Add.
266 * emulparams/avr4.sh (DATA_ORIGIN): Add.
267 * emulparams/avr5.sh (DATA_ORIGIN): Add.
268 * emulparams/avr51.sh (DATA_ORIGIN): Add.
269 (DATA_LENGTH): Update.
270 * emulparams/avr6.sh (DATA_ORIGIN): Add.
271 (DATA_LENGTH): Update.
273 2009-05-04 Dave Korn <dave.korn.cygwin@gmail.com>
275 * NEWS: Mention new feature.
276 * ld.texinfo (--version-script): Document extent of PE support.
277 (WIN32): Mention --version-script. Extend auto-export description.
278 * pe-dll.c (process_def_file): Use version script info to filter
279 symbols from auto-export.
280 * testsuite/ld-pe/vers-script-1.d: New file.
281 * testsuite/ld-pe/vers-script-2.d: New file.
282 * testsuite/ld-pe/vers-script-3.d: New file.
283 * testsuite/ld-pe/vers-script-4.d: New file.
284 * testsuite/ld-pe/vers-script-1.ver: New file.
285 * testsuite/ld-pe/vers-script-2.ver: New file.
286 * testsuite/ld-pe/vers-script-3.ver: New file.
287 * testsuite/ld-pe/vers-script-4.ver: New file.
288 * testsuite/ld-pe/vers-script-dll.c: New file.
289 * testsuite/ld-pe/vers-script.exp: New test script.
291 2009-05-01 Nathan Sidwell <nathan@codesourcery.com>
293 * emulparams/vxworks.sh (TEXT_START_ADDR): Override.
295 2009-04-30 Nick Clifton <nickc@redhat.com>
297 * NEWS: Mention support for IFUNC symbols.
299 2009-04-29 Anthony Green <green@moxielogic.com>
301 * emulparams/elf32moxie.sh (STACK_ADDR): Move default stack
302 position out to accommodate larger programs.
304 2009-04-29 Chris Demetriou <cgd@google.com>
306 * lexsup.c (option_values): Add OPTION_NO_EXPORT_DYNAMIC.
307 (ld_options): Likewise.
308 (parse_args): Likewise.
309 * ld.texinfo: Document --no-export-dynamic.
310 * NEWS: Mention --no-export-dynamic.
312 2009-04-29 Alan Modra <amodra@bigpond.net.au>
314 * deffilep.y (STACKSIZE_K): Rename from STACKSIZE.
316 2009-04-25 Alan Modra <amodra@bigpond.net.au>
319 * genscripts.sh: Don't pass $EMULATION_NAME as $CUSTOMIZER_SCRIPT
322 2009-04-21 Daniel Jacobowitz <dan@codesourcery.com>
324 * emultempl/armelf.em (bfd_for_interwork, arm_elf_after_open)
325 (arm_elf_set_bfd_for_interworking): Delete.
326 (arm_elf_before_allocation): Do not set the interworking BFD.
327 Move allocation inside not-dynamic block.
328 (arm_elf_create_output_section_statements): Create glue sections
329 and set the interworking BFD here.
330 (LDEMUL_AFTER_OPEN): Delete.
332 2009-04-16 Richard Sandiford <r.sandiford@uk.ibm.com>
334 * ldlang.c (lang_one_common): Use bfd_define_common_symbol.
336 2009-04-15 Anthony Green <green@moxielogic.com>
338 * configure.tgt: Add moxie support.
339 * Makefile.am: Add moxie files.
340 * Makefile.in: Rebuilt.
341 * emulparams/elf32moxie.sh: New file.
342 * scripttempl/moxie.sc: New file.
344 2009-04-15 Kazu Hirata <kazu@codesourcery.com>
346 * ldlang.c: Do not include limits.h.
348 2009-04-14 Alan Modra <amodra@bigpond.net.au>
351 * ldfile.c (find_scripts_dir): Use make_relative_prefix to find
352 ldscripts in build tree. Don't repeat search for ../lib/ldscripts.
354 2009-04-13 H.J. Lu <hongjiu.lu@intel.com>
356 * ldfile.c (ldfile_find_command_file): Revert the last change.
358 2009-04-11 H.J. Lu <hongjiu.lu@intel.com>
361 * ldfile.c (ldfile_find_command_file): First try raw name.
363 2009-04-09 Nick Clifton <nickc@redhat.com>
366 * ld.texinfo (Output Section Constraint): New node. Documents the
367 ONLY_IF_RO and ONLY_IF_RW constraints.
368 (Symbolic Constants): New node. Documents the CONSTANT operator.
370 2009-04-09 Thilo Fischer <thilo.fischer@uni-muenster.de>
372 * emultempl/spuelf.em (embedded_spu_file): Use pex_one in place
375 2009-04-08 H.J. Lu <hongjiu.lu@intel.com>
377 * lexsup.c (option_values): Add OPTION_WARN_ALTERNATE_EM.
378 (ld_options): Likewise.
379 (parse_args): Likewise.
381 * ld.texinfo: Document --warn-alternate-em.
383 * NEWS: Mention --warn-alternate-em.
385 2009-04-07 DJ Delorie <dj@redhat.com>
387 * emulparams/elf32mep.sh: Change default endian to little.
389 2009-04-07 Nick Clifton <nickc@redhat.com>
391 * ld.texinfo (Output Section Address): Note that specifying an
392 address for an output section will only change the location
393 counter if the output section is used.
395 2009-04-06 Kazu Hirata <kazu@codesourcery.com>
397 * ldfile.c (ldfile_find_command_file): Initialize result.
399 2009-04-06 Kazu Hirata <kazu@codesourcery.com>
401 * ld.texinfo (-L): Mention that -L options do not affect how ld
402 searches for a linker script unless -T option is specified.
403 * ldfile.c (ldfile_find_command_file): Append the path obtained
404 from the program name to the search path instead of
405 prepending. Add a new parameter "default_only". Restrict the
406 search to the default script location if the new parameter is
408 (ldfile_open_command_file_1): New.
409 (ldfile_open_command_file): Call ldfile_open_command_file_1.
410 (ldfile_open_default_command_file): New.
412 2009-04-03 Nathan Sidwell <nathan@codesourcery.com>
414 * ldlang.c (lang_leave_output_section_statement): Set lma_region
415 if it is not overridden and section is for the same vma region as
416 the previous section.
418 2009-04-02 Dave Korn <dave.korn.cygwin@gmail.com>
421 * ld.texinfo (--export-dynamic): Mention --export-all-symbols.
422 * emultempl/pe.em (gld_${EMULATION_NAME}_after_parse): Issue
423 warning if --export-dynamic was passed on command-line.
424 * emultempl/pep.em (gld_${EMULATION_NAME}_after_parse): Likewise.
426 2009-04-01 Richard Sandiford <r.sandiford@uk.ibm.com>
428 * emultempl/aix.em (gld${EMULATION_NAME}_open_dynamic_archive): New
430 (ld_${EMULATION_NAME}_emulation): Use it.
432 2009-03-20 H.J. Lu <hongjiu.lu@intel.com>
435 * ldlang.c (lang_end): Warn missing entry symbol for -pie.
437 2009-03-19 Alan Modra <amodra@bigpond.net.au>
439 * emultempl/spuelf.em (spu_before_allocation): Report errors from
440 spu_elf_find_overlays.
442 2009-03-18 H.J. Lu <hongjiu.lu@intel.com>
445 * lexsup.c (parse_args): Call ldlang_add_undef for -e.
447 2009-03-18 Alan Modra <amodra@bigpond.net.au>
449 * ld.h: Remove alloca handling.
451 2009-03-17 Alan Modra <amodra@bigpond.net.au>
453 * emultempl/spu_icache.S: Add new entry to dummy handler.
454 * emultempl/spu_icache.o_c: Regenerate.
455 * emultempl/spuelf.em (params): Init new field.
456 (no_overlays): New static var.
457 (spu_before_allocation): Use it.
458 (OPTION_SPU_COMPACT_STUBS): Define.
459 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add compact-stubs.
460 (PARSE_AND_LIST_ARGS_CASES): Handle compact-stubs. Adjust no-overlays
463 2009-03-17 Alan Modra <amodra@bigpond.net.au>
465 * configure.host (HOSTING_LIBS): Two dollars on shell variable
466 expansion to suit make.
468 2009-03-17 Alan Modra <amodra@bigpond.net.au>
470 * configure.in: Invoke ACX_PROG_CMP_IGNORE_INITIAL.
471 * Makefile.am (check-DEJAGNU): Set DO_COMPARE.
472 * aclocal.m4: Regenerate.
473 * configure: Regenerate.
474 * Makefile.in: Regenerate.
476 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
478 * emultempl/aix.em (auto_export_flags): New variable.
479 (explicit_auto_export_flags): Likewise.
480 (OPTION_EXPALL, OPTION_EXPFULL): New enum values.
481 (OPTION_NOEXPALL, OPTION_NOEXPFULL): Likewise.
482 (gld${EMULATION_NAME}_add_options): Add -bexpall, -bexpfull,
483 -bnoexpall and -bnoexpfull.
484 (gld${EMULATION_NAME}_handle_option): Handle them.
485 (gld${EMULATION_NAME}_before_allocation): Update the call to
486 bfd_size_dynamic_sections.
488 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
490 * emultempl/aix.em (gld${EMULATION_NAME}_handle_option): Make
491 -berok and -bernotok control link_info.unresolved_syms_in_objects
492 and link_info.unresolved_syms_in_shared_libs instead of
493 force_make_executable.
495 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
497 * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Set
498 config.dynamic_link to TRUE.
500 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
502 * emultempl/aix.em (gld${EMULATION_NAME}_before_allocation): Mark
503 .text, .data and .bss output sections as SEC_KEEP.
505 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
507 * configure.tgt: Extend AIX 5 behavior to AIX 6 and above.
509 2009-03-14 Dave Korn <dave.korn.cygwin@gmail.com>
510 Danny Smith <dannysmith@users.sourceforge.net>
512 * emultmpl/pe.em (pe_dll_characteristics): New variable.
513 (OPTION_DYNAMIC_BASE, OPTION_FORCE_INTEGRITY, OPTION_NX_COMPAT,
514 OPTION_NO_ISOLATION. OPTION_NO_SEH, OPTION_NO_BIND,
515 OPTION_WDM_DRIVER, OPTION_TERMINAL_SERVER_AWARE):
516 New macros for options to set DllCharacteristics flag bits.
517 (gld${EMULATION_NAME}_add_options): Add dynamicbase, forceinteg,
518 nxcompat, no-isolation, no-seh, no-bind, wdmdriver, tsaware options.
519 (init): Add DllCharacteristics field.
520 (gld_${EMULATION_NAME}_list_options): List new options.
521 (gld${EMULATION_NAME}_handle_option): Handle new options.
522 * emultmpl/pep.em (pe_dll_characteristics): New variable.
523 (OPTION_DYNAMIC_BASE, OPTION_FORCE_INTEGRITY, OPTION_NX_COMPAT,
524 OPTION_NO_ISOLATION. OPTION_NO_SEH, OPTION_NO_BIND,
525 OPTION_WDM_DRIVER, OPTION_TERMINAL_SERVER_AWARE):
526 New macros for options to set DllCharacteristics flags.
527 (gld${EMULATION_NAME}_add_options): Add dynamicbase, forceinteg,
528 nxcompat,no-isolation, no-seh, no-bind, wdmdriver, tsaware options.
529 (init): Add DllCharacteristics field.
530 (gld_${EMULATION_NAME}_list_options): List new options.
531 (gld${EMULATION_NAME}_handle_option): Handle new options.
532 * ldtexinfo : Document dynamicbase, forceinteg, nxcompat,
533 no-isolation, no-seh, no-bind, wdmdriver, tsaware options.
535 2009-03-06 Nick Clifton <nickc@redhat.com>
537 * po/es.po: Updated Spanish translation.
539 2009-03-03 Dave Korn <dave.korn.cygwin@gmail.com>
541 * emultempl/pe.em (debug_section_p): New bfd_map_over_sections hook.
542 (gld_${EMULATION_NAME}_after_open): Use it to iterate all sections
543 of all input BFDs, looking for debug info. Enable long section names
545 * emultempl/pe.em (debug_section_p): Likewise.
546 (gld_${EMULATION_NAME}_after_open): Likewise.
547 * NEWS: Retrospectively adjust news announcement.
548 * ld.texinfo: Update documentation to mention new behaviour.
550 2009-03-03 Alan Modra <amodra@bigpond.net.au>
552 * Makefile.am: Run "make dep-am".
553 * Makefile.in: Regenerate.
555 2009-03-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
557 * ldgram.y: Add support for REGION_ALIAS operator.
558 * ldlang.c: Likewise.
559 * ldlang.h: Likewise.
561 * NEWS: Mention the new feature.
562 * ld.texinfo: Document the new feature.
564 2009-03-02 Qinwei <qinwei@sunnorth.com.cn>
566 * Makefile.am: Replace score elf emulation with score3 and score7
568 * Makefile.in: Regenerate,
569 * NEWS: Mention support for Score7 architecture.
570 * configure.tgt: Add score7 emulation to score-elf target.
571 * emulparams/scoreelf.sh: Add score7 support.
572 * emultempl/scoreelf.em: Likewise.
574 2009-03-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
576 * configure.tgt: Only use elf64hppa target emulation for hpux.
577 * emulparams/elf64hppa.sh: Don't include hppa64linux.sh.
578 (SCRIPT_NAME): Use new script elf64hppa.
579 (SCRIPT_NAME, ELFSIZE, NO_REL_RELOCS, ARCH, MACHINE, ENTRY,
580 TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT, OTHER_READONLY_SECTIONS,
581 OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS, OTHER_GOT_RELOC_SECTIONS,
582 DATA_START_SYMBOLS, OTHER_SYMBOLS, DATA_PLT, PLT_BEFORE_GOT,
583 TEXT_DYNAMIC): Define.
584 * emulparams/hppa64linux.sh: Adjust comments.
585 * scripttempl/elf64hppa.sc: New file.
587 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
589 * configure: Regenerate.
591 2009-02-27 Dave Korn <dave.korn.cygwin@gmail.com>
593 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse): Set
594 default state of auto-import flag based on $target.
596 2009-02-24 Joseph Myers <joseph@codesourcery.com>
598 * ld.texinfo (ARM): Document changed meaning of --stub-group-size.
599 * emultempl/armelf.em (hook_in_stub): Insert after the input section.
600 (elf32_arm_add_stub_section): Update comment.
601 (PARSE_AND_LIST_OPTIONS): Update help for --stub-group-size.
603 2009-02-24 Sandra Loosemore <sandra@codesourcery.com>
605 * ld.texinfo (Options): Correct typos in example. Recommend
606 using joined forms of syntax for passing options with arguments
608 (-a): Use consistent syntax for documenting option arguments.
609 Clean up indexing and markup.
610 (-A/--architecture): Likewise.
611 (-f/--auxiliary): Likewise.
612 (-F/--filter): Likewise.
614 (-G/--gpsize): Likewise.
615 (-h/-soname):Likewise.
617 (-l/--library): Likewise.
618 (-L/--library-path): Likewise.
620 (--defsym): Likewise.
621 (-I/--dynamic-linker): Likewise.
623 (--oformat): Likewise.
624 (--retain-symbols-file): Likewise.
626 (-rpath-link): Likewise.
627 (--sort-common): Likewise.
628 (--sort-section): Likewise.
629 (--split-by-file): Likewise.
630 (--split-by-reloc): Likewise.
631 (--sysroot): Likewise.
632 (--section-start): Likewise.
633 (-Tbss, -Tdata, -Ttext): Likewise.
634 (-Ttext-segment): Likewise.
635 (--version-script): Likewise.
638 2009-02-18 Dave Korn <dave.korn.cygwin@gmail.com>
640 * ld.texinfo: Update to mention long section name options.
641 * NEWS: Mention new behaviour and command-line options.
642 * pe-dll.c (pe_use_coff_long_section_names): New global variable.
643 (pe_output_file_set_long_section_names): New function.
644 (pe_dll_build_sections): Call it on output BFDs.
645 (pe_exe_build_sections): Likewise.
646 (pe_dll_fill_sections): Likewise.
647 (pe_exe_fill_sections): Likewise.
648 * pe-dll.h (pe_use_coff_long_section_names): Declare extern.
649 (pe_output_file_set_long_section_names): Add prototype.
650 * pep-dll.c (pe_use_coff_long_section_names): Define pep_ alias.
651 (pe_output_file_set_long_section_names): Likewise.
652 * pep-dll.h (pep_use_coff_long_section_names): Declare extern.
653 (pep_output_file_set_long_section_names): Add prototype.
654 * pe.em (OPTION_ENABLE_LONG_SECTION_NAMES): New getopt value macro.
655 (OPTION_DISABLE_LONG_SECTION_NAMES): Likewise.
656 (gld${EMULATION_NAME}_add_options): Add new options to xtra_long[].
657 (gld_${EMULATION_NAME}_list_options): Describe them.
658 (gld${EMULATION_NAME}_handle_option): Set or clear global
659 pe_use_coff_long_section_names flag when options recognised.
660 (gld_${EMULATION_NAME}_after_open): En/disable long section names
661 for main output bfd by calling pe_output_file_set_long_section_names.
662 * pep.em (enum options): Extend enum with new getopt option values.
663 (gld${EMULATION_NAME}_add_options): Add new options to xtra_long[].
664 (gld_${EMULATION_NAME}_list_options): Describe them.
665 (gld${EMULATION_NAME}_handle_option): Set or clear global
666 pe_use_coff_long_section_names flag when options recognised.
667 (gld_${EMULATION_NAME}_after_open): En/disable long section names
668 for main output bfd by calling pep_output_file_set_long_section_names.
670 2009-02-16 Dave Korn <dave.korn.cygwin@gmail.com>
672 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Don't emit
673 inadvertent .reloc sections caused by refactoring accident.
675 2009-02-16 Alan Modra <amodra@bigpond.net.au>
677 * ldlang.c (process_insert_statements): ASSERT that output section
678 statements are in order.
680 2009-02-16 Alan Modra <amodra@bigpond.net.au>
682 * ldlang.c (push_stat_ptr, pop_stat_ptr): New functions.
683 (stat_save, stat_save_ptr): New variables.
684 (lang_insert_orphan): Use push_stat_ptr and pop_stat_ptr.
685 (load_symbols): Likewise. Delete dead "bad_load" code.
686 (open_input_bfds): Warn on script containing output sections.
687 (lang_enter_output_section_statement): Use push_stat_ptr.
688 (lang_enter_group): Likewise.
689 (lang_leave_output_section_statement): Use pop_stat_ptr.
690 (lang_leave_group): Likewise.
691 * ldlang.h (push_stat_ptr, pop_stat_ptr): Declare.
692 * ldctor.c (ldctor_build_sets): Use push_stat_ptr and pop_stat_ptr.
693 * emultempl/beos.em (gld_${EMULATION_NAME}_set_symbols): Likewise.
694 * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Likewise.
695 * emultempl/pep.em (gld_${EMULATION_NAME}_set_symbols): Likewise.
696 * emultempl/spuelf.em (spu_place_special_section): Likewise.
697 * emultempl/xtensaelf.em (ld_xtensa_insert_page_offsets): Likewise.
699 2009-02-09 Nathan Sidwell <nathan@codesourcery.com>
701 Missing piece of 2009-01-26 commit
702 * ldlang.c (lang_process): Don't consider relocatable flag when
703 checking for overlap.
705 2009-02-05 Joseph Myers <joseph@codesourcery.com>
707 * emulparams/m68kelf.sh: Add newline at end of file.
709 2009-02-04 Nick Clifton <nickc@redhat.com>
712 * ld.texinfo (--allow-shlib-undefined): Correct description of
713 default settings and tidy up the rest of the entry.
715 2009-02-04 Alan Modra <amodra@bigpond.net.au>
717 * emultempl/spuelf.em (spu_after_open): Don't combine .text.ia.*
718 during relocatable link.
720 2009-02-03 Nick Clifton <nickc@redhat.com>
723 * ld.texinfo (Constants): Document the base-encoding suffixes
724 supported in linker scripts.
726 2009-02-03 Alan Modra <amodra@bigpond.net.au>
728 * NEWS: Mention --as-needed change.
730 2009-02-03 Carlos O'Donell <carlos@codesourcery.com>
732 * configure.in: AC_SUBST pdfdir.
733 * Makefile.am: Add install-pdf, install-pdf-am,
734 and install-pdf-recursive targets. Define pdf__strip_dir.
735 * po/Make-in: Add install-pdf target.
736 * configure: Regenerate.
737 * Makefile.in: Regenerate.
739 2009-01-31 Alan Modra <amodra@bigpond.net.au>
741 * ld.texinfo (--as-needed): Update.
743 2009-01-29 Andrew Jenner <andrew@codesourcery.com>
745 * emultempl/armelf.em: Correct formatting of help text for
746 --no-enum-size-warning option.
748 2009-01-26 Nathan Sidwell <nathan@codesourcery.com>
750 * lexsup.c (parse_args): Set check_section_addresses to 1 or 0.
751 * ld.h (args_type): Make check_section_addresses a char.
752 * ldmain.c (main): Default check_section_addresses to -1. Check it
753 for relocatable links.
754 * ld.texinfo (--check-sections): Update documentation.
756 2009-01-26 Kai Tietz <kai.tietz@onevision.com>
758 * pe-dll.c (tmp_seq2): New static variable.
759 (make_singleton_name_imp): New.
760 (make_import_fixup_entry): Use for v2 the _imp_<name> symbol and
761 avoid duplicate import table generation for same symbol.
762 (pe_create_runtime_relocator_reference): Make reference for
765 2009-01-21 Alan Modra <amodra@bigpond.net.au>
767 * emultempl/spuelf.em (params): Init new field.
768 (OPTION_SPU_NON_IA_TEXT): Define.
769 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --non-ia-text.
770 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_SPU_NON_IA_TEXT.
772 2009-01-16 H.J. Lu <hongjiu.lu@intel.com>
774 * lexsup.c (option_values): Add OPTION_TTEXT_SEGMENT.
775 (ld_options): Add -Ttext-segment.
776 (parse_args): Handle OPTION_TTEXT_SEGMENT.
778 * ld.texinfo: Document -Ttext-segment.
780 * NEWS: Mention -Ttext-segment.
782 * scripttempl/elf.sc (TEXT_START_ADDR): Use SEGMENT_START.
783 (SHLIB_TEXT_START_ADDR): Likewise.
785 2009-01-13 Alan Modra <amodra@bigpond.net.au>
787 * emultempl/spu_icache.o_c: Regenerate.
789 2009-01-12 Alan Modra <amodra@bigpond.net.au>
791 * emultempl/spuelf.em (params): Init new fields.
792 (num_lines_set, line_size_set, icache_mgr, icache_mgr_stream): New vars.
793 (spu_place_special_section): Adjust placement for soft-icache. Pad
794 soft-icache section to a fixed size. Clear addr_tree.
795 (spu_elf_load_ovl_mgr): Support soft-icache. Map overlay manager
796 sections a little more intelligently.
797 (gld${EMULATION_NAME}_finish): Don't call spu_elf_build_stubs.
798 (OPTION_SPU_NUM_LINES): Rename from OPTION_SPU_NUM_REGIONS.
799 (OPTION_SPU_SOFT_ICACHE, OPTION_SPU_LINE_SIZE): Define.
800 (OPTION_SPU_LRLIVE): Define.
801 (PARSE_AND_LIST_LONGOPTS): Add new soft-icache options.
802 (PARSE_AND_LIST_OPTIONS): Likewise.
803 (PARSE_AND_LIST_ARGS_CASES): Handle them.
804 * emultempl/spu_icache.S: Dummy file.
805 * emultempl/spu_icache.o_c: Regenerate.
806 * Makefile.am (eelf32_spu.c): Depend on spu_icache.o_c.
807 (spu_icache.o_c): Add rule to build.
808 (CLEANFILES): Zap temp files.
809 (EXTRA_DIST): Add spu_icache.o_c.
810 * Makefile.in: Regenerate.
812 2009-01-08 Kai Tietz <kai.tietz@onevision.com>
814 * pe.em (OPTION_USE_NUL_PREFIXED_IMPORT_TABLES): New.
815 (gld..._add_options): Add new option
816 --use-nul-prefixed-import-tables.
817 (gld..._handle_option): Likewise.
818 * pep.em: Same as for pe.em.
819 * ld.texinfo: Add new option documentation for
820 --use-nul-prefixed-import-tables.
821 * pe-dll.c (pe_use_nul_prefixed_import_tables): New.
822 (make_head): Make prefix leading zero prefix element for
823 idata$4 and idata$5 dependent to new flag.
824 (make_import_fixup_entry): Remove idata4/5 prefix.
825 * pe-dll.h (pe_use_nul_prefixed_import_tables): New.
826 * pep-dll.c (pe_use_nul_prefixed_import_tables): New.
827 * pep-dll.h (pep_use_nul_prefixed_import_tables): New.
828 * NEWS: Add new option.
830 2009-01-05 Kai Tietz <kai.tietz@onevision.com>
832 * emultempl/pe.em: Prefix dollar characters to be outputed in
834 * emultempl/pep.em: Likewise.
836 2009-01-03 Dave Korn <dave.korn.cygwin@gmail.com>
838 * NEWS: Mention new feature --exclude-modules-for-implib.
839 * ld.texinfo: Document new --exclude-modules-for-implib option.
840 * pe-dll.c (exclude_list_struct): Change type member from int to
841 new enumeration exclude_type.
842 (pe_dll_add_excludes): Accept exclude_type instead of int param.
843 (auto_export): Replace magic constants by exclude_type values and
844 handle new choice EXCLUDEFORIMPLIB.
845 (pe_dll_generate_implib): Accept a pointer to the link_info and
846 iterate all input BFDs looking for EXCLUDEFORIMPLIB modules; re-open
847 fresh BFDs for any found and link into import lib archive chain.
848 * pe-dll.h (exclude_type): Add new enumerated type to replace magic
849 constants previously used for exclude_list_struct type member.
850 (pe_dll_add_excludes, pe_dll_generate_implib): Update prototypes.
851 * pep-dll.h (exclude_type, pe_dll_add_excludes,
852 pe_dll_generate_implib): Likewise to all the above.
853 * emultempl/pe.em (OPTION_EXCLUDE_MODULES_FOR_IMPLIB): Define new
854 getopts long option code for new --exclude-modules-for-implib option.
855 (gld${EMULATION_NAME}_add_options): Add new entry to xtra_long[].
856 (gld_${EMULATION_NAME}_list_options): List usage for it.
857 (gld${EMULATION_NAME}_handle_option): Use exclude_type enumerated
858 values when calling pe_dll_add_excludes, and handle EXCLUDEFORIMPLIB.
859 (gld_${EMULATION_NAME}_finish): Pass pointer to link_info when
860 calling pe_dll_generate_implib.
861 * emultempl/pep.em (options): Define new enumerated value for getopts
862 long option code for new --exclude-modules-for-implib option.
863 (gld${EMULATION_NAME}_add_options, gld_${EMULATION_NAME}_list_options,
864 gld${EMULATION_NAME}_handle_option, gld_${EMULATION_NAME}_finish):
865 Again, likewise to all the above.
867 2009-01-03 Dave Korn <dave.korn.cygwin@gmail.com>
869 * pe-dll.c (autofilter_liblist): Add entry for shared libgcc.
870 (libnamencmp): New function.
871 (auto_export): Use it in place of strncmp when filtering libraries.
873 For older changes see ChangeLog-2008
879 version-control: never