bfd/
[binutils-gdb.git] / bfd / ChangeLog
index cfe5d3c68a10edd649bdf2682add878beb04d9f5..643f13e01006bcb99b8668451e9af6ced2517aaf 100644 (file)
@@ -1,3 +1,278 @@
+2003-07-25  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * elf-bfd.h (bfd_elf_special_section): New.
+       (elf_backend_data): Add special_sections, a pointer to
+       bfd_elf_special_section.
+       (elf_section_type). New.
+       (elf_section_flags): New.
+       (_bfd_elf_get_sec_type_attr): New.
+
+       * elf.c (_bfd_elf_make_section_from_shdr): Always use the
+       real section type/flags.
+       (special_sections): New.
+       (get_special_section): New.
+       (_bfd_elf_get_sec_type_attr): New.
+       (_bfd_elf_new_section_hook): Check special_section to set
+       elf_section_type and elf_section_flags.
+       (elf_fake_sections): Don't use section name to set ELF section
+       data.
+
+       * elf32-m32r.c (m32r_elf_special_sections): New.
+       (elf_backend_special_sections): Defined.
+
+       * elf32-m68hc11.c (elf32_m68hc11_special_sections): New.
+       (elf_backend_special_sections): Defined.
+
+       * elf32-mcore.c (mcore_elf_special_sections): New.
+       (elf_backend_special_sections): Defined.
+
+       * elf32-ppc.c (ppc_elf_special_sections): New.
+       (elf_backend_special_sections): Defined.
+
+       * elf32-sh64.c (sh64_elf_special_sections): New.
+       (elf_backend_special_sections): Defined.
+
+       * elf32-v850.c (v850_elf_special_sections): New.
+       (elf_backend_special_sections): Defined.
+
+       * elf32-xtensa.c (elf_xtensa_special_sections): New.
+       (elf_backend_special_sections): Defined.
+
+       * elf64-alpha.c (elf64_alpha_special_sections): New.
+       (elf_backend_special_sections): Defined.
+
+       * elf64-hppa.c (elf64_hppa_special_sections): New.
+       (elf_backend_special_sections): Defined.
+
+       * elf64-ppc.c (ppc64_elf_special_sections): New.
+       (elf_backend_special_sections): Defined.
+
+       * elf64-sh64.c (sh64_elf64_special_sections): New.
+       (elf_backend_special_sections): Defined.
+
+       * elfxx-ia64.c (elfNN_ia64_special_sections): New.
+       (elf_backend_special_sections): Defined.
+
+       * elfxx-mips.c (_bfd_mips_elf_special_sections): New.
+
+       * elfxx-mips.h (_bfd_mips_elf_special_sections): New.
+       (elf_backend_special_sections): Defined.
+
+       * elfxx-target.h (elf_backend_special_sections): New. Default
+       to NULL.
+       (elfNN_bed): Initialize special_sections.
+
+       * section.c (bfd_abs_section): Remove const.
+       (bfd_und_section): Likewise.
+       (bfd_com_section): Likewise.
+       (bfd_ind_section): Likewise.
+
+2003-07-24  Nick Clifton  <nickc@redhat.com>
+
+       * coff-arm.c (EXTRA_S_FLAGS): Include SEC_CODE so that code
+       sections are assigned the LOAD attribute.
+
+2003-07-25  Kaz Kojima  <kkojima@rr.iij4u.or.jp>  
+
+       * elf32-sh.c: Convert to C90.  Replace PTR with void *.
+       * elf32-sh64-com.c: Likewise.
+       * elf32-sh64.c: Likewise.
+       * elf32-sh64.h: Likewise.
+       * elf64-sh64.c: Likewise.
+
+2003-07-24  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
+
+       * elf32-sh.c (sh_elf_adjust_dynamic_symbol): Use SYMBOL_CALLS_LOCAL.
+       (allocate_dynrelocs): Likewise.
+       (sh_elf_relocate_section): Likewise. Use SYMBOL_REFERENCES_LOCAL.
+       (sh_elf_finish_dynamic_symbol): Use SYMBOL_REFERENCES_LOCAL.
+
+2003-07-24  Nick Clifton  <nickc@redhat.com>
+
+       * po/fr.po: Updated French translation.
+
+2003-07-23  Bob Wilson  <bob.wilson@acm.org>
+
+       * elf32-xtensa.c (xtensa_elf_dynamic_symbol_p): Make inline and move
+       near the beginning of the file.  Swap order of arguments.  Call
+       _bfd_elf_dynamic_symbol_p with "ignore_protected" set to 0.
+       (elf_xtensa_fix_refcounts): Adjust xtensa_elf_dynamic_symbol_p call.
+       (elf_xtensa_relocate_section): Likewise.
+       (shrink_dynamic_reloc_sections): Likewise.
+
+2003-07-23  Bob Wilson  <bob.wilson@acm.org>
+
+       * elf32-xtensa.c (plt_reloc_count): Fix typo in comment.
+       (elf_xtensa_size_dynamic_sections): Use elf_discarded_section.
+       (elf_xtensa_combine_prop_entries): Avoid returning non-zero without
+       first printing an error message.
+       (elf_xtensa_finish_dynamic_sections): Likewise.
+       (elf_xtensa_discard_info_for_section): Adjust size of .got.loc when
+       discarding literal table entries.
+       (elf_xtensa_merge_private_bfd_data): Remove newline from error message.
+       (elf_xtensa_do_asm_simplify): Likewise.
+
+2003-07-23  Stephane Carrez  <stcarrez@nerim.fr>
+
+       * elf32-m68hc1x.c (elf32_m68hc11_size_stubs): Avoid crash when
+       we have a local symbol in common section.
+
+2003-07-22  H.J. Lu <hongjiu.lu@intel.com>
+
+       * elflink.c (_bfd_elf_dynamic_symbol_p): Don't return TRUE for
+       weak symbols.
+
+2003-07-22  Nick Clifton  <nickc@redhat.com>
+
+       * coffcode.h (coff_slurp_symbol_table): Add C_TCSYM and C_ECOML to
+       expected RS6000 storage classes.
+
+2003-07-21  H.J. Lu <hongjiu.lu@intel.com>
+
+       * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Mark
+       output_bfd unused to silence gcc.
+
+2003-07-21  Nick Clifton  <nickc@redhat.com>
+
+       * po/sv.po: Updated Swedish translation.
+
+2003-07-21  Alan Modra  <amodra@bigpond.net.au>
+
+       * elf-bfd.h (SYMBOL_REFERENCES_LOCAL, SYMBOL_CALLS_LOCAL): Use..
+       (_bfd_elf_symbol_refs_local_p): ..this.  Declare.
+       * elflink.c (_bfd_elf_symbol_refs_local_p): New function.
+       * elf32-i386.c (elf_i386_relocate_section): Remove h NULL test
+       now done in _bfd_elf_symbol_refs_local_p.
+       * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
+       * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
+       * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
+
+2003-07-18  H.J. Lu <hongjiu.lu@intel.com>
+
+       * elflink.c (_bfd_elf_dynamic_symbol_p): Undo the last change.
+
+2003-07-18  H.J. Lu <hongjiu.lu@intel.com>
+
+       * elf-bfd.h (SYMBOL_REFERENCES_LOCAL): Fix a typo.
+       (SYMBOL_CALLS_LOCAL): Likewise.
+
+       * elflink.c (_bfd_elf_dynamic_symbol_p): Return TRUE
+       immediately if symbol isn't defined locally.
+
+2003-07-18  Richard Henderson  <rth@redhat.com>
+
+       * elflink.c (_bfd_elf_dynamic_symbol_p): New.
+       * elf-bfd.h (_bfd_elf_dynamic_symbol_p): Declare it.
+       (SYMBOL_REFERENCES_LOCAL, SYMBOL_CALLS_LOCAL): Use it.
+       * elf32-xtensa.c (xtensa_elf_dynamic_symbol_p): Likewise.
+       * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise.
+       * elf64-hppa.c (elf64_hppa_dynamic_symbol_p): Likewise.
+       * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Likewise.
+       Update all callers to provide the relocation being resolved.
+
+2003-07-17  Shaun Jackman <sjackman@pathwayconnect.com>
+
+       * config.bfd (arm-wince-pe): Add -DARM_COFF_BUGFIX to
+       targ_cflags.
+
+2003-07-17  Nick Clifton  <nickc@redhat.com>
+
+       * po/es.po: New Spanish translation.
+       * po/sv.po: New Swedish translation.
+       * po/opcodes.pot: Regenerate.
+
+2003-07-16  Richard Henderson  <rth@redhat.com>
+
+       * config.bfd, configure.host, configure.in: Remove ia64-aix support.
+       * elfxx-ia64.c, targets.c: Likewise.
+
+2003-07-16  Richard Henderson  <rth@redhat.com>
+
+       * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Properly return false
+       for symbols defined locally plus -Bsymbolic.  Tidy logic.
+
+2003-07-15  Richard Sandiford  <rsandifo@redhat.com>
+
+       * archures.c (bfd_mach_mips7000): New.
+       * bfd-in2.h: Regenerated.
+       * cpu-mips.c (arch_info_struct): Add an entry for mips:7000.
+       * elfxx-mips.c (mips_set_isa_flags): Handle bfd_mach_mips7000.
+       (mips_mach_extensions): Add an entry for it.
+
+2003-07-14  Nick Clifton  <nickc@redhat.com>
+
+       * po/tr.po: Update with latest version.
+       * po/SRC-POTFILES.in: Regenerate.
+       * po/bfd.pot: Regenerate.
+       * Makfile.in: Regenerate.
+       * configure: Regenerate.
+
+2003-07-12  Jeff Baker  <jbaker@qnx.com>
+
+       * bfd/config.bfd (__QNXTARGET__): Define for Neutrino architectures.
+       * bfd/elf32-arm.h (ELF_MAXPAGESIZE): Set to 4k for Neutrino.
+       * bfd/elf32-sh.c (ELF_MAXPAGESIZE): Set to 4k for Neutrino.
+       * bfd/elf32-ppc.c (ELF_MAXPAGESIZE): Set to 4k for Neutrino.
+
+2003-07-12  Jeff Muizelaar  <muizelaar@rogers.com>
+
+       * coffcode.h (coff_set_section_contents): Set the
+       IMAGE_FILE_32BIT_MACHINE flag for PE targets.
+
+2003-07-11  Richard Sandiford  <rsandifo@redhat.com>
+
+       * bfd-in.h (bfd_h8300_pad_address): Declare.
+       * bfd-in2.h: Regenerate.
+       * cpu-h8300.c (bfd_h8300_pad_address): New function.
+       * coff-h8300.c (h8300_reloc16_estimate): Use it to canonicalize
+       addresses before checking whether they can be relaxed.
+       (h8300_reloc16_extra_cases): Likewise for the R_MOVL2 sanity check.
+       Don't complain about overflows in general 8-bit relocations.
+       * elf32-h8300.c (elf32_h8_relax_section): Use bfd_h8300_pad_address.
+       Fix handling of R_H8_DIR24A8.
+
+2003-07-11  Richard Sandiford  <rsandifo@redhat.com>
+
+       * elf32-h8300.c: Convert function prototypes and definitions
+       to C90 syntax.
+       * coff-h8300.c: Likewise.
+       * cpu-h8300.c: Likewise.
+
+2003-07-11  Alan Modra  <amodra@bigpond.net.au>
+
+       * po/SRC-POTFILES.in: Regenerate.
+       * po/bfd.pot: Likewise.
+
+2003-07-10  Bob Wilson  <bob.wilson@acm.org>
+
+       * elf32-xtensa.c (elf_xtensa_create_dynamic_sections): Create new
+       .got.loc section.  Do not set SEC_ALLOC or SEC_LOAD flags for the
+       .xt.lit.plt section.
+       (elf_xtensa_size_dynamic_sections): Set size of the .got.loc section
+       and allocate memory for it.
+       (elf_xtensa_combine_prop_entries): Copy contents of .xt.lit output
+       section to the .got.loc section.
+       (elf_xtensa_finish_dynamic_sections): Fix up call to
+       elf_xtensa_combine_prop_entries and set DT_XTENSA_GOT_LOC_OFF to
+       the address of .got.loc.
+       (relax_property_section): Shrink .got.loc to match changes in any
+       literal table section.
+       (xtensa_is_property_section): Change to match
+       xtensa_get_property_section_name.
+       (xtensa_is_littable_section): New.
+
+2003-07-10  H.J. Lu <hongjiu.lu@intel.com>
+
+       * elfxx-ia64.c (IA64_HOWTO): Set dst_mask to -1 instead of
+       -1LL.
+
+2003-07-10  Alan Modra  <amodra@bigpond.net.au>
+
+       * Makefile.am (BFD32_BACKENDS): Add elf32-am33lin.lo.
+       (BFD32_BACKENDS_CFILES): elf32-am33lin.c not elf32-am33lin.lo.
+       Run "make dep-am".
+       * Makefile.in: Regenerate.
+
 2003-07-10  Alexandre Oliva  <aoliva@redhat.com>
 
        2001-09-12  Alexandre Oliva  <aoliva@redhat.com>