Fix formatting
[deliverable/binutils-gdb.git] / bfd / ChangeLog
index 3591928dfff31cc763804ae42f41dce6956a56b0..612249fa5f94bc0e9b50db401c52ba69899bb946 100644 (file)
@@ -1,3 +1,380 @@
+2000-07-19  Nick Clifton  <nickc@cygnus.com>
+
+       * format.c: Fix formatting.
+
+2000-07-19  H.J. Lu  <hjl@gnu.org>
+
+       * elf.c (_bfd_elf_print_private_bfd_data): Fix DT_CHECKSUM.
+
+2000-07-19  H.J. Lu  <hjl@gnu.org>
+
+       * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_BIND_NOW,
+       DT_INIT_ARRAY, DT_FINI_ARRAY, DT_INIT_ARRAYSZ, DT_FINI_ARRAYSZ,
+       DT_RUNPATH, DT_FLAGS, DT_PREINIT_ARRAY, DT_PREINIT_ARRAYSZ,
+       DT_PLTPADSZ, DT_MOVEENT, DT_MOVESZ, DT_FEATURE, DT_POSFLAG_1,
+       DT_SYMINSZ, DT_SYMINENT, DT_CONFIG, DT_DEPAUDIT, DT_AUDIT,
+       DT_PLTPAD, DT_MOVETAB, DT_SYMINFO, DT_RELACOUNT, DT_RELCOUNT,
+       DT_FLAGS_1, DT_USED and DT_CHECKSUM.
+
+Tue Jul 18 13:11:54 2000  Andrew Cagney  <cagney@b1.cygnus.com>
+
+       * elf.c (bfd_elf_get_sign_extend_vma, bfd_elf_get_arch_size): Move
+       renamed functions from here...
+       (assign_section_numbers): Use renamed functions.
+       (prep_headers): Use renamed functions.
+       
+       * bfd.c (bfd_get_sign_extend_vma, bfd_get_arch_size): ...To here.
+       * bfd-in.h (bfd_get_sign_extend_vma, bfd_get_arch_size): Update.
+       * bfd-in2.h: Regenerate.
+
+2000-07-18  Ulf Carlsson  <ulfc@engr.sgi.com>
+
+       * elf32-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Add
+       paranthesis in if statement.
+
+2000-07-17  Koundinya K  <kk@ddeorg.soft.net>
+
+       Enable the support for Traditional MIPS. 
+       * elf32-mips.c (IRIX_COMPAT): Recognize bfd_elf32_tradbigmips_vecand
+       return ict_none appropriately for traditional mips targets.
+       (STUB_LW): Change 0x8f998000 to 0x8f998010 for traditional mips.
+       (STUB_MOVE): Conditionalize for traditonal mips.
+       (STUB_LI16): Likewise.
+       (_bfd_mips_elf_modify_segment_map): Conditionalize to avoid making
+       room for RTPROC header.
+       (_bfd_mips_elf_modify_segment_map): For a normal mips executable set
+       the permission for the PT_DYNAMIC as read, write and execute.
+       (mips_elf_calculate_relocation): Check for the symbol _DYNAMIC_LINKING
+       for traditonal mips.
+       (_bfd_mips_elf_create_dynamic_sections): Add the symbol
+       _DYNAMIC_LINKING for traditonal mips.
+       (_bfd_mips_elf_create_dynamic_sections): Add the symbol __RLD_MAP
+       in case of traditonal mips.
+       (_bfd_mips_elf_adjust_dynamic_symbol): Create a stub only if a PLT
+       entry is required. For a function if PLT is not required then set the
+       corresponding hash table entry to 0.
+       (_bfd_mips_elf_size_dynamic_sections): Add DT_DEBUG entry for 
+       traditonal mips.
+       (_bfd_mips_elf_finish_dynamic_symbol): for a undefined symbol in a 
+       shared object set the value to 0.
+       (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol 
+       _DYNAMIC_LINKING for traditonal mips.
+       (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol __RLD_MAP
+       for traditonal mips.
+       
+2000-07-15  H.J. Lu  <hjl@gnu.org>
+
+       * aoutx.h (translate_to_native_sym_flags): Handle BSF_LOCAL.
+
+2000-07-12  Charles Wilson  <cwilson@ece.gatech.edu>
+
+       * libbfd.c (bfd_seek): fix 'seek beyond EOF' error when writing
+       out a structure that is BFD_IN_MEMORY.
+
+2000-07-11  Alan Modra  <alan@linuxcare.com.au>
+
+       * elf64-hppa.c (get_dyn_name): Pass in section pointer instead of
+       bfd pointer.  Print section id instead of bfd pointer for local
+       syms.  Prefix addend with `+' for global syms as well as local.
+       Correct calculation of name component lengths.
+       (elf64_hppa_check_relocs): Update call to get_dyn_name.
+
+       From David Huggins-Daines  <dhd@linuxcare.com>
+       * elf-hppa.h (elf_hppa_relocate_section): Update calls here too.
+       * elf64-hppa.c (elf64_hppa_check_relocs): Fix some warnings.
+       (elf64_hppa_modify_segment_map): Likewise.
+
+Tue Jul 11 17:21:52 2000  Andrew Cagney  <cagney@b1.cygnus.com>
+
+       * elf.c (bfd_elf_get_sign_extend_vma): Return tendency of VMA
+       addresses to be "naturally" sign extended.  Return -1 if unknown.
+       * bfd-in.h (bfd_elf_get_sign_extend_vma): Add declaration.
+       * bfd-in2.h: Regenerate.
+
+Tue Jul 11 16:25:52 2000  Andrew Cagney  <cagney@b1.cygnus.com>
+
+       * ecoffswap.h (ecoff_get_off, ecoff_put_off): Add ECOFF_SIGNED_32
+       and ECOF_SIGNED_64 to list ways to extract an offset.
+       (ecoff_swap_fdr_in, ecoff_swap_fdr_out, ecoff_swap_pdr_in,
+       ecoff_swap_pdr_out, ecoff_swap_ext_in, ecoff_swap_ext_out):
+       Update.
+       * elf64-mips.c (ECOFF_SIGNED_64): Define instead of ECOFF_64.
+       * elf32-mips.c (ECOFF_SIGNED_32): Define instead of ECOFF_32.
+
+Tue Jul 11 16:03:04 2000  Andrew Cagney  <cagney@b1.cygnus.com>
+
+       * elfcode.h (elf_object_p): Use bfd_set_start_address and not
+       bfd_get_start_address.
+       (elf_swap_ehdr_in): Sign extend e_entry when applicable.
+       (elf_swap_ehdr_out): Ditto.
+
+2000-07-10  Alexander Aganichev  <AAganichev@hypercom.com>
+
+       * archures.c (bfd_default_scan): Add set of bfd_mach_ cases for
+       compatibility with older binutils.
+
+2000-07-10  Alan Modra  <alan@linuxcare.com.au>
+
+       * section.c (bfd_make_section_anyway): Start section_id at 0x10.
+       (STD_SECTION): Avoid negative ids, instead use 0 to 3.
+
+       From Ryan Bradetich  <rbradetich@uswest.net>
+       * dwarf1.c (parse_die): Cure signed/unsigned char warnings.
+       (parse_line_table): Ditto.
+       (_bfd_dwarf1_find_nearest_line): Ditto.
+       * syms.c (cmpindexentry): Remove extra `*' from params.
+
+2000-07-09  Koundinya K  <kk@ddeorg.soft.net>
+
+        * elf32-mips.c (sort_dynamic_relocs): New Function.
+        (_bfd_mips_elf_finish_dynamic_sections): Call sort_dynamic_relocs
+       via qsort to sort the dynamic relocations in increasing r_symndx
+       value.
+       
+2000-07-09  Alan Modra  <alan@linuxcare.com.au>
+
+       * elf64-hppa.c (elf64_hppa_dyn_hash_table_init): Add
+       ATTRIBUTE_UNUSED to unused args.
+       (get_opd): Likewise.
+       (get_plt): Likewise.
+       (get_dlt): Likewise.
+       (get_stub): Likewise.
+       (elf64_hppa_adjust_dynamic_symbol): Likewise.
+       (elf64_hppa_link_output_symbol_hook): Likewise.
+       (elf64_hppa_check_relocs): Delete unused var.
+       (elf64_hppa_size_dynamic_sections): Likewise.
+       (elf64_hppa_finalize_opd): Likewise.
+       (elf64_hppa_finalize_dynreloc): Likewise.
+       (elf64_hppa_modify_segment_map): Likewise.
+       (elf64_hppa_finish_dynamic_sections): Likewise.
+
+       * elf-hppa.h (elf_hppa_final_write_processing): Add
+       ATTRIBUTE_UNUSED to unused args.
+       (elf_hppa_final_link_relocate): Likewise.
+       (elf_hppa_record_segment_addrs): Add paretheses.
+       (elf_hppa_relocate_section): Constify dyn_name.
+
+       From  David Huggins-Daines  <dhd@linuxcare.com>
+       * config.bfd: Add hppa*64*-*-linux-gnu 64-bit target, and
+       rearrange case statement so that it gets preferred to 32-bit ones.
+
+       * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Use
+       asection->id instead of address of asection structure.
+       (elf32_hppa_size_stubs): Likewise.
+
+       * elf32-hppa.c (elf32_hppa_size_stubs): Use just one stub section
+       for .init* and .fini*.
+
+       * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Mask pointers
+       and addends used in stub names to 32 bits.
+       (elf32_hppa_size_stubs): Likewise.
+
+       * elf-hppa.h (elf_hppa_final_link_relocate): Don't sum addend
+       twice for R_PARISC_GPREL64.  Use bfd_put_32 for R_PARISC_PCREL32,
+       not bfd_put_64.  Fix minor comment typo and formatting.
+
+       Changes to create multiple linker stubs, positioned immediately
+       before the section where they are required.
+       * elf32-hppa.c: Don't include hppa_stubs.h.
+       (elf32_hppa_stub_hash_entry): Add a pointer to the stub section.
+       (elf32_hppa_stub_hash_table): Delete.
+       (elf32_hppa_link_hash_entry): Delete.
+       (elf32_hppa_link_hash_table): Use plain bfd_hash_table for
+       stub_hash_table, and store the struct here rather than a pointer.
+       Delete output_symbol_count.  Add offset array.  Change
+       global_value to a bfd_vma.
+       (elf32_hppa_stub_hash_lookup): Use table instead of table->root.
+       (elf32_hppa_stub_hash_traverse): Delete.
+       (elf32_hppa_name_of_stub): Delete.
+       (elf32_hppa_link_hash_lookup): Delete.
+       (elf32_hppa_link_hash_traverse): Delete.
+       (elf32_hppa_stub_hash_table_init): Delete.
+       (elf32_hppa_size_of_stub): Pass input section and offset rather
+       than location and calculate location here.  Don't pass name as all
+       stubs are now the same size.
+       (elf32_hppa_stub_hash_newfunc): Init new fields.
+       (elf32_hppa_link_hash_table_create): Likewise, and stub_hash_table
+       too.
+       (elf32_hppa_bfd_final_link_relocate): Cast enums to int before
+       comparing against ints.  Rewrite stub handling code.
+       (elf32_hppa_relocate_section): Make r_type and r_symndx unsigned.
+       Case enums to int before comparing against ints.  Remove
+       bfd_reloc_dangerous case.
+       (elf32_hppa_build_one_stub): Rewrite.
+       (elf32_hppa_size_one_stub): New function.
+       (elf32_hppa_build_stubs): Rewrite.
+       (elf32_hppa_size_stubs): Pass in linker call-back functions.
+       Rewrite stub-handling specific code.
+
+       * elf32-hppa.h (elf32_hppa_size_stubs): Update prototype.
+
+       * elf64-hppa.c (elf64_hppa_dyn_hash_entry): Fix a comment typo.
+
+       * hppa_stubs.h: Delete.
+       * Makefile.am (SOURCE_HFILES): Remove hppa_stubs.h
+       (elf32-hppa.lo): Remove hppa_stubs.h from dependencies.
+       * Makefile.in: Regenerate.
+
+       * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle e_nlsel and
+       e_nlrsel.
+
+       * libhppa.h (hppa_field_adjust): Correct e_nsel case.
+
+       * elf32-hppa.c (elf32_hppa_relocate_section): Mention the offset
+       and section name for bfd_reloc_notsupported error message.
+       (elf32_hppa_bfd_final_link_relocate): Print reasons for returning
+       bfd_reloc_notsupported.
+       (elf32_hppa_relocate_section): Add ATTRIBUTE_UNUSED to output_bfd.
+
+       * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Handle
+       undefined weak symbols for all relocs.
+       (elf32_hppa_size_of_stub): Adjust calculation by 8 since branch
+       offsets are relative to one past the delay slot.
+       (elf32_hppa_size_stubs): Account for reloc addend when calculating
+       branch destination.  Put addend into stub name too.
+       (elf32_hppa_bfd_final_link_relocate): Account for reloc addend and
+       adjust by 8 when deciding whether a linker stub is needed.  Put
+       addend into stub name as for above.
+
+       * elf32-hppa.c (hppa_elf_relocate_insn): Change signed/unsigned on
+       various args and vars.
+       (elf32_hppa_bfd_final_link_relocate): Here too.
+       (elf32_hppa_size_stubs): Rename index -> indx.  Use e_indx for
+       inner block var to avoid shadowing.
+
+       * elf32-hppa.h (_bfd_elf32_hppa_gen_reloc_type):  Make `field' arg
+       unsigned.
+       * elf64-hppa.h (_bfd_elf64_hppa_gen_reloc_type): Ditto.
+       * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Ditto.
+       (elf_hppa_fake_sections): Rename local var to avoid shadowing.
+
+       * libhppa.h: Change practically all unsigned ints to plain ints.
+       Remove tests on gcc version.  Instead use ATTRIBUTE_UNUSED for
+       prototypes.
+
+       From Ryan Bradetich  <rbradetich@uswest.net>
+       * libhppa.h (hppa_opcode_type): New enum to replace #define's.
+       * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Modify to
+       suit above.
+       From  David Huggins-Daines  <dhd@linuxcare.com>
+       * elf-hppa.h (elf_hppa_relocate_insn): Update the opcode constants
+       to the new OP_* ones.
+
+       * elf32-hppa.c (elf32_hppa_size_stubs): Consolidate freeing on
+       error exit.  Bail out earlier on plabel relocs that we aren't
+       interested in.  Don't tell elf32_hppa_stub_hash_lookup to copy
+       string, and then don't free our copy.
+       (elf32_hppa_build_one_stub): Make insn unsigned int.
+
+       * libhppa.h (bfd_hppa_insn2fmt): 22 bit branches are only
+       available with BL, not BE and BLE.
+
+       * elf32-hppa.c (hppa_elf_relocate_insn): Add some more example
+       code for elf arg relocs.
+       (elf32_hppa_bfd_final_link_relocate): Replace boolean is_local
+       argument with elf_link_hash_entry h.  Handle undefined weak
+       symbols.  Move $global$ lookup from here...
+       (elf32_hppa_relocate_section): ...to here.  Return correct error
+       message for non-handled relocs.
+       (elf32_hppa_size_of_stub): Correctly test branch range.  Previous
+       wrong test was -0x3ffff to +0x40000.
+
+       * elf-hppa.h (elf_hppa_final_link_relocate): R_PARISC_DIR17R,
+       R_PARISC_DIR17F, and R_PARISC_DIR21L are for absolute branches;
+       Handle them as such.
+       (elf_hppa_relocate_insn): Fix a typo.
+
+       * libhppa.h (GET_FIELD, GET_BIT, MASK, CATENATE, ELEVEN): Delete.
+       (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
+       assemble_17, assemble_21): Delete.
+       Supply defines for all 64 possible opcodes.
+       (bfd_hppa_insn2fmt): Add bfd argument, and use to select wide mode
+       formats.  Handle COMICLR.
+       (hppa_rebuild_insn): Delete bfd argument.  Handle formats 10, -11,
+       -10, -16, 16, 22.
+
+       * elf32-hppa.c (hppa_elf_relocate_insn): Complete rewrite.
+       (elf32_hppa_bfd_final_link_relocate): Major rewrite.
+       (elf32_hppa_build_one_stub): Modify hppa_elf_relocate_insn calls
+       to suit.
+       (elf32_hppa_size_stubs): Don't free stub_name twice.  Read in all
+       the local syms - did this code get deleted accidentally?  Ignore
+       undefined and undefweak syms.
+
+       * elf-hppa.h (elf_hppa_final_link): Move hppa_info to outermost
+       block.  Use it instead of elf64_hppa_hash_table (info).
+       (elf_hppa_final_link_relocate): Use hppa_info instead of
+       elf64_hppa_hash_table (info).
+
+       * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
+       re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
+       (hppa_rebuild_insn): Mask immediate bits here instead.
+       * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
+
+2000-07-08  Alan Modra  <alan@linuxcare.com.au>
+
+       * section.c (struct sec): Add id field.  Tidy comment formatting.
+       (bfd_make_section_anyway): Set id.
+       (STD_SECTION): Init id too.
+       Change CONST to const throughout.
+       * archures.c (bfd_arch_info): Tidy comment.
+       (bfd_arch_list): Change a CONST to const.
+       * libbfd-in.h: Tidy comments and replace CONST with const.
+       * elf-bfd.h: Likewise.
+       * libbfd.h: Regenerate.
+       * bfd-in2.h: Regenerate.
+       * libcoff.h: Regenerate.
+
+2000-07-07  DJ Delorie  <dj@redhat.com>
+
+       * archive.c (_bfd_write_archive_contents): Add an informative
+       comment.
+
+2000-07-06  Kazu Hirata  <kazu@hxi.com>
+
+       * srec.c: Fix formatting.
+
+2000-06-05  DJ Delorie  <dj@redhat.com>
+
+       * MAINTAINERS: new
+
+2000-07-04  Alexandre Oliva  <aoliva@redhat.com>
+
+       * coff-arm.c (coff_arm_relocate_section): Do not ignore the symbol
+       value of PC-relative offsets.
+
+2000-07-03  Jim Wilson  <wilson@cygnus.com>
+
+       * elf64-alpha.c (alpha_elf_size_info): New.
+       (elf_backend_size_info): Define to alpha_elf_size_info.
+       * elfcode.h (elf_size_info): Change hash bucket size to 4.
+
+2000-07-03  Ulf Carlsson  <ulfc@engr.sgi.com>
+
+       * elf32-mips.c: Include elf32-target.h again for the traditional
+       MIPS targets.
+
+2000-07-03  Marek Michalkiewicz  <marekm@linux.org.pl>
+
+       * elf32-avr.c (bfd_elf32_bfd_reloc_type_lookup):
+       Add ATTRIBUTE_UNUSED to unused arguments to avoid warnings.
+       (avr_info_to_howto_rela): Likewise.
+       (elf32_avr_gc_mark_hook): Likewise.
+       (elf32_avr_gc_sweep_hook): Likewise.
+       (elf32_avr_relocate_section): Likewise.
+
+2000-07-03  Mark Elbrecht  <snowball3@bigfoot.com>
+
+       * cofflink.c (_bfd_coff_write_global_sym): Turn a weak symbol into
+       an external symbol for a non-shared, non-relocatable link.
+       
+2000-07-03  Nick Clifton  <nickc@redhat.com>
+
+       * cofflink.c (IS_EXTERNAL): New macro: Return true if the symbol
+       is an external symbol.
+       (IS_WEAK_EXTERNAL): New macro: Return true if the symbol is a weak
+       external symbol.
+       
 2000-07-03  Kazu Hirata  <kazu@hxi.com>
 
        * reloc16.c: Fix formatting.
This page took 0.026757 seconds and 4 git commands to generate.