* elf32-hppa.c: (LONG_BRANCH_PIC_IN_SHLIB): Delete. Remove all
[binutils-gdb.git] / bfd / ChangeLog
index 2a39f18af082616046a2f5f98bee40f20afdbc4c..b5579413c08eaf0b5f2f6e6b230a1e6de9057b98 100644 (file)
+2001-09-25  Alan Modra  <amodra@bigpond.net.au>
+
+       * elf32-hppa.c: (LONG_BRANCH_PIC_IN_SHLIB): Delete.  Remove all
+       code handling this option.
+       (LONG_BRANCH_VIA_PLT): Likewise.
+       (RELATIVE_DYNRELOCS): Define as zero.
+       (struct elf32_hppa_dyn_reloc_entry): Add "sec", and
+       "pc_count" fields.  Remove "section" field.
+       (elf32_hppa_link_hash_entry): Rename reloc_entries to dyn_relocs.
+       (elf32_hppa_check_relocs): Don't allocate space for dynamic
+       relocs here.  Instead, record all needed dynamic relocs via
+       dyn_relocs and local_dynrel.  Cache pointer to "sreloc" section
+       in elf_section_data.
+       (elf32_hppa_gc_sweep_hook): Sweep dyn_relocs and local_dynrel.
+       (allocate_plt_and_got_and_discard_relocs): Rename to
+       allocate_dynrelocs.  Allocate rather than discarding dyn relocs.
+       (readonly_dynrelocs): New function.
+       (elf32_hppa_size_dynamic_sections): Mark output_bfd unused.
+       Call readonly_dynrelocs to determine need for DT_TEXTREL.
+       Rename "i" to "ibfd".  Allocate space for local dyn relocs.
+       (elf32_hppa_relocate_section): Make use of cached sreloc.
+       (elf32_hppa_reloc_type_class): New function.
+       (elf_backend_reloc_type_class): Define.
+
+2001-09-25  Alan Modra  <amodra@bigpond.net.au>
+
+       * elf-bfd.h (struct bfd_elf_section_data): Add "local_dynrel"
+       and "sreloc" fields.
+       * elf32-i386.c (struct elf_i386_dyn_relocs): Add "sec", and
+       "pc_count" fields.  Remove "section" field.
+       (elf_i386_check_relocs): Don't set DF_TEXTREL here.  Don't
+       allocate space for dynamic relocs here.  Instead, record all
+       needed dynamic relocs via dyn_relocs and local_dynrel.  Cache
+       pointer to "sreloc" section in elf_section_data.
+       (elf_i386_gc_sweep_hook): Sweep dyn_relocs and local_dynrel.
+       (allocate_plt_and_got_and_discard_relocs): Rename to
+       allocate_dynrelocs.  Allocate rather than discarding dyn relocs.
+       (readonly_dynrelocs): New function.
+       (elf_i386_size_dynamic_sections): Call readonly_dynrelocs.
+       Rename "i" to "ibfd".  Allocate space for local dyn relocs.
+       (elf_i386_relocate_section): Make use of cached sreloc.
+
+2001-09-24  Alan Modra  <amodra@bigpond.net.au>
+
+       * elf-bfd.h (elf_backend_reloc_type_class): Pass in the entire
+       reloc rather than just the type.
+       (_bfd_elf_reloc_type_class): Likewise.
+       * elf.c (_bfd_elf_reloc_type_class): Likewise.
+       * elf32-arm.h (elf32_arm_reloc_type_class): Likewise.
+       * elf32-cris.c (elf_cris_reloc_type_class): Likewise.
+       * elf32-i386.c (elf_i386_reloc_type_class): Likewise.
+       * elf32-m68k.c (elf32_m68k_reloc_type_class): Likewise.
+       * elf32-ppc.c (ppc_elf_reloc_type_class): Likewise.
+       * elf32-s390.c (elf_s390_reloc_type_class): Likewise.
+       * elf32-sh.c (sh_elf_reloc_type_class): Likewise.
+       * elf32-sparc.c (elf32_sparc_reloc_type_class): Likewise.
+       * elf64-alpha.c (elf64_alpha_reloc_type_class): Likewise.
+       * elf64-s390.c (elf_s390_reloc_type_class): Likewise.
+       * elf64-sparc.c (sparc64_elf_reloc_type_class): Likewise.
+       * elf64-x86-64.c (elf64_x86_64_reloc_type_class): Likewise.
+       * elfxx-ia64.c (elfNN_ia64_reloc_type_class): Likewise.
+       * elflink.h: Formatting fixes.
+       (elf_link_sort_relocs): Make "count" and "size" bfd_size_type.
+       Call bfd_zmalloc rather than calloc.  Remove unnecessary cast of
+       o->contents to PTR.  Update call to elf_backend_reloc_type_class.
+
+2001-09-22  John Reiser  <jreiser@BitWagon.com>
+
+       * elfcode.h (elf_object_p): Allow for no section header at all in
+       non-ET_REL files.  Honor 0 for e_shnum, e_shstrndx, e_shoff.
+
+2001-09-21  Nick Clifton  <nickc@cambridge.redhat.com>
+
+       * elfxx-ia64.c: Fix compile time warning messages.
+       * bfd/coff-mcore.c: Fix compile time warning messages.
+       * bfd/coff-ppc.c: Fix compile time warning messages.
+       * bfd/coffcode.h: Fix compile time warning messages.
+       * bfd/elf32-mips.c: Fix compile time warning messages.
+       * bfd/elf64-alpha.c: Fix compile time warning messages.
+       * bfd/libbfd.c: Fix compile time warning messages.
+       * bfd/bfd-in2.h: Regenerate.
+
+2001-09-21  Alan Modra  <amodra@bigpond.net.au>
+
+       * Makefile.am: Run "make dep-am".
+       * Makefile.in: Regenerate.
+
+       * aoutx.h: Formatting fixes.
+       * merge.c (_bfd_merged_section_offset): Break line at 80 chars.
+
+       * linker.c: Replace bfd_get_filename with bfd_archive_filename
+       in error message.
+
+2001-09-21  Alan Modra  <amodra@bigpond.net.au>
+
+       * bfd.c (bfd_archive_filename): New function.
+       * bfd-in2.h: Regenerate.
+       * aout-adobe.c: Replace bfd_get_filename with bfd_archive_filename
+       in error messages where the bfd is an input bfd.
+       * aout-cris.c: Likewise.
+       * coff-arm.c: Likewise.
+       * coff-mcore.c: Likewise.
+       * coff-ppc.c: Likewise.
+       * coff-rs6000.c: Likewise.
+       * coff-sh.c: Likewise.
+       * coff-tic54x.c: Likewise.
+       * coff-tic80.c: Likewise.
+       * coff64-rs6000.c: Likewise.
+       * coffcode.h: Likewise.
+       * coffgen.c: Likewise.
+       * cofflink.c: Likewise.
+       * ecofflink.c: Likewise.
+       * elf-hppa.h: Likewise.
+       * elf.c: Likewise.
+       * elf32-arm.h: Likewise.
+       * elf32-cris.c: Likewise.
+       * elf32-gen.c: Likewise.
+       * elf32-hppa.c: Likewise.
+       * elf32-i370.c: Likewise.
+       * elf32-i386.c: Likewise.
+       * elf32-m32r.c: Likewise.
+       * elf32-mcore.c: Likewise.
+       * elf32-mips.c: Likewise.
+       * elf32-ppc.c: Likewise.
+       * elf32-s390.c: Likewise.
+       * elf32-sh.c: Likewise.
+       * elf32-sparc.c: Likewise.
+       * elf32-v850.c: Likewise.
+       * elf64-alpha.c: Likewise.
+       * elf64-gen.c: Likewise.
+       * elf64-ppc.c: Likewise.
+       * elf64-s390.c: Likewise.
+       * elf64-sparc.c: Likewise.
+       * elf64-x86-64.c: Likewise.
+       * elflink.h: Likewise.
+       * elfxx-ia64.c: Likewise.
+       * ieee.c: Likewise.
+       * ihex.c: Likewise.
+       * libbfd.c: Likewise.
+       * pdp11.c: Likewise.
+       * pe-mips.c: Likewise.
+       * peicode.h: Likewise.
+       * srec.c: Likewise.
+       * xcofflink.c: Likewise.
+
+       * elf32-arm.h: Make _bfd_error_handler calls K&R compatible.
+
+       * elflink.c (_bfd_elf_create_linker_section): Better grammar for
+       error message.
+
+       * coff-mcore.c (coff_mcore_relocate_section): Internalionalise
+       error message.
+
+       * elf64-sparc.c (sparc64_elf_add_symbol_hook): Constify stt_types.
+       Consolidate error messages, and split long messages to two lines.
+
 2001-09-20  John Reiser  <jreiser@BitWagon.com>
        
-       * elf32-i386.c (elf_i386_relocate_section): coordinate info->symbolic
-         and info->allow_shlib_undefined.
-       * elf32-cris.c: likewise
-       * elf32-hppa.c: likewise
-       * elf32-m68k.c: likewise
-       * elf32-mips.c: likewise
-       * elf32-ppc.c: likewise
-       * elf32-s390.c: likewise
-       * elf32-sh.c: likewise
-       * elf32-sparc.c: likewise
-       * elf64-alpha.c: likewise
-       * elf64-hppa.c: likewise
-       * elf64-ppc.c: likewise
-       * elf64-s390.c: likewise
-       * elf64-sparc.c: likewise
-       * elf64-x86-64.c: likewise
-       * elfxx-ia64.c: likewise
+       * elf32-i386.c (elf_i386_relocate_section): Coordinate info->symbolic
+       and info->allow_shlib_undefined.
+       * elf32-cris.c: Likewise.
+       * elf32-hppa.c: Likewise.
+       * elf32-m68k.c: Likewise.
+       * elf32-mips.c: Likewise.
+       * elf32-ppc.c: Likewise.
+       * elf32-s390.c: Likewise.
+       * elf32-sh.c: Likewise.
+       * elf32-sparc.c: Likewise.
+       * elf64-alpha.c: Likewise.
+       * elf64-hppa.c: Likewise.
+       * elf64-ppc.c: Likewise.
+       * elf64-s390.c: Likewise.
+       * elf64-sparc.c: Likewise.
+       * elf64-x86-64.c: Likewise.
+       * elfxx-ia64.c: Likewise.
 
 2001-09-18  Bruno Haible  <haible@clisp.cons.org>