* elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Use an
[binutils-gdb.git] / bfd / ChangeLog
index 343d6d00e6d4283418ba43501935541b46e61369..15169f24774ecd5e7005a4ecf920773683d303c9 100644 (file)
@@ -1,3 +1,142 @@
+2005-01-17  Richard Sandiford  <rsandifo@redhat.com>
+
+       * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Use an
+       assert-style REQUIRE() macro to handle sanity checks.
+
+2005-01-17  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * dwarf2.c (dwarf2_debug): Move info_ptr_unit to ...
+       (comp_unit): Here.
+       (read_unsigned_leb128): Removed.
+       (read_signed_leb128): Removed.
+       (find_abstract_instance_name): Updated.
+       (parse_comp_unit): Accept info_ptr_unit.
+       (_bfd_dwarf2_find_nearest_line): Set info_ptr_unit for each
+       comp unit and pass it to parse_comp_unit.
+
+       * elf-eh-frame.c (read_unsigned_leb128): Moved to ...
+       (read_signed_leb128): Moved to ...
+       * libbfd.c: Here.
+
+       * libbfd-in.h (read_unsigned_leb128): New prototype.
+       (read_signed_leb128): Likewise.
+       * libbfd.h: Regenerated.
+
+2005-01-17  Andrew Stubbs  <andrew.stubbs@st.com>
+           Nick Clifton   <nickc@redhat.com>
+
+       * cpu-sh.c (bfd_to_arch_table): Change arch_sh1_up to arch_sh_up,
+       arch__sh4_nofp_up to arch_sh4_nofpu_up and arch_sh4a_nofp_up to
+       arch_sh4a_nofpu_up in order to match the external names and make the
+       testsuite's job easier.
+       * archuires.c: Rename bfd_mach_sh2a_fake? to more meaningful
+       names.
+       * bfd-in2.h: Regenerate.
+
+2005-01-15  Andrew Cagney  <cagney@gnu.org>
+
+       * bfd.m4: New file.
+       * acinclude.m4: Move BFD_NEED_DECLARATION,
+       BFD_HAVE_SYS_PROCFS_TYPE and BFD_HAVE_SYS_PROCFS_TYPE_MEMBER to
+       the new file bfd.m4.  Include ../bfd/bfd.m4.
+       * configure: Re-generate.
+       
+2005-01-12  Alan Modra  <amodra@bigpond.net.au>
+
+       * elf32-ppc.c (ppc_elf_howto_raw): Delete RELAX32* entries.
+       (ppc_elf_relax_section): Use PLT variants of RELAX32 relocs for
+       reaching PLT.
+       (ppc_elf_relocate_section): Handle R_PPC_RELAX32_PLT and
+       R_PPC_RELAX32PC_PLT.
+
+2005-01-11  Alan Modra  <amodra@bigpond.net.au>
+
+       * elf64-ppc.c (ppc64_elf_gc_sweep_hook): Follow indirect and warning
+       symbols.
+       * elf32-arm.c (elf32_arm_gc_sweep_hook): Likewise.
+       * elf32-cris.c (cris_elf_gc_sweep_hook): Likewise.
+       * elf32-hppa.c (elf32_hppa_gc_sweep_hook): Likewise.
+       * elf32-i386.c (elf_i386_gc_sweep_hook): Likewise.
+       * elf32-m32r.c (m32r_elf_gc_sweep_hook): Likewise.
+       * elf32-m68k.c (elf_m68k_gc_sweep_hook): Likewise.
+       * elf32-ppc.c (ppc_elf_gc_sweep_hook): Likewise.
+       * elf32-s390.c (elf_s390_gc_sweep_hook): Likewise.
+       * elf32-sh.c (sh_elf_gc_sweep_hook): Likewise.
+       * elf32-sparc.c (elf32_sparc_gc_sweep_hook): Likewise.
+       * elf32-vax.c (elf_vax_gc_sweep_hook): Likewise.
+       * elf32-xtensa.c (elf_xtensa_gc_sweep_hook): Likewise.
+       * elf64-s390.c (elf_s390_gc_sweep_hook): Likewise.
+       * elf64-x86-64.c (elf64_x86_64_gc_sweep_hook): Likewise.
+
+2005-01-11  Alan Modra  <amodra@bigpond.net.au>
+
+       * elf32-ppc.c (ppc_elf_create_dynamic_sections): Correct
+       .dynsbss flags.
+
+2005-01-10  Inderpreet Singh <inderpreetb@noida.hcltech.com>
+
+       * archures.c: Define bfd_mach_maxq10 and bfd_mach_maxq20.
+       * bfd-in2.h:  Regenerate.
+       * coffcode.h (coff_set_arch_mach_hook, coff_set_flags): Add code
+       to support these new machine values.
+       * cpu-maxq.c (bfd_maxq10_arch): New architecture definition for
+       the maxq10.
+       (bfd_maxq_arch): Update values for the maxq20.
+
+2005-01-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
+
+       * elf64-sparc.c (sparc64_elf_adjust_dynamic_symbol): When linking a
+       non-shared object, do not reserve space in .plt and .rela.plt for
+       regular symbols neither defined nor referenced in shared objects.
+
+2005-01-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
+
+       * elf32-sparc.c (elf32_sparc_link_hash_table_create): Use bfd_zmalloc
+       to zero the structure.
+       (create_got_section): Use BFD_ASSERT instead of abort.
+       * elf64-sparc.c (struct sparc64_elf_link_hash_table): New 'sgot' and
+       'srelgot' fields.
+       (create_got_section): New function.
+       (sparc64_elf_create_dynamic_sections): Likewise.
+       (sparc64_elf_check_relocs): Invoke create_got_section instead of
+       _bfd_elf_create_got_section.  Use the sgot and srelgot shortcuts.
+       (sparc64_elf_size_dynamic_sections): Use the srelgot shortcut.
+       (sparc64_elf_relocate_section): Use the sgot and srelgot shortcuts.
+       (sparc64_elf_finish_dynamic_symbol): Likewise.
+       (sparc64_elf_finish_dynamic_sections): Use the sgot shortcut.
+       (elf_backend_create_dynamic_sections): Define to
+       sparc64_elf_create_dynamic_sections.
+
+2005-01-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
+
+       * elf32-sparc.c (elf32_sparc_omit_section_dynsym): New function.
+       (elf_backend_omit_section_dynsym): Define to it.
+       * elf64-sparc.c (sparc64_elf_omit_section_dynsym): New function.
+       (elf_backend_omit_section_dynsym): Define to it.
+
+2005-01-07  Jakub Jelinek  <jakub@redhat.com>
+
+       * bfd/elf.c (INCLUDE_SECTION_IN_SEGMENT): Don't put empty sections into
+       PT_DYNAMIC segment, unless .dynamic.
+
+2005-01-06  Paul Brook  <paul@codesourcery.com>
+
+       * config.bfd: Add entry for arm-*-vxworks and arm-*-windiss.
+       * configure.in: Add bfd_elf32_{big,little}arm_vxworks_vec.
+       * configure: Regenerate.
+       * elf32-arm.c: Add VxWorks target bfd.
+       (USE_REL): Remove.
+       (elf32_arm_link_hash_table): Add use_rel.
+       (elf32_arm_link_hash_table_create, elf32_arm_final_link_relocate,
+       elf32_arm_relocate_section): Replace USE_REL with runtime check.
+       Correct offset calculation for RELA case.
+       (elf_backend_may_use_rel_p, elf_backend_may_use_rela_p,
+       elf_backend_default_use_rela_p, elf_backend_rela_normal): Define.
+       (elf32_arm_vxworks_link_hash_table_create): New function.
+       * targets.c (bfd_elf32_bigarm_vxworks_vec): Add declaration.
+       (bfd_elf32_littlearm_vxworks_vec): Ditto.
+       (_bfd_target_vector): Add bfd_elf32_{big,little}arm_vxworks_vec.
+
 2005-01-06  Alan Modra  <amodra@bigpond.net.au>
 
        * elf64-ppc.c (struct ppc_link_hash_table): Add no_multi_toc and