PR 1004
[deliverable/binutils-gdb.git] / bfd / ChangeLog
index 6b8388f6c74cc9847400099a7ade67943ee1b9cb..388c568d9f66117ba8a0da4e6cc6cd42e1c51e9e 100644 (file)
@@ -1,6 +1,334 @@
+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
+       _SDA_BASE_ and _SDA2_BASE_ symbols.
+       * elflink.c (_bfd_elf_provide_symbol): Correct comment.  Define
+       sym if not def_regular.
+       (_bfd_elf_provide_section_bound_symbols): Similarly.
+
+2005-06-30  Ben Elliston  <bje@gnu.org>
+
+       * config.bfd: Mark as obsolete:
+           m68*-apollo-*
+           m68*-apple-aux*
+           m68*-bull-sysv*
+
+2005-06-29  Alan Modra  <amodra@bigpond.net.au>
+
+       * elflink.c (_bfd_elf_gc_mark): Mark sections referenced by
+       .eh_frame specially..
+       (bfd_elf_gc_sections): ..rather than totally ignoring .eh_frame.
+       Don't recheck sections we have already marked.
+       (elf_gc_sweep): Keep non-code sections referenced from .eh_frame.
+       * section.c (struct bfd_section): Add gc_mark_from_eh.
+       (STD_SECTION): Adjust.
+       * ecoff.c (bfd_debug_section): Adjust.
+       * bfd-in2.h: Regenerate.
+
+2005-06-29  Alan Modra  <amodra@bigpond.net.au>
+
+       * elflink.c (elf_gc_sweep): Do not refcount on sections that have
+       not been processed by check_relocs.
+
+2005-06-29  Paul Brook  <paul@codesourcery.com>
+
+       * bfd-in.h (_bfd_elf_provide_symbol): Update prototype.
+       * bfd-in2.h: Regenerate.
+       * elf32-ppc.c (ppc_elf_set_sdata_syms): Make sdata symbols section
+       relative.
+       * elflink.c (bfd_elf_set_symbol): Add section argument.
+       (_bfd_elf_provide_symbol): Ditto.
+       (_bfd_elf_provide_section_bound_symbols): Pass NULL section argument.
+
+2005-06-27  Carlos O'Donell <carlos@systemhalted.org>
+
+       * bfd/elf32-hppa.c (struct elf32_hppa_stub_hash_entry): 
+       Use bh_root, and hh.
+       (struct elf32_hppa_link_hash_entry): Use eh, and hsh_cache.
+       (struct elf32_hppa_dyn_reloc_entry): Use hdh_next.
+       (struct elf32_hppa_link_hash_table): Use etab and bstab.
+       (stub_hash_newfunc): Use hh.
+       (hppa_link_hash_newfunc): Use hsh_cache.
+       (elf32_hppa_link_hash_table_create): Use etab, and bstab.
+       (elf32_hppa_link_hash_table_free): Use bstab.
+       (hppa_stub_name): Use eh.
+       (hppa_get_stub_entry): Use hh, hsh_entry, and hsh_cache.
+       (hppa_add_stub): Use bstab.
+       (hppa_type_of_stub): Use eh.
+       (hppa_build_one_stub): Use hh and bh_root.
+       (elf32_hppa_copy_indirect_symbol): Use hdh_next.
+       (elf32_hppa_check_relocs): Use eh, etab, and hdh_next.
+       (elf32_hppa_gc_sweep_hook): Use hdh_next.
+       (elf32_hppa_adjust_dynamic_symbol): Use hdh_next, and etab.
+       (allocate_plt_static): Use etab.
+       (allocate_dynrelocs): Use etab, and hdh_next.
+       (readonly_dynrelocs): Use hdh_next.
+       (elf32_hppa_size_dynamic_sections): Use etab, and hdh_next.
+       (get_local_syms): Use eh, bstab, and hh.
+       (elf32_hppa_size_stubs): Use eh, bstab, and hh.
+       (elf32_hppa_set_gp): Use etab.
+       (elf32_hppa_build_stubs): Use bstab.
+       (final_link_relocate): Use eh, bh_root.
+       (elf32_hppa_relocate_section): Use elf, etab.
+       (elf32_hppa_finish_dynamic_sections): Use etab.
+
+2005-06-27  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * elfxx-ia64.c (elfNN_hpux_backend_symbol_processing): Remove
+       the extra `;'.
+
+2005-06-21  Carlos O'Donell <carlos@systemhalted.org>
+
+       * bfd/elf32-hppa.c (hppa_elf_hash_entry): Define.
+       (hppa_stub_hash_entry): Define.
+       (stub_hash_newfunc): Rename variables.
+       (hppa_link_hash_newfunc): Likewise.
+       (elf32_hppa_link_hash_table_free): Likewise.
+       (hppa_stub_name): Likewise.
+       (hppa_get_stub_entry): Likewise.
+       (hppa_add_stub): Likewise.
+       (hppa_type_of_stub): Likewise.
+       (hppa_build_one_stub): Likewise.
+       (hppa_size_one_stub): Likewise.
+       (elf32_hppa_create_dynamic_sections): Likewise.
+       (elf32_hppa_copy_indirect_symbol): Likewise.
+       (elf32_hppa_check_relocs): Likewise.
+       (elf32_hppa_gc_mark_hook): Likewise.
+       (elf32_hppa_gc_sweep_hook): Likewise.
+       (elf32_hppa_grok_psinfo): Likewise.
+       (elf32_hppa_hide_symbol): Likewise.
+       (elf32_hppa_adjust_dynamic_symbol): Likewise.
+       (allocate_dynrelocs): Likewise.
+       (clobber_millicode_symbols): Likewise.
+       (readonly_dynrelocs): Likewise.
+       (elf32_hppa_size_dynamic_sections): Likewise.
+       (get_local_syms): Likewise.
+       (elf32_hppa_size_stubs): Likewise.
+       (hppa_record_segment_addr): Likewise.
+       (final_link_relocate): Likewise.
+       (elf32_hppa_relocate_section): Likewise.
+       (elf32_hppa_finish_dynamic_symbol): Likewise.
+
+2005-06-20  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR 1025
+       * elf-m10300.c (mn10300_elf_check_relocs): Handle indirect
+       symbol.
+       * elf32-arm.c (elf32_arm_check_relocs): Likewise.
+       * elf32-avr.c (elf32_avr_check_relocs): Likewise.
+       * elf32-cris.c (cris_elf_check_relocs): Likewise.
+       * elf32-d10v.c (elf32_d10v_check_relocs): Likewise.
+       * elf32-dlx.c (elf32_dlx_check_relocs): Likewise.
+       * elf32-fr30.c (fr30_elf_check_relocs): Likewise.
+       * elf32-frv.c (elf32_frv_check_relocs): Likewise.
+       * elf32-i370.c (i370_elf_check_relocs): Likewise.
+       * elf32-iq2000.c (iq2000_elf_check_relocs): Likewise.
+       * elf32-m32r.c (m32r_elf_check_relocs): Likewise.
+       * elf32-m68hc1x.c (elf32_m68hc11_check_relocs): Likewise.
+       * elf32-m68k.c (elf_m68k_check_relocs): Likewise.
+       * elf32-mcore.c (mcore_elf_check_relocs): Likewise.
+       * elf32-ms1.c (ms1_elf_check_relocs): Likewise.
+       * elf32-msp430.c (elf32_msp430_check_relocs): Likewise.
+       * elf32-openrisc.c (openrisc_elf_check_relocs): Likewise.
+       * elf32-ppc.c (ppc_elf_check_relocs): Likewise.
+       * elf32-s390.c (elf_s390_check_relocs): Likewise.
+       * elf32-sh.c (sh_elf_check_relocs): Likewise.
+       * elf32-v850.c (v850_elf_check_relocs): Likewise.
+       * elf32-vax.c (elf_vax_check_relocs): Likewise.
+       * elf64-mmix.c (mmix_elf_check_relocs): Likewise.
+       * elf64-ppc.c (ppc64_elf_check_relocs): Likewise.
+       * elf64-s390.c (elf_s390_check_relocs): Likewise.
+       * elf64-sh64.c (sh_elf64_check_relocs): Likewise.
+       * elfxx-mips.c (_bfd_mips_elf_check_relocs): Likewise.
+       * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): Likewise.
+
+2005-06-20  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR 1022
+       * elf32-hppa.c (elf32_hppa_check_relocs): Handle indirect
+       symbol.
+
+2005-06-20  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR 1025
+       * elf32-i386.c (elf_i386_check_relocs): Handle indirect symbol.
+       * elf64-x86-64.c (elf64_x86_64_check_relocs): Likewise.
+
+2005-06-18  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * reloc.c: Add BFD_RELOC_X86_64_GOTOFF64 and
+       BFD_RELOC_X86_64_GOTPC32.
+       * bfd-in2.h: Regenerated.
+
+2005-06-17  Jakub Jelinek  <jakub@redhat.com>
+
+       * elf.c (bfd_section_from_shdr): Kill bogus warning.
+
+       * elf.c (bfd_section_from_shdr): Fail if sh_entsize is bogus for
+       symbol, relocation, group or versym sections.
+
+       * coffcode.h (coff_slurp_reloc_table): Don't crash if native_relocs
+       is NULL.
+       * peXXigen.c (pe_print_idata): Don't crash if dll_name or start_address
+       doesn't point into the section.
+
+2005-06-17  Jan Beulich  <jbeulich@novell.com>
+
+       * bfd-in2.h (elf_x86_64_reloc_type): Add BFD_RELOC_X86_64_GOTOFF64
+       and BFD_RELOC_X86_64_GOTPC32.
+       * libbfd.h (bfd_reloc_code_real_names): Likewise.
+       * elf64-x86-64.c (x86_64_elf_howto_table): Add entries for
+       R_X86_64_PC64, R_X86_64_GOTOFF64, and R_X86_64_GOTPC32.
+       (x86_64_reloc_map): Add entries for R_X86_64_PC64, R_X86_64_GOTOFF64,
+       and R_X86_64_GOTPC32.
+       (elf64_x86_64_info_to_howto): Adjust bounding relocation type.
+       (elf64_x86_64_check_relocs): Also handle R_X86_64_PC64,
+       R_X86_64_GOTOFF64, and R_X86_64_GOTPC32.
+       (elf64_x86_64_relocate_section): Likewise.
+       (elf64_x86_64_gc_sweep_hook): Also handle R_X86_64_PC64.
+
+2005-06-15  Mark Kettenis  <kettenis@gnu.org>
+
+       * archive.c: Include "libiberty.h".
+
+2005-06-15  Nick Clifton  <nickc@redhat.com>
+
+       * elf32-v850.c (ELF_MACHINE_ALT2): Define so that binaries
+       produced by the GreenHills toolchain can be assimilated.
+
+2005-06-14  Steve Ellcey  <sje@cup.hp.com>
+
+       * som.c (som_find_inliner_info): New.
+
+2005-06-14  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * elflink.c (_bfd_elf_merge_symbol): Fix a typo in comment.
+
+2005-06-14  Jakub Jelinek  <jakub@redhat.com>
+
+       * elf.c (bfd_section_from_shdr): Fail if name is NULL.
+       Prevent endless recursion on broken objects.
+
+       * archive.c (do_slurp_coff_armap): Check for overflows.
+
+2005-06-10  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * elfcode.h (elf_write_relocs): Do nothing if there are no
+       relocations.
+
+2005-06-10  Alan Modra  <amodra@bigpond.net.au>
+
+       * dwarf2.c (decode_line_info): Revert last change.  Instead set
+       initial low_pc to -1 to avoid need to test whether loc_pc has
+       been set.
+
+2005-06-09  Christopher Faylor  <cgf@timesys.com>
+
+       * coffcode.h (sec_to_styp_flags): Set appropriate section flags when
+       either SEC_ALLOC OR SEC_LOAD.
+
+2005-06-09  Christopher Faylor  <cgf@timesys.com>
+
+       * coffcode.h (sec_to_styp_flags): Remove read/write flags from noload
+       section header.  Do not add STYP_NOLOAD since it does not appear to be
+       a valid PE flag.
+
+2005-06-09  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR 1000
+       * dwarf2.c (lookup_address_in_line_info_table): Restore code
+       handling NULL function info, removed with 2005-04-03 change.
+
+2005-06-08  Mark Mitchell  <mark@codesourcery.com>
+
+       * opncls.c (bfd_fopen): Mark returned BFD as cacheable if FD == -1.
+
+2005-06-09  Alan Modra  <amodra@bigpond.net.au>
+
+       * elflink.c (elf_mark_used_section): Delete.
+       (bfd_elf_gc_sections): Call bfd_generic_gc_sections.
+       * reloc.c (bfd_mark_used_section): New function.
+       (bfd_generic_gc_sections): Call bfd_mark_used_section.
+
 2005-06-08  Alan Modra  <amodra@bigpond.net.au>
 
        * opncls.c (bfd_fopen): Don't set bfd_error unconditionally.
+       (bfd_fdopenr): Same.
 
 2005-06-07  Mark Mitchell  <mark@codesourcery.com>
 
This page took 0.037332 seconds and 4 git commands to generate.