* som.c (som_write_symbol_strings): Cast current_offset in
[deliverable/binutils-gdb.git] / bfd / ChangeLog
index 8d65726d31594ea5563126b3f7841fe77bc18bb9..fd02d0b3ff18693325f1a222488a699fd4ea5834 100644 (file)
@@ -1,3 +1,337 @@
+2001-09-29  Alan Modra  <amodra@bigpond.net.au>
+
+       * som.c (som_write_symbol_strings): Cast current_offset in
+       bfd_seek call to match param type.
+
+2001-09-28  J. Brobecker <brobecker@gnat.com>
+
+       * som.c (som_write_symbol_strings): Fix incorrect type of
+       current_offset to match the function definition. Fixes a build
+       failure on HPUX-11.00.
+
+2001-09-28  Richard Henderson  <rth@redhat.com>
+
+       * elfxx-target.h [section_flags]: Add SEC_ARCH_BIT_0, SEC_SMALL_DATA,
+       SEC_MERGE, SEC_STRINGS.
+
+       * section.c (SEC_ARCH_BIT_0): New; replace unused SEC_BALIGN.
+       * bfd-in2.h: Rebuild.
+
+2001-09-28  Alan Modra  <amodra@bigpond.net.au>
+
+       * elf64-x86-64.c (elf64_x86_64_reloc_type_lookup): Don't map bfd
+       reloc code using x86_64_reloc_map.
+
+       * elf32-hppa.c (elf32_hppa_check_relocs): Update comment since we
+       no longer allocate here.  Localise some vars to blocks where they
+       are used.
+       (elf32_hppa_adjust_dynamic_symbol): Correct a comment.  Delay
+       setting of vars until needed.
+       (allocate_dynrelocs): Don't create a .plt entry without a reloc
+       when symbol visibilty makes a function local.
+       (elf32_hppa_finish_dynamic_symbol): Move expressions out of
+       swap_reloca_out function calls.
+       (elf32_hppa_relocate_section): Likewies.  Comment typo fix.
+       (elf32_hppa_finish_dynamic_sections): Migrate common code out of
+       switch statement.
+
+       * elf32-i386.c (elf_i386_check_relocs): Update comment since we
+       no longer allocate here.  Localise some vars to blocks where they
+       are used.  Remove separate switch stmt for creating .got sec.
+       (elf_i386_adjust_dynamic_symbol): Correct a comment.  Remove
+       redundant casts and aborts.  Delay setting of vars until needed.
+       (allocate_dynrelocs): Remove redundant casts and aborts.
+       (elf_i386_size_dynamic_sections): Move comment.
+       (elf_i386_finish_dynamic_symbol): Move expressions out of function
+       calls.
+       (elf_i386_relocate_section): Likewise.  Comment typo fix.
+       (elf_i386_finish_dynamic_sections): Migrate common code out of
+       switch statement.
+       (elf_backend_* defines): Sort.
+
+       * elf32-i386.c (allocate_dynrelocs): Don't create a .plt entry
+       without a reloc when symbol visibilty makes a function local.
+
+2001-09-27  Nick Clifton  <nickc@cambridge.redhat.com>
+
+       * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix detection of
+       conflicting float flags.
+
+2001-09-26  Alan Modra  <amodra@bigpond.net.au>
+
+       * elf32-i386 (elf_i386_copy_indirect_symbol): New function.
+       (elf_backend_copy_indirect_symbol): Define.
+       (struct elf_i386_link_hash_entry): Rename "root" to "elf".
+       (struct elf_i386_link_hash_table): Likewise.
+       (link_hash_newfunc): Get rid of unnecessary casts.
+       (elf_i386_link_hash_table_create): Likewise.
+       (elf_i386_check_relocs): Initialise local_got_refcounts to 0.
+       Don't test input section SEC_READONLY here to try to avoid copy
+       relocs, and keep dyn_relocs regardleas of ELF_LINK_NON_GOT_REF.
+       (elf_i386_adjust_dynamic_symbol): Check output section SEC_READONLY
+       here to properly test whether we need copy relocs.  Do so for weak
+       syms too.
+
+       * elf32-hppa (elf32_hppa_copy_indirect_symbol): New function.
+       (elf_backend_copy_indirect_symbol): Define.
+       (struct elf32_hppa_link_hash_table): Rename "root" to "elf".
+       (stub_hash_newfunc): Get rid of unnecessary casts.
+       (hppa_link_hash_newfunc): Likewise.
+       (elf32_hppa_check_relocs): Initialise local_got_refcounts to 0.
+       Don't test input section SEC_READONLY here to try to avoid copy
+       relocs, and keep dyn_relocs regardleas of ELF_LINK_NON_GOT_REF.
+       (elf32_hppa_adjust_dynamic_symbol): Check output section SEC_READONLY
+       here to properly test whether we need copy relocs.  Do so for weak
+       syms too.
+
+2001-09-26  Alan Modra  <amodra@bigpond.net.au>
+
+       * bfd.c (_bfd_default_error_handlerl): Define using VPARAMS,
+       VA_OPEN, VA_FIXEDARG, VA_CLOSE.
+       (bfd_archive_filename): Cast bfd_malloc arg to the correct size.
+
+2001-09-25  Jakub Jelinek  <jakub@redhat.com>
+
+       * elf64-sparc.c (sparc64_elf_build_plt): Fix .plt[32768+] slot
+       computation.
+
+2001-09-25  H.J. Lu  <hjl@gnu.org>
+
+       * bfd-in2.h: Regenerated.
+
+2001-09-25  Alan Modra  <amodra@bigpond.net.au>
+
+       * elf32-i386.c: Add comment re linker function names and ordering.
+       (elf_i386_link_hash_newfunc): Rename to link_hash_newfunc.
+       (elf_i386_grok_prstatus): Move before linker functions.
+       (elf_i386_grok_psinfo): Likewise.
+       (elf_i386_fake_sections): Move so that functions are ordered.
+       (elf_i386_reloc_type_class): Likewise.  Comment function purpose.
+
+2001-09-25  Alan Modra  <amodra@bigpond.net.au>
+
+       * elf32-hppa.c: Rename occurrences of "hplink" to "htab"
+       throughout file.
+
+       * 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.
+       * coff-mcore.c: Fix compile time warning messages.
+       * coff-ppc.c: Fix compile time warning messages.
+       * coffcode.h: Fix compile time warning messages.
+       * elf32-mips.c: Fix compile time warning messages.
+       * elf64-alpha.c: Fix compile time warning messages.
+       * libbfd.c: Fix compile time warning messages.
+       * 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.
+
+2001-09-18  Bruno Haible  <haible@clisp.cons.org>
+
+       * aoutx.h: Include "safe-ctype.h" instead of <ctype.h>.
+       (aout_link_write_symbols): Use ISDIGIT instead of isdigit.
+       * archive.c: Include "safe-ctype.h" instead of <ctype.h>.
+       (_bfd_generic_read_ar_hdr_mag): Use ISDIGIT instead of isdigit.
+       * archures.c: Include "safe-ctype.h" instead of <ctype.h>.
+       (bfd_default_scan): Use ISDIGIT instead of isdigit.
+       * bfd.c: Include "safe-ctype.h" instead of <ctype.h>.
+       (bfd_scan_vma): Use ISXDIGIT/ISDIGIT/ISLOWER instead of
+       isxdigit/isdigit/islower.
+       * binary.c: Include "safe-ctype.h" instead of <ctype.h>.
+       (mangle_name): Use ISALNUM instead of isalnum.
+       * cpu-v850.c: Include "safe-ctype.h" instead of <ctype.h>.
+       (scan): Use ISDIGIT instead of isdigit.
+       * hosts/alphavms.h: Don't include <ctype.h>.
+       * ieee.c: Include "safe-ctype.h" instead of <ctype.h>.
+       (ieee_object_p): Use TOUPPER instead of toupper.
+       * ihex.c: Include "safe-ctype.h" instead of <ctype.h>.
+       (ihex_bad_byte): Use ISPRINT instead of isprint.
+       * merge.c: Don't include <ctype.h>.
+       * oasys.c: Include "safe-ctype.h" instead of <ctype.h>.
+       (oasys_write_sections): Use ISDIGIT instead of isdigit.
+       * pdp11.c: Include "safe-ctype.h" instead of <ctype.h>.
+       (aout_link_write_symbols): Use ISDIGIT instead of isdigit.
+       * ppcboot.c: Include "safe-ctype.h" instead of <ctype.h>.
+       (mangle_name): Use ISALNUM instead of isalnum.
+       * som.c: Include "safe-ctype.h" instead of <ctype.h>.
+       (som_set_reloc_info): Use ISUPPER/ISLOWER/ISDIGIT instead of
+       isupper/islower/isdigit.
+       (som_decode_symclass): Use TOUPPER instead of toupper.
+       * srec.c: Include "safe-ctype.h" instead of <ctype.h>.
+       (srec_bad_byte): Use ISPRINT instead of isprint.
+       (srec_scan): Use ISSPACE instead of isspace.
+       * stabs.c: Include "safe-ctype.h" instead of <ctype.h>.
+       (_bfd_link_section_stabs): Use ISDIGIT instead of isdigit.
+       * syms.c: Include "safe-ctype.h"
+       (islower, toupper): Remove macro definitions.
+       (bfd_decode_symclass): Use TOUPPER instead of toupper.
+       * vms-gsd.c: Don't include <ctype.h>.
+       * vms-hdr.c: Include "safe-ctype.h" instead of <ctype.h>.
+       (_bfd_vms_write_hdr): Use ISLOWER/TOUPPER instead of
+       islower/toupper.
+       * vms-tir.c: Don't include <ctype.h>.
+
 2001-09-18  Alan Modra  <amodra@bigpond.net.au>
 
        * libbfd.c (bfd_bread): New function replacing bfd_read without
This page took 0.026916 seconds and 4 git commands to generate.