* elf-hppa.h (elf_hppa_relocate_section): Look up dyn_h for undefweak.
[binutils-gdb.git] / bfd / ChangeLog
index 0a3143e11c24310571ded5b38d220bea21d6687d..bf48d6235959c07ff63cdf49914a5eefa7a4b6c3 100644 (file)
@@ -1,3 +1,275 @@
+2003-07-30  Randolph Chung  <tausq@debian.org>
+
+       * elf-hppa.h (elf_hppa_relocate_section): Look up dyn_h for undefweak.
+       * elf64-hppa.c (elf64_hppa_finalize_dlt): Check h->root.type.
+
+2003-07-30  Alan Modra  <amodra@bigpond.net.au>
+
+       * elf.c: Convert to C90, remove unnecessary prototypes and casts.
+       Replace PTR with void *.  Formatting.
+       (_bfd_elf_assign_file_position_for_section): Remove INLINE.
+       (make_mapping): Likewise.
+
+2003-07-29  Alan Modra  <amodra@bigpond.net.au>
+
+       * elf64-ppc.c (func_desc_adjust): Give linker created function
+       descriptor symbols a size and type.
+       (ppc64_elf_relocate_section): Correct lq insn test.
+
+2003-07-28  Eric Christopher  <echristo@redhat.com>
+
+       * elf32-ppc.c (R_PPC_RELAX32): New relocation.
+       (ppc_elf_install_value): New function.
+       (ppc_elf_sort_rela): Remove.
+       (ppc_elf_relax_section): Rewrite. Remove old relaxation
+       and replace with out of range branch stubs.
+       (ppc_elf_relocate_section): Handle R_PPC_RELAX32.
+
+2003-07-29  Alexandre Oliva  <aoliva@redhat.com>
+
+       * elf-m10300.c (mn10300_elf_relax_section): Take symbol hash table
+       from input_bfd.
+
+2003-07-28  Alan Modra  <amodra@bigpond.net.au>
+
+       * elf.c (special_sections): Set attributes for .got and .plt.
+
+2003-07-27  Alan Modra  <amodra@bigpond.net.au>
+
+       * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Ensure no copy relocs
+       on function descriptors.
+       (ELIMINATE_COPY_RELOCS): Expand comment.
+       (ppc64_elf_special_sections): Move.  Don't include non-ppc64 sections.
+       Do include ".toc1".
+
+2003-07-25  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * elf.c (_bfd_elf_new_section_hook): Set the default section
+       type to SHT_NULL.
+       (elf_fake_sections): Set the section type based on asect->flags
+       if it is SHT_NULL. Don't abort on processor specific section
+       types.
+
+2003-07-25  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * bfd-in2.h: Regenerated.
+
+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