* (po/fi.po): Updated Finnish translation.
[binutils.git] / ld / ChangeLog
blob89c4632e47263cba05c3184b84ca289f54023641
1 2009-07-27  Nick Clifton  <nickc@redhat.com>
3         * (po/fi.po): Updated Finnish translation.
5 2009-07-25  H.J. Lu  <hongjiu.lu@intel.com>
7         * configure.tgt (targ64_extra_emuls): Add elf_l1om if elf_x86_64
8         is supported.  Add elf_l1om_fbsd if elf_x86_64_fbsd is supported.
9         (targ_extra_emuls): Likewise.
11         * Makefile.am (ALL_64_EMULATIONS): Add eelf_l1om.o and
12         eelf_l1om_fbsd.o
13         (eelf_l1om.c): New.
14         (eelf_l1om_fbsd.c): Likewise.
15         * Makefile.in: Regenerated.
17         * emulparams/elf_l1om.sh: New.
18         * emulparams/elf_l1om_fbsd.sh: Likewise.
20 2009-07-23  Ulrich Drepper  <drepper@redhat.com>
22         * NEWS: Mention the linker's support for symbols with a binding of
23         STB_GNU_UNIQUE.
25 2009-07-22  H.J. Lu  <hongjiu.lu@intel.com>
27         PR ld/10429
28         * ldlang.c (insert_os_after): Tie assignments to non-alloc
29         output sections if there is no-input section.
31 2009-07-11  Alan Modra  <amodra@bigpond.net.au>
33         * ldlang.c (insert_os_after): Don't tie assignments to non-alloc
34         output sections.
36 2009-07-10  Alan Modra  <amodra@bigpond.net.au>
38         * emultempl/ppc32elf.em (ppc_before_allocation): Turn on
39         linker relaxation if it might be necessary.
41 2009-07-10  Alan Modra  <amodra@bigpond.net.au>
43         * emulparams/elf32ppc.sh (GOTPLT, PLT): Handle .iplt.
45 2009-07-06  Matthias Klose <doko@ubuntu.com>
47         * ld.texinfo: Fix typo.
49 2009-07-03  Tristan Gingold  <gingold@adacore.com>
51         * scripttempl/pep.sc: Put .eh_frame in its own section.
52         * scripttempl/pe.sc: Ditto.
53         
54 2009-06-26  Kai Tietz  <kai.tietz@onevision.com>
56         * scripttempl/pe.sc (.debug_pubtypes): Added section rule.
57         * scripttempl/pep.sc: Likewise.
59 2009-06-25  Tristan Gingold  <gingold@adacore.com>
61         * ldlang.c (print_input_section): Add is_discarded parameter.  Adjust
62         prototype.
63         (lang_map): Print the size of discarded sections.
64         (print_statement): Adjust call to print_input_section.
66 2009-06-18  Dave Korn  <dave.korn.cygwin@gmail.com>
68         Merge cegcc and mingw32ce target name changes from CeGCC project:
70         2008-09-24  Pedro Alves  <pedroalves@users.sourceforge.net>
72         * configure.tgt (arm*-*-cegcc*): Set LIB_PATH to
73         ${tooldir}/lib/w32api.
75         2007-12-25  Pedro Alves  <pedro_alves@portugalmail.pt>
77         * configure.tgt: Add arm*-*-cegcc* target.
79         2007-12-17  Pedro Alves  <pedro_alves@portugalmail.pt>
81         * configure.tgt: Add arm-*-mingw32ce* target.
83 2009-06-10  Philip Blundell  <philb@gnu.org>
85         * emultempl/armelf.em (gld${EMULATION_NAME}_finish): Avoid crash
86         if section has no ELF data.
88 2009-06-06  H.J. Lu  <hongjiu.lu@intel.com>
90         * scripttempl/elf.sc: Add .rel.ifunc and .rela.ifunc.
92 2009-06-05  H.J. Lu  <hongjiu.lu@intel.com>
94         * scripttempl/elf.sc: Remove .rel.ifunc.dyn and .rela.ifunc.dyn.
96 2009-06-04  Alan Modra  <amodra@bigpond.net.au>
98         * dep-in.sed: Don't use \n in replacement part of s command.
99         * Makefile.am (DEP1): LC_ALL for uniq.
100         * Makefile.in: Regenerate.
102 2009-06-01  H.J. Lu  <hongjiu.lu@intel.com>
104         * scripttempl/elf.sc (PLT): Add "*(.iplt)".
105         (GOT): Add "*(.igot.plt)a" and "*(.igot)".
106         (GOTPLT): Add "*(.igot)".
107         (__rel_iplt_start): New.
108         (__rel_iplt_end): Likewise.
109         (__rela_iplt_start): Likewise.
110         (__rela_iplt_end): Likewise.
112 2009-05-27  Dave Korn  <dave.korn.cygwin@gmail.com>
114         * deffilep.y (%union):  Add new string-type semantic value 'digits'.
115         (%token):  Remove NUMBER as token, add DIGITS.
116         (%type):  Add NUMBER as type.  Add new id types anylang_id, opt_id.
117         (ALIGNCOMM):  Parse an anylang_id instead of a plain ID.
118         (anylang_id):  New production.
119         (opt_digits):  Likewise.
120         (opt_id):  Likewise.
121         (NUMBER):  Likewise.
122         (def_lex):  Return strings of digits in raw string form as DIGITS
123         token, instead of converting to numeric integer type.
125 2009-05-26  Nathan Sidwell  <nathan@codesourcery.com>
127         * ldmain.c (main): Don't reject --relax -r.
128         * ld.texinfo (PowerPC ELF32): Document behaviour of relaxing
129         partial links.
131 2009-05-26  Nick Clifton  <nickc@redhat.com>
133         * po/id.po: Updated Indonesian translation.
134         * po/ld.pot: Updated template file.
136 2009-05-26  Alan Modra  <amodra@bigpond.net.au>
138         * dep-in.sed: Output one filename per line with all lines having
139         continuation backslash.  Prefix first line with "A", following
140         lines with "B".
141         * Makefile.am (DEP): Don't use dep.sed here.
142         (DEP1): Run $MKDEP on single files, use dep.sed here on dependencies,
143         sort and uniq.
144         * Makefile.in: Regenerate.
146 2009-05-26  Alan Modra  <amodra@bigpond.net.au>
148         * ldlang.c (lang_check_section_addresses): Ignore non-alloc sections.
150 2009-05-22  Julian Brown  <julian@codesourcery.com>
152         * emultempl/armelf.em (fix_cortex_a8): New.
153         (arm_elf_before_allocation): Call bfd_elf32_arm_set_cortex_a8_fix.
154         (arm_elf_create_output_section_statements): Add fix_cortex_a8 to
155         bfd_elf32_arm_set_target_relocs.
156         (OPTION_FIX_CORTEX_A8, OPTION_NO_FIX_CORTEX_A8): New.
157         (PARSE_AND_LIST_LONGOPTS): Add [no-]fix-cortex-a8 options.
158         (PARSE_AND_LIST_OPTIONS): Add [no-]fix-cortex-a8 options.
159         (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_[NO_]FIX_CORTEX_A8.
160         * ld.texinfo (--[no-]fix-cortex-a8): Briefly document new options.
162 2009-05-22  Nathan Sidwell  <nathan@codesourcery.com>
164         * ldlang.c (lang_check_section_addresses): Ignore non-loadable
165         sections when checking for overlap.  Clarify error message
166         concerns load address.
168 2009-05-22  Alan Modra  <amodra@bigpond.net.au>
170         * Makefile.am: Run "make dep-am".
171         * Makefile.in: Regenerate.
173 2009-05-19  Dave Korn  <dave.korn.cygwin@gmail.com>
175         * NEWS:  Mention new feature.
176         * deffile.h (def_file_aligncomm):  Add new struct definition.
177         (def_file):  Add new def_file_aligncomm member.
178         * deffilep.y (%token):  Add new ALIGNCOMM token.
179         (command):  Add production rule for ALIGNCOMM.
180         (def_file_free):  Free any chained def_file_aligncomm structs.
181         (diropts[]):  Add entry for '-aligncomm' .drectve command.
182         (def_aligncomm):  New grammar function.
183         * ld.texinfo:  Document new feature.
184         * pe-dll.c (process_def_file):  Rename from this ...
185         (process_def_file_and_drectve):  ... to this, updating all callers,
186         and process any aligncomms chained to the def file after scanning
187         all .drectve sections.
188         (generate_edata):  Updated to match.
189         (pe_dll_build_sections):  Likewise.
191 2009-05-17  Aaron W. LaFramboise  <aaron98wiridge9@aaronwl.com>
193         * pe-dll.c (process_def_file): Do not create empty export table.
195 2009-05-15  Alan Modra  <amodra@bigpond.net.au>
197         * ldlang.c (lang_output_section_statement_lookup): Add function
198         comment.  Make "name" non-const.  Ensure duplicate entries use
199         the same string, allowing simple comparison in hash bucket loop.
200         Tweak constraint check.
201         (next_matching_output_section_statement): New function.
202         * ldlang.h (lang_output_section_statement_lookup): Update.
203         (next_matching_output_section_statement): Declare.
204         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
205         combine orphan sections when input sections flags differ in
206         alloc or load.
207         * emultempl/pe.em: Formatting throughout.
208         (gld${EMULATION_NAME}_place_orphan): As for elf32.em.
209         * emultempl/pep.em: Formatting throughout.
210         (gld${EMULATION_NAME}_place_orphan): As for elf32.em.
212 2009-05-14  Ulrich Weigand  <uweigand@de.ibm.com>
214         * emultempl/spuelf.em (PARSE_AND_LIST_ARGS_CASES): Always use
215         compact stubs with software i-cache.
217 2009-05-14  Alan Modra  <amodra@bigpond.net.au>
219         * emultempl/spuelf.em (spu_before_allocation): Call
220         spu_elf_place_overlay_data.
222 2009-05-14  Alan Modra  <amodra@bigpond.net.au>
224         * ldlang.c (lang_insert_orphan): Add __start_<section> symbol
225         assignment inside output section statement.  Ensure only one
226         set of symbols per output section.
227         * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Add non-
228         dollar sections before dollar sections.  Correct add_child
229         list insertion.
230         * emultempl/pep.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
232 2009-05-05  Paul Brook  <paul@codesourcery.com>
234         * emultempl/armelf.em (compare_output_sec_vma): New function.
235         (gld${EMULATION_NAME}_finish): Add exidx munging code.
237 2009-05-05  Anatoly Sokolov  <aesok@post.ru>
239         * scripttempl/avr.sc (MEMORY): Use DATA_ORIGIN.
240         * emulparams/avr1.sh (DATA_ORIGIN): Add.
241         * emulparams/avr2.sh (DATA_ORIGIN): Add.
242         * emulparams/avr25.sh (DATA_ORIGIN): Add.
243         * emulparams/avr3.sh (DATA_ORIGIN): Add.
244         * emulparams/avr31.sh (DATA_ORIGIN): Add.
245         * emulparams/avr35.sh (DATA_ORIGIN): Add.
246         * emulparams/avr4.sh (DATA_ORIGIN): Add.
247         * emulparams/avr5.sh (DATA_ORIGIN): Add.
248         * emulparams/avr51.sh (DATA_ORIGIN): Add.
249         (DATA_LENGTH): Update.
250         * emulparams/avr6.sh (DATA_ORIGIN): Add.
251         (DATA_LENGTH): Update.
253 2009-05-04  Dave Korn  <dave.korn.cygwin@gmail.com>
255         * NEWS:  Mention new feature.
256         * ld.texinfo (--version-script):  Document extent of PE support.
257         (WIN32):  Mention --version-script.  Extend auto-export description.
258         * pe-dll.c (process_def_file):  Use version script info to filter
259         symbols from auto-export.
260         * testsuite/ld-pe/vers-script-1.d:  New file.
261         * testsuite/ld-pe/vers-script-2.d:  New file.
262         * testsuite/ld-pe/vers-script-3.d:  New file.
263         * testsuite/ld-pe/vers-script-4.d:  New file.
264         * testsuite/ld-pe/vers-script-1.ver:  New file.
265         * testsuite/ld-pe/vers-script-2.ver:  New file.
266         * testsuite/ld-pe/vers-script-3.ver:  New file.
267         * testsuite/ld-pe/vers-script-4.ver:  New file.
268         * testsuite/ld-pe/vers-script-dll.c:  New file.
269         * testsuite/ld-pe/vers-script.exp:  New test script.
271 2009-05-01  Nathan Sidwell  <nathan@codesourcery.com>
273         * emulparams/vxworks.sh (TEXT_START_ADDR): Override.
275 2009-04-30  Nick Clifton  <nickc@redhat.com>
277         * NEWS: Mention support for IFUNC symbols.
279 2009-04-29  Anthony Green  <green@moxielogic.com>
281         * emulparams/elf32moxie.sh (STACK_ADDR): Move default stack
282         position out to accommodate larger programs.
284 2009-04-29  Chris Demetriou  <cgd@google.com>
286         * lexsup.c (option_values): Add OPTION_NO_EXPORT_DYNAMIC.
287         (ld_options): Likewise.
288         (parse_args): Likewise.
289         * ld.texinfo: Document --no-export-dynamic.
290         * NEWS: Mention --no-export-dynamic.
292 2009-04-29  Alan Modra  <amodra@bigpond.net.au>
294         * deffilep.y (STACKSIZE_K): Rename from STACKSIZE.
296 2009-04-25  Alan Modra  <amodra@bigpond.net.au>
298         PR 10061
299         * genscripts.sh: Don't pass $EMULATION_NAME as $CUSTOMIZER_SCRIPT
300         param.
302 2009-04-21  Daniel Jacobowitz  <dan@codesourcery.com>
304         * emultempl/armelf.em (bfd_for_interwork, arm_elf_after_open)
305         (arm_elf_set_bfd_for_interworking): Delete.
306         (arm_elf_before_allocation): Do not set the interworking BFD.
307         Move allocation inside not-dynamic block.
308         (arm_elf_create_output_section_statements): Create glue sections
309         and set the interworking BFD here.
310         (LDEMUL_AFTER_OPEN): Delete.
312 2009-04-16  Richard Sandiford  <r.sandiford@uk.ibm.com>
314         * ldlang.c (lang_one_common): Use bfd_define_common_symbol.
316 2009-04-15  Anthony Green  <green@moxielogic.com>
318         * configure.tgt: Add moxie support.
319         * Makefile.am: Add moxie files.
320         * Makefile.in: Rebuilt.
321         * emulparams/elf32moxie.sh: New file.
322         * scripttempl/moxie.sc: New file.
324 2009-04-15  Kazu Hirata  <kazu@codesourcery.com>
326         * ldlang.c: Do not include limits.h.
328 2009-04-14  Alan Modra  <amodra@bigpond.net.au>
330         PR ld/10047
331         * ldfile.c (find_scripts_dir): Use make_relative_prefix to find
332         ldscripts in build tree.  Don't repeat search for ../lib/ldscripts.
334 2009-04-13  H.J. Lu  <hongjiu.lu@intel.com>
336         * ldfile.c (ldfile_find_command_file): Revert the last change.
338 2009-04-11  H.J. Lu  <hongjiu.lu@intel.com>
340         PR ld/10047
341         * ldfile.c (ldfile_find_command_file): First try raw name.
343 2009-04-09  Nick Clifton  <nickc@redhat.com>
345         PR 9824
346         * ld.texinfo (Output Section Constraint): New node.  Documents the
347         ONLY_IF_RO and ONLY_IF_RW constraints.
348         (Symbolic Constants): New node.  Documents the CONSTANT operator.
350 2009-04-09  Thilo Fischer <thilo.fischer@uni-muenster.de>
352         * emultempl/spuelf.em (embedded_spu_file): Use pex_one in place
353         of fork/execvp.
355 2009-04-08  H.J. Lu  <hongjiu.lu@intel.com>
357         * lexsup.c (option_values): Add OPTION_WARN_ALTERNATE_EM.
358         (ld_options): Likewise.
359         (parse_args): Likewise.
361         * ld.texinfo: Document --warn-alternate-em.
363         * NEWS: Mention --warn-alternate-em.
365 2009-04-07  DJ Delorie  <dj@redhat.com>
367         * emulparams/elf32mep.sh: Change default endian to little.
369 2009-04-07  Nick Clifton  <nickc@redhat.com>
371         * ld.texinfo (Output Section Address): Note that specifying an
372         address for an output section will only change the location
373         counter if the output section is used.
375 2009-04-06  Kazu Hirata  <kazu@codesourcery.com>
377         * ldfile.c (ldfile_find_command_file): Initialize result.
379 2009-04-06  Kazu Hirata  <kazu@codesourcery.com>
381         * ld.texinfo (-L): Mention that -L options do not affect how ld
382         searches for a linker script unless -T option is specified.
383         * ldfile.c (ldfile_find_command_file): Append the path obtained
384         from the program name to the search path instead of
385         prepending. Add a new parameter "default_only". Restrict the
386         search to the default script location if the new parameter is
387         true.
388         (ldfile_open_command_file_1): New.
389         (ldfile_open_command_file): Call ldfile_open_command_file_1.
390         (ldfile_open_default_command_file): New.
392 2009-04-03  Nathan Sidwell  <nathan@codesourcery.com>
394         * ldlang.c (lang_leave_output_section_statement): Set lma_region
395         if it is not overridden and section is for the same vma region as
396         the previous section.
398 2009-04-02  Dave Korn  <dave.korn.cygwin@gmail.com>
400         PR ld/6744
401         * ld.texinfo (--export-dynamic):  Mention --export-all-symbols.
402         * emultempl/pe.em (gld_${EMULATION_NAME}_after_parse):  Issue
403         warning if --export-dynamic was passed on command-line.
404         * emultempl/pep.em (gld_${EMULATION_NAME}_after_parse):  Likewise.
406 2009-04-01  Richard Sandiford  <r.sandiford@uk.ibm.com>
408         * emultempl/aix.em (gld${EMULATION_NAME}_open_dynamic_archive): New
409         function.
410         (ld_${EMULATION_NAME}_emulation): Use it.
412 2009-03-20  H.J. Lu  <hongjiu.lu@intel.com>
414         PR ld/9970
415         * ldlang.c (lang_end): Warn missing entry symbol for -pie.
417 2009-03-19  Alan Modra  <amodra@bigpond.net.au>
419         * emultempl/spuelf.em (spu_before_allocation): Report errors from
420         spu_elf_find_overlays.
422 2009-03-18  H.J. Lu  <hongjiu.lu@intel.com>
424         PR ld/6766
425         * lexsup.c (parse_args): Call ldlang_add_undef for -e.
427 2009-03-18  Alan Modra  <amodra@bigpond.net.au>
429         * ld.h: Remove alloca handling.
431 2009-03-17  Alan Modra  <amodra@bigpond.net.au>
433         * emultempl/spu_icache.S: Add new entry to dummy handler.
434         * emultempl/spu_icache.o_c: Regenerate.
435         * emultempl/spuelf.em (params): Init new field.
436         (no_overlays): New static var.
437         (spu_before_allocation): Use it.
438         (OPTION_SPU_COMPACT_STUBS): Define.
439         (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add compact-stubs.
440         (PARSE_AND_LIST_ARGS_CASES): Handle compact-stubs.  Adjust no-overlays
441         handling.
443 2009-03-17  Alan Modra  <amodra@bigpond.net.au>
445         * configure.host (HOSTING_LIBS): Two dollars on shell variable
446         expansion to suit make.
448 2009-03-17  Alan Modra  <amodra@bigpond.net.au>
450         * configure.in: Invoke ACX_PROG_CMP_IGNORE_INITIAL.
451         * Makefile.am (check-DEJAGNU): Set DO_COMPARE.
452         * aclocal.m4: Regenerate.
453         * configure: Regenerate.
454         * Makefile.in: Regenerate.
456 2009-03-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
458         * emultempl/aix.em (auto_export_flags): New variable.
459         (explicit_auto_export_flags): Likewise.
460         (OPTION_EXPALL, OPTION_EXPFULL): New enum values.
461         (OPTION_NOEXPALL, OPTION_NOEXPFULL): Likewise.
462         (gld${EMULATION_NAME}_add_options): Add -bexpall, -bexpfull,
463         -bnoexpall and -bnoexpfull.
464         (gld${EMULATION_NAME}_handle_option): Handle them.
465         (gld${EMULATION_NAME}_before_allocation): Update the call to
466         bfd_size_dynamic_sections.
468 2009-03-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
470         * emultempl/aix.em (gld${EMULATION_NAME}_handle_option): Make
471         -berok and -bernotok control link_info.unresolved_syms_in_objects
472         and link_info.unresolved_syms_in_shared_libs instead of
473         force_make_executable.
475 2009-03-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
477         * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Set
478         config.dynamic_link to TRUE.
480 2009-03-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
482         * emultempl/aix.em (gld${EMULATION_NAME}_before_allocation): Mark
483         .text, .data and .bss output sections as SEC_KEEP.
485 2009-03-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
487         * configure.tgt: Extend AIX 5 behavior to AIX 6 and above.
489 2009-03-14  Dave Korn  <dave.korn.cygwin@gmail.com>
490             Danny Smith  <dannysmith@users.sourceforge.net>
492         * emultmpl/pe.em (pe_dll_characteristics): New variable.
493         (OPTION_DYNAMIC_BASE, OPTION_FORCE_INTEGRITY, OPTION_NX_COMPAT,
494         OPTION_NO_ISOLATION. OPTION_NO_SEH, OPTION_NO_BIND,
495         OPTION_WDM_DRIVER, OPTION_TERMINAL_SERVER_AWARE):
496         New macros for options to set DllCharacteristics flag bits.
497         (gld${EMULATION_NAME}_add_options): Add dynamicbase, forceinteg,
498         nxcompat, no-isolation, no-seh, no-bind, wdmdriver, tsaware options.
499         (init): Add DllCharacteristics field.
500         (gld_${EMULATION_NAME}_list_options): List new options.
501         (gld${EMULATION_NAME}_handle_option): Handle new options.
502         * emultmpl/pep.em (pe_dll_characteristics): New variable.
503         (OPTION_DYNAMIC_BASE, OPTION_FORCE_INTEGRITY, OPTION_NX_COMPAT,
504         OPTION_NO_ISOLATION. OPTION_NO_SEH, OPTION_NO_BIND,
505         OPTION_WDM_DRIVER, OPTION_TERMINAL_SERVER_AWARE):
506         New macros for options to set DllCharacteristics flags.
507         (gld${EMULATION_NAME}_add_options): Add dynamicbase, forceinteg,
508         nxcompat,no-isolation, no-seh, no-bind, wdmdriver, tsaware options.
509         (init): Add DllCharacteristics field.
510         (gld_${EMULATION_NAME}_list_options): List new options.
511         (gld${EMULATION_NAME}_handle_option): Handle new options.
512         * ldtexinfo : Document dynamicbase, forceinteg, nxcompat,
513         no-isolation, no-seh, no-bind, wdmdriver, tsaware options.
515 2009-03-06  Nick Clifton  <nickc@redhat.com>
517         * po/es.po: Updated Spanish translation.
519 2009-03-03  Dave Korn  <dave.korn.cygwin@gmail.com>
521         * emultempl/pe.em (debug_section_p):  New bfd_map_over_sections hook.
522         (gld_${EMULATION_NAME}_after_open):  Use it to iterate all sections
523         of all input BFDs, looking for debug info.  Enable long section names
524         if any found.
525         * emultempl/pe.em (debug_section_p):  Likewise.
526         (gld_${EMULATION_NAME}_after_open):  Likewise.
527         * NEWS:  Retrospectively adjust news announcement.
528         * ld.texinfo:  Update documentation to mention new behaviour.
530 2009-03-03  Alan Modra  <amodra@bigpond.net.au>
532         * Makefile.am: Run "make dep-am".
533         * Makefile.in: Regenerate.
535 2009-03-02  Sebastian Huber  <sebastian.huber@embedded-brains.de>
537         * ldgram.y: Add support for REGION_ALIAS operator.
538         * ldlang.c: Likewise.
539         * ldlang.h: Likewise.
540         * ldlex.l: Likewise.
541         * NEWS: Mention the new feature.
542         * ld.texinfo: Document the new feature.
544 2009-03-02  Qinwei  <qinwei@sunnorth.com.cn>
546         * Makefile.am: Replace score elf emulation with score3 and score7
547         emulations.
548         * Makefile.in: Regenerate,
549         * NEWS: Mention support for Score7 architecture.
550         * configure.tgt: Add score7 emulation to score-elf target.
551         * emulparams/scoreelf.sh: Add score7 support.
552         * emultempl/scoreelf.em: Likewise.
554 2009-03-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
556         * configure.tgt: Only use elf64hppa target emulation for hpux.
557         * emulparams/elf64hppa.sh: Don't include hppa64linux.sh.
558         (SCRIPT_NAME): Use new script elf64hppa.
559         (SCRIPT_NAME, ELFSIZE, NO_REL_RELOCS, ARCH, MACHINE, ENTRY,
560         TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT, OTHER_READONLY_SECTIONS,
561         OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS, OTHER_GOT_RELOC_SECTIONS,
562         DATA_START_SYMBOLS, OTHER_SYMBOLS, DATA_PLT, PLT_BEFORE_GOT,
563         TEXT_DYNAMIC): Define.
564         * emulparams/hppa64linux.sh: Adjust comments.
565         * scripttempl/elf64hppa.sc: New file.
567 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
569         * configure: Regenerate.
571 2009-02-27  Dave Korn  <dave.korn.cygwin@gmail.com>
573         * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):  Set
574         default state of auto-import flag based on $target.
576 2009-02-24  Joseph Myers  <joseph@codesourcery.com>
578         * ld.texinfo (ARM): Document changed meaning of --stub-group-size.
579         * emultempl/armelf.em (hook_in_stub): Insert after the input section.
580         (elf32_arm_add_stub_section): Update comment.
581         (PARSE_AND_LIST_OPTIONS): Update help for --stub-group-size.
583 2009-02-24  Sandra Loosemore  <sandra@codesourcery.com>
585         * ld.texinfo (Options): Correct typos in example.  Recommend
586         using joined forms of syntax for passing options with arguments 
587         from a driver.
588         (-a): Use consistent syntax for documenting option arguments.
589         Clean up indexing and markup.
590         (-A/--architecture): Likewise.
591         (-f/--auxiliary): Likewise.
592         (-F/--filter): Likewise.
593         (-fini): Likewise.
594         (-G/--gpsize): Likewise.
595         (-h/-soname):Likewise.
596         (-init): Likewise.
597         (-l/--library): Likewise.
598         (-L/--library-path): Likewise.
599         (-m): Likewise.
600         (--defsym): Likewise.
601         (-I/--dynamic-linker): Likewise.
602         (-Map): Likewise.
603         (--oformat): Likewise.
604         (--retain-symbols-file): Likewise.
605         (-rpath): Likewise.
606         (-rpath-link): Likewise.
607         (--sort-common): Likewise.
608         (--sort-section): Likewise.
609         (--split-by-file): Likewise.
610         (--split-by-reloc): Likewise.
611         (--sysroot): Likewise.
612         (--section-start): Likewise.
613         (-Tbss, -Tdata, -Ttext): Likewise.
614         (-Ttext-segment): Likewise.
615         (--version-script): Likewise.
616         (--wrap): Likewise.
618 2009-02-18  Dave Korn  <dave.korn.cygwin@gmail.com>
620         * ld.texinfo:  Update to mention long section name options.
621         * NEWS:  Mention new behaviour and command-line options.
622         * pe-dll.c (pe_use_coff_long_section_names):  New global variable.
623         (pe_output_file_set_long_section_names):  New function.
624         (pe_dll_build_sections):  Call it on output BFDs.
625         (pe_exe_build_sections):  Likewise.
626         (pe_dll_fill_sections):  Likewise.
627         (pe_exe_fill_sections):  Likewise.
628         * pe-dll.h (pe_use_coff_long_section_names):  Declare extern.
629         (pe_output_file_set_long_section_names):  Add prototype.
630         * pep-dll.c (pe_use_coff_long_section_names):  Define pep_ alias.
631         (pe_output_file_set_long_section_names):  Likewise.
632         * pep-dll.h (pep_use_coff_long_section_names):  Declare extern.
633         (pep_output_file_set_long_section_names):  Add prototype.
634         * pe.em (OPTION_ENABLE_LONG_SECTION_NAMES):  New getopt value macro.
635         (OPTION_DISABLE_LONG_SECTION_NAMES):  Likewise.
636         (gld${EMULATION_NAME}_add_options):  Add new options to xtra_long[].
637         (gld_${EMULATION_NAME}_list_options):  Describe them.
638         (gld${EMULATION_NAME}_handle_option):  Set or clear global
639         pe_use_coff_long_section_names flag when options recognised.
640         (gld_${EMULATION_NAME}_after_open):  En/disable long section names
641         for main output bfd by calling pe_output_file_set_long_section_names.
642         * pep.em (enum options):  Extend enum with new getopt option values.
643         (gld${EMULATION_NAME}_add_options):  Add new options to xtra_long[].
644         (gld_${EMULATION_NAME}_list_options):  Describe them.
645         (gld${EMULATION_NAME}_handle_option):  Set or clear global
646         pe_use_coff_long_section_names flag when options recognised.
647         (gld_${EMULATION_NAME}_after_open):  En/disable long section names
648         for main output bfd by calling pep_output_file_set_long_section_names.
650 2009-02-16  Dave Korn  <dave.korn.cygwin@gmail.com>
652         * emultempl/pe.em (gld_${EMULATION_NAME}_after_open):  Don't emit
653         inadvertent .reloc sections caused by refactoring accident.
655 2009-02-16  Alan Modra  <amodra@bigpond.net.au>
657         * ldlang.c (process_insert_statements): ASSERT that output section
658         statements are in order.
660 2009-02-16  Alan Modra  <amodra@bigpond.net.au>
662         * ldlang.c (push_stat_ptr, pop_stat_ptr): New functions.
663         (stat_save, stat_save_ptr): New variables.
664         (lang_insert_orphan): Use push_stat_ptr and pop_stat_ptr.
665         (load_symbols): Likewise.  Delete dead "bad_load" code.
666         (open_input_bfds): Warn on script containing output sections.
667         (lang_enter_output_section_statement): Use push_stat_ptr.
668         (lang_enter_group): Likewise.
669         (lang_leave_output_section_statement): Use pop_stat_ptr.
670         (lang_leave_group): Likewise.
671         * ldlang.h (push_stat_ptr, pop_stat_ptr): Declare.
672         * ldctor.c (ldctor_build_sets): Use push_stat_ptr and pop_stat_ptr.
673         * emultempl/beos.em (gld_${EMULATION_NAME}_set_symbols): Likewise.
674         * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Likewise.
675         * emultempl/pep.em (gld_${EMULATION_NAME}_set_symbols): Likewise.
676         * emultempl/spuelf.em (spu_place_special_section): Likewise.
677         * emultempl/xtensaelf.em (ld_xtensa_insert_page_offsets): Likewise.
679 2009-02-09  Nathan Sidwell  <nathan@codesourcery.com>
681         Missing piece of 2009-01-26 commit
682         * ldlang.c (lang_process): Don't consider relocatable flag when
683         checking for overlap.
685 2009-02-05  Joseph Myers  <joseph@codesourcery.com>
687         * emulparams/m68kelf.sh: Add newline at end of file.
689 2009-02-04  Nick Clifton  <nickc@redhat.com>
691         PR 9805
692         * ld.texinfo (--allow-shlib-undefined): Correct description of
693         default settings and tidy up the rest of the entry.
695 2009-02-04  Alan Modra  <amodra@bigpond.net.au>
697         * emultempl/spuelf.em (spu_after_open): Don't combine .text.ia.*
698         during relocatable link.
700 2009-02-03  Nick Clifton  <nickc@redhat.com>
702         PR 9797
703         * ld.texinfo (Constants): Document the base-encoding suffixes
704         supported in linker scripts.
706 2009-02-03  Alan Modra  <amodra@bigpond.net.au>
708         * NEWS: Mention --as-needed change.
710 2009-02-03  Carlos O'Donell  <carlos@codesourcery.com>
712         * configure.in: AC_SUBST pdfdir.
713         * Makefile.am: Add install-pdf, install-pdf-am,
714         and install-pdf-recursive targets. Define pdf__strip_dir.
715         * po/Make-in: Add install-pdf target.
716         * configure: Regenerate.
717         * Makefile.in: Regenerate.
719 2009-01-31  Alan Modra  <amodra@bigpond.net.au>
721         * ld.texinfo (--as-needed): Update.
723 2009-01-29  Andrew Jenner  <andrew@codesourcery.com>
725         * emultempl/armelf.em: Correct formatting of help text for
726         --no-enum-size-warning option.
728 2009-01-26  Nathan Sidwell  <nathan@codesourcery.com>
730         * lexsup.c (parse_args): Set check_section_addresses to 1 or 0.
731         * ld.h (args_type): Make check_section_addresses a char.
732         * ldmain.c (main): Default check_section_addresses to -1. Check it
733         for relocatable links.
734         * ld.texinfo (--check-sections): Update documentation.
736 2009-01-26  Kai Tietz  <kai.tietz@onevision.com>
738         * pe-dll.c (tmp_seq2): New static variable.
739         (make_singleton_name_imp): New.
740         (make_import_fixup_entry): Use for v2 the _imp_<name> symbol and
741         avoid duplicate import table generation for same symbol.
742         (pe_create_runtime_relocator_reference): Make reference for
743         64-bit 8 bytes.
745 2009-01-21  Alan Modra  <amodra@bigpond.net.au>
747         * emultempl/spuelf.em (params): Init new field.
748         (OPTION_SPU_NON_IA_TEXT): Define.
749         (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --non-ia-text.
750         (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_SPU_NON_IA_TEXT.
752 2009-01-16  H.J. Lu  <hongjiu.lu@intel.com>
754         * lexsup.c (option_values): Add OPTION_TTEXT_SEGMENT.
755         (ld_options): Add -Ttext-segment.
756         (parse_args): Handle OPTION_TTEXT_SEGMENT.
758         * ld.texinfo: Document -Ttext-segment.
760         * NEWS: Mention -Ttext-segment.
762         * scripttempl/elf.sc (TEXT_START_ADDR): Use SEGMENT_START.
763         (SHLIB_TEXT_START_ADDR): Likewise.
765 2009-01-13  Alan Modra  <amodra@bigpond.net.au>
767         * emultempl/spu_icache.o_c: Regenerate.
769 2009-01-12  Alan Modra  <amodra@bigpond.net.au>
771         * emultempl/spuelf.em (params): Init new fields.
772         (num_lines_set, line_size_set, icache_mgr, icache_mgr_stream): New vars.
773         (spu_place_special_section): Adjust placement for soft-icache.  Pad
774         soft-icache section to a fixed size.  Clear addr_tree.
775         (spu_elf_load_ovl_mgr): Support soft-icache.  Map overlay manager
776         sections a little more intelligently.
777         (gld${EMULATION_NAME}_finish): Don't call spu_elf_build_stubs.
778         (OPTION_SPU_NUM_LINES): Rename from OPTION_SPU_NUM_REGIONS.
779         (OPTION_SPU_SOFT_ICACHE, OPTION_SPU_LINE_SIZE): Define.
780         (OPTION_SPU_LRLIVE): Define.
781         (PARSE_AND_LIST_LONGOPTS): Add new soft-icache options.
782         (PARSE_AND_LIST_OPTIONS): Likewise.
783         (PARSE_AND_LIST_ARGS_CASES): Handle them.
784         * emultempl/spu_icache.S: Dummy file.
785         * emultempl/spu_icache.o_c: Regenerate.
786         * Makefile.am (eelf32_spu.c): Depend on spu_icache.o_c.
787         (spu_icache.o_c): Add rule to build.
788         (CLEANFILES): Zap temp files.
789         (EXTRA_DIST): Add spu_icache.o_c.
790         * Makefile.in: Regenerate.
792 2009-01-08  Kai Tietz  <kai.tietz@onevision.com>
794         * pe.em (OPTION_USE_NUL_PREFIXED_IMPORT_TABLES): New.
795         (gld..._add_options): Add new option
796         --use-nul-prefixed-import-tables.
797         (gld..._handle_option): Likewise.
798         * pep.em: Same as for pe.em.
799         * ld.texinfo: Add new option documentation for
800         --use-nul-prefixed-import-tables.
801         * pe-dll.c (pe_use_nul_prefixed_import_tables): New.
802         (make_head): Make prefix leading zero prefix element for
803         idata$4 and idata$5 dependent to new flag.
804         (make_import_fixup_entry): Remove idata4/5 prefix.
805         * pe-dll.h (pe_use_nul_prefixed_import_tables): New.
806         * pep-dll.c (pe_use_nul_prefixed_import_tables): New.
807         * pep-dll.h (pep_use_nul_prefixed_import_tables): New.
808         * NEWS: Add new option.
810 2009-01-05  Kai Tietz  <kai.tietz@onevision.com>
812         * emultempl/pe.em: Prefix dollar characters to be outputed in
813         generated C file.
814         * emultempl/pep.em: Likewise.
816 2009-01-03  Dave Korn  <dave.korn.cygwin@gmail.com>
818         * NEWS:  Mention new feature --exclude-modules-for-implib.
819         * ld.texinfo:  Document new --exclude-modules-for-implib option.
820         * pe-dll.c (exclude_list_struct):  Change type member from int to
821         new enumeration exclude_type.
822         (pe_dll_add_excludes):  Accept exclude_type instead of int param.
823         (auto_export):  Replace magic constants by exclude_type values and
824         handle new choice EXCLUDEFORIMPLIB.
825         (pe_dll_generate_implib):  Accept a pointer to the link_info and
826         iterate all input BFDs looking for EXCLUDEFORIMPLIB modules; re-open
827         fresh BFDs for any found and link into import lib archive chain.
828         * pe-dll.h (exclude_type):  Add new enumerated type to replace magic
829         constants previously used for exclude_list_struct type member.
830         (pe_dll_add_excludes, pe_dll_generate_implib):  Update prototypes.
831         * pep-dll.h (exclude_type, pe_dll_add_excludes,
832         pe_dll_generate_implib):  Likewise to all the above.
833         * emultempl/pe.em (OPTION_EXCLUDE_MODULES_FOR_IMPLIB):  Define new
834         getopts long option code for new --exclude-modules-for-implib option.
835         (gld${EMULATION_NAME}_add_options):  Add new entry to xtra_long[].
836         (gld_${EMULATION_NAME}_list_options):  List usage for it.
837         (gld${EMULATION_NAME}_handle_option):  Use exclude_type enumerated
838         values when calling pe_dll_add_excludes, and handle EXCLUDEFORIMPLIB.
839         (gld_${EMULATION_NAME}_finish):  Pass pointer to link_info when
840         calling pe_dll_generate_implib.
841         * emultempl/pep.em (options):  Define new enumerated value for getopts
842         long option code for new --exclude-modules-for-implib option.
843         (gld${EMULATION_NAME}_add_options, gld_${EMULATION_NAME}_list_options,
844         gld${EMULATION_NAME}_handle_option, gld_${EMULATION_NAME}_finish):
845         Again, likewise to all the above.
847 2009-01-03  Dave Korn  <dave.korn.cygwin@gmail.com>
849         * pe-dll.c (autofilter_liblist):  Add entry for shared libgcc.
850         (libnamencmp):  New function.
851         (auto_export):  Use it in place of strncmp when filtering libraries.
853 For older changes see ChangeLog-2008
855 Local Variables:
856 mode: change-log
857 left-margin: 8
858 fill-column: 74
859 version-control: never
860 End: