Fix compile time warnings from a GCC 4.0 compiler
[deliverable/binutils-gdb.git] / bfd / ChangeLog
index ad9a7c666dccecbae94241b990875592d74dbcfc..67a8e7955991927ae6a1a742375dbdbbc5ad1ace 100644 (file)
@@ -1,3 +1,206 @@
+2005-07-05  Nick Clifton  <nickc@redhat.com>
+
+       * elf64-ppc.c (ppc64_elf_info_to_howto): Fix typo.
+
+2005-05-07  Paul Brook  <paul@codesourcery.com>
+
+       * config.bfd: Add separate case for ppc-vxworks.
+       * configure: Regenerate.
+       * configure.in: Include elf-vxworks.lo on ppc targets.
+       * elf-vxworks.c (elf_vxworks_final_write_processing): Handle
+       .rela.plt.unloaded.
+       * elf32-ppc.c: Add VxWorks target vec.  Include elf-vxworks.h.
+       (PLT_ENTRY_SIZE, PLT_INITIAL_ENTRY_SIZE, PLT_SLOT_SIZE): Remove.
+       (VXWORKS_PLT_ENTRY_SIZE, ppc_elf_vxworks_plt_entry,
+       ppc_elf_vxworks_pic_plt_entry, VXWORKS_PLT_INITIAL_ENTRY_SIZE,
+       ppc_elf_vxworks_plt0_entry, ppc_elf_vxworks_pic_plt0_entry,
+       VXWORKS_PLT_NON_JMP_SLOT_RELOCS, VXWORKS_PLTRESOLVE_RELOCS,
+       VXWORKS_PLTRESOLVE_RELOCS_SHLIB): New.
+       (ppc_elf_link_hash_table): Add srelplt2, sgotplt, hgot, hplt,
+       is_vxworks, plt_entry_size, plt_slot_size, plt_initial_entry_size.
+       (ppc_elf_link_hash_table_create): Initialize hadtab plt fields.
+       (ppc_elf_create_got): Create .got.plt for VxWorks.
+       (ppc_elf_create_dynamic_sections): Create unloaded plt relocation
+       section for VxWorks.
+       (ppc_elf_select_plt_layout): Handle VxWorks plt format.
+       (allocate_got): VxWorks does not need a got header.
+       (allocate_dynrelocs): Handle VxWorks plt format.
+       (ppc_elf_size_dynamic_sections): Save _G_O_T_ and _P_L_T_ symbols for
+       VxWorks.  Handle VxWorks plt/got.
+       (ppc_elf_finish_dynamic_sections): Fill in VxWorks plt.
+       (ppc_elf_vxworks_special_sections): New.
+       (ppc_elf_vxworks_link_hash_table_create,
+       ppc_elf_vxworks_add_symbol_hook,
+       elf_i386_vxworks_link_output_symbol_hook,
+       ppc_elf_vxworks_final_write_processing): New functions.
+       * targets.c (bfd_elf32_powerpc_vxworks_vec): Declare.
+       (_bfd_target_vector): Use it.
+
+2005-07-05  Jakub Jelinek  <jakub@redhat.com>
+
+       * libbfd-in.h (struct artdata): Add extended_names_size field.
+       * libbfd.h: Rebuilt.
+       * coff-rs600.c (_bfd_xcoff_archive_p): Don't clear fields in freshly
+       allocated object by bfd_zalloc.
+       * coff64-rs6000.c (xcoff64_archive_p): Likewise.
+       * ecoff.c (_bfd_ecoff_archive_p): Likewise.
+       * archive.c (_bfd_generic_mkarchive, bfd_generic_archive_p): Likewise.
+       (get_extended_arelt_filename): Fail if index is bigger or equal to
+       extended_names_size.
+       (_bfd_generic_read_ar_hdr_mag): Don't set bfd_error_malformed_archive,
+       get_extended_arelt_filename already did that.
+       (_bfd_slurp_extended_name_table): Initialize extended_names_size field.
+       Allocate one extra byte and clear it, in case extended names table
+       is not terminated.
+
+       * libbfd-in.h (bfd_malloc2, bfd_realloc2, bfd_zmalloc2, bfd_alloc2,
+       bfd_zalloc2): New prototypes.
+       * bfd-in.h (HALF_BFD_SIZE_TYPE): Define.
+       * libbfd.c (bfd_malloc2, bfd_realloc2, bfd_zmalloc2): New functions.
+       * opncls.c (bfd_alloc2, bfd_zalloc2): New functions.
+       * elf.c (bfd_elf_get_elf_syms, setup_group, assign_section_numbers,
+       elf_map_symbols, map_sections_to_segments,
+       assign_file_positions_for_segments, copy_private_bfd_data,
+       swap_out_syms, _bfd_elf_slurp_version_tables): Use bfd_*alloc2
+       where appropriate.
+       * bfd-in2.h: Rebuilt.
+       * libbfd.h: Rebuilt.
+
+       * elf.c (_bfd_elf_print_private_bfd_data): Don't crash on bogus
+       verdef or verneed section.
+       (_bfd_elf_slurp_version_tables): Handle corrupt verdef and/or
+       verneed sections gracefully.
+       * elfxx-sparc.c (_bfd_sparc_elf_info_to_howto_ptr): Don't crash on
+       bogus relocation values.
+       * elf64-ppc.c (ppc64_elf_info_to_howto): Likewise.
+       * elf64-s390.c (elf_s390_info_to_howto): Likewise.
+       * elf32-s390.c (elf_s390_info_to_howto): Likewise.
+       * elf64-x86-64.c (elf64_x86_64_info_to_howto): Likewise.
+       * elfxx-ia64.c (lookup_howto): Likewise.
+
+       * elf.c (bfd_elf_get_str_section): Allocate an extra byte after
+       the end of strtab and clear it.
+       (elf_read): Remove.
+
+2005-07-05  Nick Clifton  <nickc@redhat.com>
+
+       * po/vi.po: New Vietnamese translation.
+       * configure.in (ALL_LINGUAS): Add vi.
+       * configure: Regenerate.
+
+2005-07-05  Peter S. Mazinger <ps.m@gmx.net>
+
+       * elf32-arm.c (elf32_arm_size_dynamic_sections): Fix a typo and
+       touchup logic like i386/ppc.
+
+2005-07-05  Alan Modra  <amodra@bigpond.net.au>
+
+       * elf.c (special_sections): Move const qualifier.
+       (special_sections_b..special_sections_t): Likewise.
+       * elf32-arm.c (elf32_arm_symbian_get_sec_type_attr): Remove duplicate
+       const.
+       (elf32_arm_symbian_special_sections): Move const qualifier.
+       * elf32-m32r.c: Similarly.
+       * elf32-m68hc11.c: Similarly.
+       * elf32-m68hc12.c: Similarly.
+       * elf32-mcore.c: Similarly.
+       * elf32-ppc.c: Similarly.
+       * elf32-sh64.c: Similarly.
+       * elf32-v850.c: Similarly.
+       * elf32-xtensa.c: Similarly.
+       * elf64-alpha.c: Similarly.
+       * elf64-hppa.c: Similarly.
+       * elf64-ppc.c: Similarly.
+       * elf64-sh64.c: Similarly.
+       * elfxx-ia64.c: Similarly.
+       * elfxx-mips.c: Similarly.
+
+2005-07-04  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
+
+       * elf32-m32r.c (m32r_elf_size_dynamic_sections): Use
+       info->executable instead of !info->shared where appropriate.
+
+2005-07-04  Alan Modra  <amodra@bigpond.net.au>
+
+       PR 1042
+       * elf.c (assign_file_positions_for_segments): Remove excluded
+       sections from the segment map.
+
+2005-07-04  Alan Modra  <amodra@bigpond.net.au>
+
+       PR 1004
+       * elf-bfd.h (struct elf_backend_data): Add get_sec_type_attr.  Delete
+       special_sections.
+       (_bfd_elf_get_special_section): Declare.
+       (bfd_elf_special_section): Update prototype.
+       * elf.c (special_sections): Remove unused outer entries.
+       (get_special_section): Delete.
+       (_bfd_elf_get_special_section): New function.
+       (_bfd_elf_get_sec_type_attr): Replace "name" arg with "sec".  Update
+       special_sections indexing.
+       (_bfd_elf_new_section_hook): Call backend get_sec_type_attr.
+       * elf32-arm.c (symbian_special_sections_d): Delete.
+       (symbian_special_sections_g, symbian_special_sections_h): Delete.
+       (symbian_special_sections_i, symbian_special_sections_f): Delete.
+       (symbian_special_sections_p): Delete.
+       (elf32_arm_symbian_special_sections): Merge above to here.
+       (elf32_arm_symbian_get_sec_type_attr): New function.
+       (elf_backend_special_sections): Don't define.
+       (elf_backend_get_sec_type_attr): Define.
+       * elf32-m32r.c: Similarly to elf32-arm.c.
+       * elf32-m68hc11.c: Likewise.
+       * elf32-m68hc12.c: Likewise.
+       * elf32-mcore.c: Likewise.
+       * elf32-sh64.c: Likewise.
+       * elf32-v850.c: Likewise.
+       * elf32-xtensa.c: Likewise.
+       * elf64-alpha.c: Likewise.
+       * elf64-hppa.c: Likewise.
+       * elf64-ppc.c: Likewise.
+       * elf64-sh64.c: Likewise.
+       * elfxx-ia64.c: Likewise.
+       * elfxx-mips.c: Likewise.
+       * elf32-ppc.c: Likewise.
+       (bfd_elf_special_section ppc_alt_plt): New.  Use it if .plt loadable.
+       * elfxx-mips.h (_bfd_mips_elf_get_sec_type_attr): Declare.
+       (_bfd_mips_elf_special_sections, elf_backend_special_sections): Delete.
+       (elf_backend_get_sec_type_attr): Define.
+       * elfxx-target.h (elf_backend_get_sec_type_attr): Define.
+       (elf_backend_special_sections): Don't define.
+       (elfNN_bed): Update.
+
+2005-07-01  Nick Clifton  <nickc@redhat.com>
+
+       * cpu-d10v.c: Update to ISO C90 style function declarations and
+       fix formatting.
+       * cpu-d30v.c: Likewsie.
+       * cpu-i370.c: Likewsie.
+       * cpu-xstormy16.c: Likewsie.
+       * elf32-arc.c: Likewsie.
+       * elf32-d10v.c: Likewsie.
+       * elf32-d30v.c: Likewsie.
+       * elf32-dlx.c: Likewsie.
+       * elf32-i370.c: Likewsie.
+       * elf32-i960.c: Likewsie.
+       * elf32-ip2k.c: Likewsie.
+       * elf32-m32r.c: Likewsie.
+       * elf32-mcore.c: Likewsie.
+       * elf32-openrisc.c: Likewsie.
+       * elf32-or32.c: Likewsie.
+       * elf32-pj.c: Likewsie.
+       * elf32-v850.c: Likewsie.
+       * elf32-xstormy16.c: Likewsie.
+
+2005-07-01  Alan Modra  <amodra@bigpond.net.au>
+
+       * elf64-alpha.c (elf64_alpha_create_got_section): Always create
+       a new .got section.
+       (elf64_alpha_create_dynamic_sections): Always make new sections
+       by using bfd_make_section_anyway_with_flags.  Check that .got not
+       already created.
+       (elf64_alpha_check_relocs): Delete "got_created".  Use tdata->gotobj
+       instead.
+
 2005-06-30  Alan Modra  <amodra@bigpond.net.au>
 
        * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Ignore dynamic
This page took 0.037769 seconds and 4 git commands to generate.