* emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed): Ignore
[binutils-gdb.git] / ld / ChangeLog
index 37af7e8387b8250770ea9f02259f742cda95f4a7..c4d13d8a728becd643478eae0c3316da8e8b044a 100644 (file)
@@ -1,3 +1,217 @@
+2005-04-11  Alan Modra  <amodra@bigpond.net.au>
+
+       * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed): Ignore
+       as_needed libs that were not needed.
+       (gld${EMULATION_NAME}_check_needed): Likewise.
+
+2005-04-07  Nick Clifton  <nickc@redhat.com>
+
+       * emultempl/m68kcoff.em: Include ldexp.h and ldlang.h so that
+       ldfile.h can use the lang_input_statement type. 
+
+2005-04-06  Jakub Jelinek  <jakub@redhat.com>
+
+       * ldlang.c: Formatting.
+       (walk_wild_consider_section): Remember return value from wildcardp.
+       (is_simple_wild): Use strcspn instead of 2 strpbrk calls and strlen.
+       (wild_spec_can_overlap): Use strcspn instead of strpbrk and strlen.
+
+2005-04-06  Robert O'Callahan  <rocallahan@novell.com>
+
+       * ld.h (lean_section_userdata_type): Remove.
+       (fat_section_userdata_type): Remove file field.
+       (SECTION_USERDATA_SIZE): Remove.
+       * ldlang.c (init_os): Eliminate initialization of unused
+       lean_section_userdata_type.
+
+       * ldlang.h (callback_t, walk_wild_section_handler_t): New
+       typedefs.
+       (struct lang_wild_statement_struct): Add walk_wild_section_handler
+       and handler_data fields.
+       * ldlang.c (callback_t): Removed.
+       (walk_wild_consider_section, walk_wild_section_general,
+       section_iterator_callback, find_section, is_simple_wild,
+       match_simple_wild, walk_wild_section_specs1_wild0,
+       walk_wild_section_specs1_wild1, walk_wild_section_specs2_wild1,
+       walk_wild_section_specs3_wild2, walk_wild_section_specs4_wild2,
+       wild_spec_can_overlap, analyze_walk_wild_section_handler): New
+       functions.
+       (lang_add_wild): Call analyze_walk_wild_section_handler.
+       (walk_wild_section): Renamed to walk_wild_section_general and
+       created a wrapper function.
+       (section_iterator_callback_data): New typedef.
+
+2005-04-04  Nick Clifton  <nickc@redhat.com>
+
+       * configure.in: Add a check for <unistd.h> providing a prototype
+       for getopt() which is compatible with the one in
+       include/getopt.h.  If so then define HAVE_DECL_GETOPT.
+       * configure: Regenerate.
+       * config.in (HAVE_DECL_GETOPT): Add.
+       * ldemul.c: Include config.h
+       * lexsup.c: Likewise.
+       * emultempl/elf32.sc: Likewise.
+
+2005-03-29  Alan Modra  <amodra@bigpond.net.au>
+
+       * emultempl/elf32.em (gld${EMULATION_NAME}_layout_sections_again):
+       New function, extracted from static void gld${EMULATION_NAME}_finish.
+       (gld${EMULATION_NAME}_strip_empty_sections): Likewise.
+       (gld${EMULATION_NAME}_provide_init_fini_syms): Likewise.
+       * emultempl/ppc64elf.em: Revert last change.
+       (ppc_layout_sections_again): Use
+       gld${EMULATION_NAME}_layout_sections_again.
+       (ppc_finish): Don't call gld${EMULATION_NAME}_finish.  Instead call
+       gld${EMULATION_NAME}_strip_empty_sections and
+       gld${EMULATION_NAME}_provide_init_fini_syms.
+       * emultempl/hppaelf.em: Similarly.
+
+2005-03-29  Alan Modra  <amodra@bigpond.net.au>
+
+       * emultempl/ppc64elf.em (need_laying_out): Delete.  Remove all refs.
+       (ppc_finish): Don't call bfd_elf_discard_info.
+       * emultempl/hppaelf.em: Similarly.
+
+2005-03-24  Nick Clifton  <nickc@redhat.com>
+
+       * po/fr.po: Updated French translation.
+
+2005-03-23  Mike Frysinger  <vapier@gentoo.org>
+           Nick Clifton  <nickc@redhat.com>
+
+       * configure.host: Accept any C library to accompany a GNU Linux
+       implementation, not just the GNU C library.
+       * configure.tgt: Likewise.
+       * emultempl/elf32.em: Likewise.
+
+2005-03-22  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols): New
+       (gld${EMULATION_NAME}_finish): Call
+       gld${EMULATION_NAME}_provide_bound_symbols to provide
+       __preinit_array_start, __preinit_array_end, __init_array_start,
+       __init_array_end, __fini_array_start and __fini_array_end.
+
+       * scripttempl/elf.sc: Don't provide __preinit_array_start,
+       __preinit_array_end, __init_array_start, __init_array_end,
+       __fini_array_start nor __fini_array_end.
+
+2005-03-23  Alan Modra  <amodra@bigpond.net.au>
+
+       * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Set
+       SEC_EXCLUDE on .gnu.warning sections.
+
+2005-03-22  Alan Modra  <amodra@bigpond.net.au>
+
+       * scripttempl/elf.sc (SBSS): Don't provide sbss start and end syms.
+
+2005-03-21  Alan Modra  <amodra@bigpond.net.au>
+
+       * emultempl/ppc32elf.em (gld${EMULATION_NAME}_after_allocation): New
+       function.
+       (LDEMUL_AFTER_ALLOCATION): Define.
+
+2005-03-21  Alan Modra  <amodra@bigpond.net.au>
+
+       * emultempl/ppc64elf.em (ppc_finish): Rename from
+       gld${EMULATION_NAME}_finish.  Call gld${EMULATION_NAME}_finish.
+       (LDEMUL_FINISH): Update.
+       * emultempl/hppaelf.em (hppaelf_finish, LDEMUL_FINISH): Likewise.
+       * emultempl/m68hc1xelf.em (m68hc11elf_finish, LDEMUL_FINISH): Likewise.
+
+2005-03-18  Julian Brown  <julian@codesourcery.com>
+
+       * scripttempl/armbpapi.sc (.rel.dyn): Add .rel.init_array,
+       .rel.fini_array.
+       (.rela.dyn): Add .rela.init_array, .rela.fini_array.
+       (SECTIONS): Add .rel.other, .rela.other, .reli.other after PLT relocs.
+
+2005-03-18  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Don't set
+       bfd_section when removing unused empty output sections for
+       non-relocatable link.
+
+2005-03-19  Alan Modra  <amodra@bigpond.net.au>
+
+       * ldlang.c (lang_insert_orphan): Use old section_tail rather than
+       traversing the bfd section list to find pointer to new section.
+
+2005-03-18  Alan Modra  <amodra@bigpond.net.au>
+
+       * scripttempl/elf.sc: When CREATE_SHLIB, put .sdata2 and .sbss2
+       input sections into .sdata and .sbss output respectively.
+
+2005-03-16  David Heine  <dlheine@tensilica.com>
+           Bob Wilson  <bob.wilson@acm.org>
+
+       * ldlang.c (IGNORE_SECTION): Remove check for zero size.
+       (lang_check_section_addresses): Ignore zero size sections here.
+
+2005-03-16  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Remove
+       unused empty output sections for non-relocatable link.
+
+       * ld.h (args_type): Remove gc_sections.
+
+       * ldlang.c (lang_mark_used_section): New.
+       (lang_gc_sections): Use link_info.gc_sections instead of
+       command_line.gc_sections.
+       * ldmain.c (main): Likewise.
+       * lexsup.c (parse_args): Likewise.
+       * ldlang.c (lang_process): Call lang_mark_used_section.
+
+       * ldmain.c (main): Initialize link_info.gc_sections to FALSE.
+
+2005-03-16  Nick Clifton  <nickc@redhat.com>
+           Ben Elliston  <bje@au.ibm.com>
+
+       * configure.in (werror): New switch: Add -Werror to the
+       compiler command line.  Enabled by default.  Disable via
+       --disable-werror.
+       * configure: Regenerate.
+
+2005-03-16  Alan Modra  <amodra@bigpond.net.au>
+
+       * emulparams/elf32ppclinux.sh (OTHER_READWRITE_SECTION): Delete.
+       (OTHER_RELRO_SECTIONS): Set this instead.
+
+2005-03-15  Nick Clifton  <nickc@redhat.com>
+
+       * NEWS: Add cutoff for changes in 2.16 release.
+
+2005-03-15  Mikkel Krautz  <krautz@gmail.com>
+
+       * configure.tgt (x86_64-elf): Add target.
+
+2005-03-15  Alan Modra  <amodra@bigpond.net.au>
+
+       * po/es.po: Commit new Spanish translation.
+
+2005-03-14  Alan Modra  <amodra@bigpond.net.au>
+
+       * ldexp.c (exp_fold_tree): Ensure return value is initialized.
+       Tidy etree_assert case.
+
+2005-03-14  Alan Modra  <amodra@bigpond.net.au>
+
+       * po/tr.po: Commit new Turkish translation.
+
+2005-03-11  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * Makefile.am: Remove references to em68klynx.o and esparclynx.o.
+       * Makefile.in: Regenerated.
+       * emulparams/m68klynx.sh, emulparams/sparclynx.sh: Remove.
+
+2005-03-07  Nick Clifton  <nickc@redhat.com>
+
+       * po/fr.po: Updated translation.
+
+2005-03-05  Alan Modra  <amodra@bigpond.net.au>
+
+       * po/ld.pot: Regenerate.
+
 2005-03-02  Jan Beulich  <jbeulich@novell.com>
 
        * ldmain.c (remove_output): Use unlink_if_ordinary instead of unlink.