Fix PPC_ADDR16_HA relocations
[deliverable/binutils-gdb.git] / bfd / ChangeLog
index 6d699543ca9e10ecb6049c3e996ac5300e904072..7b7de13e1146babcd7652b5aedb9e54f36b91bfc 100644 (file)
@@ -1,3 +1,270 @@
+Fri Jul 14 11:58:34 1995  Michael Meissner  <meissner@tiktok.cygnus.com>
+
+       * elf32-ppc.c (ppc_elf_addr16_ha_inner): Rewrite to take just one
+       argument, the final relocated address.
+       (ppc_elf_addr16_ha_inner): Adjust ppc_elf_addr16_ha_inner caller.
+       (ppc_elf_relocate_section): Ditto.
+
+Thu Jul 13 17:22:03 1995  Jeff Law  (law@snake.cs.utah.edu)
+
+       * som.c (hppa_som_gen_reloc_type): Choose a reasonable field
+       selector relocation for the difference of two symbols.
+
+Thu Jul 13 10:33:25 1995  Ian Lance Taylor  <ian@cygnus.com>
+
+       * aoutx.h (NAME(aout,slurp_reloc_table)): Cast argument to size_t
+       for malloc.
+       * coff-mips.c (mips_relocate_section): Likewise, for memmove.
+       (mips_relax_section): Likewise, for malloc.
+       * cofflink.c (process_embedded_commands): Likewise.
+       (_bfd_coff_final_link): Likewise.
+       * ecoff.c (_bfd_ecoff_write_object_contents): Likewise.
+       (ecoff_final_link_debug_accumulate): Likewise.
+       (ecoff_indirect_link_order): Likewise, for memcpy and malloc.
+       (ecoff_reloc_link_order): Likewise, for malloc.
+       * ecofflink.c (ecoff_align_debug): Likewise, for memset.
+       (ecoff_write_symhdr): Likewise, for malloc.
+       * elf32-hppa.c (elf32_hppa_read_symext_info): Likewise.
+       * elf.c (assign_file_positions_except_relocs): Likewise, for
+       qsort.
+       * elf32-mips.c (mips_elf_read_ecoff_info): Likewise, for malloc.
+       * elfcode.h (elf_slurp_reloc_table): Likewise.
+       * elfcore.h (elf_corefile_note): Likewise.
+       * elflink.h (elf_link_add_object_symbols): Likewise.
+       (elf_link_read_relocs): Likewise.
+       (NAME(bfd_elf,size_dynamic_sections)): Likewise, for memset.
+       * i386linux.c (bfd_linux_size_dynamic_sections): Likewise.
+       * ieee.c (do_with_relocs): Likewise.
+       * linker.c (default_indirect_link_order): Likewise, for malloc.
+       * nlmcode.h (nlm_object_p): Likewise.
+       (nlm_write_object_contents): Likewise.
+       * oasys.c (oasys_set_section_contents): Likewise, for memcpy.
+       * reloc.c (bfd_generic_get_relocated_section_contents): Likewise,
+       for malloc.
+       * section.c (bfd_get_section_contents): Likewise, for memcpy.
+       * srec.c (srec_get_section_contents): Likewise.
+       (srec_set_section_contents): Likewise.
+       * sunos.c (bfd_sunos_size_dynamic_sections): Likewise, for
+       realloc and memset.
+       (sunos_scan_relocs): Likewise, for malloc.
+       (sunos_scan_dynamic_symbol): Likewise, for realloc.
+       * syms.c (_bfd_generic_read_minisymbols): Likewise, for malloc.
+       * versados.c (versados_get_section_contents): Likewise, for
+       memcpy.
+
+       * libbfd.c (real_read): Add prototype.  Change argument types from
+       int to size_t.
+       (bfd_read): Cast real_read argument to size_t, not int.
+       (bfd_write): Cast fwrite argument to size_t, not int.
+
+       * elf64-gen.c (elf_info_to_howto): Fix definition for recent elf.c
+       changes.
+
+       * configure.in: Fix typo: change {$enableval} to ${enableval}.
+       * configure: Rebuild.
+
+       * Makefile.in (BFD32_BACKENDS): Add elflink.o.
+
+       * targets.c (bfd_target): Add fields _read_minisymbols and
+       _minisymbol_to_symbol.
+       (BFD_JUMP_TABLE_SYMBOLS): Add _read_minisymbols and
+       _minisymbol_to_symbol.
+       (bfd_read_minisymbols): Define.
+       (bfd_minisymbol_to_symbol): Define.
+       * syms.c (_bfd_generic_read_minisymbols): Define.
+       (_bfd_generic_minisymbol_to_symbol): Define.
+       * libbfd-in.h (_bfd_nosymbols_read_minisymbols): Define.
+       (_bfd_nosymbols_minisymbol_to_symbol): Define.
+       (_bfd_generic_read_minisymbols): Declare.
+       (_bfd_generic_minisymbol_to_symbol): Declare.
+       * bfd-in2.h: Rebuild.
+       * libbfd.h: Rebuild.
+       * aoutx.h (MINISYM_THRESHOLD): Define.
+       (NAME(aout,read_minisymbols)): New function.
+       (NAME(aout,minisymbol_to_symbol)): New function.
+       * libaout.h (NAME(aout,read_minisymbols)): Declare.
+       (NAME(aout,minisymbol_to_symbol)): Declare.
+       * aout-target.h (MY_read_minisymbols): Define.
+       (MY_minisymbol_to_symbol): Define.
+       * All targets: Define read_minisymbols and minisymbol_to_symbol.
+
+Wed Jul 12 17:55:55 1995  Ken Raeburn  <raeburn@cygnus.com>
+
+       * elflink.h (elf_link_add_object_symbols): Cast return value from
+       bfd_alloc.
+
+       * elfcode.h (size_info): Don't use "&" before function names.
+
+Wed Jul 12 00:16:48 1995  Ken Raeburn  <raeburn@kr-pc.cygnus.com>
+
+       * libelf.h (elf_backend_data): Use unsigned, not unsigned char,
+       for bitfields.
+
+Tue Jul 11 15:19:53 1995  Ian Lance Taylor  <ian@cygnus.com>
+
+       * elf.c (bfd_section_from_shdr): In case SHT_REL[A], only get the
+        BFD section for the sh_link section if it is a SYMTAB section.
+
+       * aoutx.h (NAME(aout,link_add_symbols)): Don't bother to check
+       that archives hold a.out objects.
+       * cf-i386lynx.c (coff_bfd_link_add_symbols): Don't define.
+       (lynx_link_add_symbols): Remove.
+       * cf-m68klynx.c (coff_bfd_link_add_symbols): Don't define.
+       (lynx_link_add_symbols): Remove.
+       * elflink.h (elf_bfd_link_add_symbols): Don't bother to check that
+       archives hold ELF objects.
+
+       * archive.c (bfd_generic_archive_p): If the archive has a map, and
+       the target was defaulted, but the first object in the archive can
+       not be matched with that target, then return a bad format error.
+
+       * elf64-sparc.c (elf_sparc_howto_table): Set howto for WDISP16 to
+       elf64_wdisp16_reloc.
+       (elf64_wdisp16_reloc): New static function.
+       (elf64_sparc_relocate_section): New static function.
+       (elf_backend_relocate_section): Define.
+
+       * libelf.h (struct elf_size_info): Change type of last argument to
+       swap_symbol_out from char * to PTR.
+       (bfd_elf32_swap_symbol_out): Update declaration.
+       (bfd_elf64_swap_symbol_out): Likewise.
+       * elfcode.h (elf_swap_symbol_out): Change type of cdst from char *
+       to PTR.
+       * elf.c (swap_out_syms): Cast to PTR, not char *, when calling
+       swap_symbol_out routine.
+       * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Likewise.
+       (elf_link_output_sym): Likewise.
+       (elf_link_output_extsym): Likewise.
+       * elf32-sparc.c (elf32_sparc_finish_dynamic_sections): Likewise.
+
+Tue Jul 11 12:29:49 1995  Rick Sladkey  <jrs@world.std.com>
+
+       * elf.c (_bfd_elf_find_nearest_line): Handle the simple case where
+       there is no debugging information.
+
+Mon Jul 10 11:45:55 1995  Ken Raeburn  <raeburn@cygnus.com>
+
+       * makefile.dos (OBJS): Add binary.o and tekhex.o.  From DJ
+       Delorie.
+
+Mon Jul 10 11:09:58 1995  Ian Lance Taylor  <ian@cygnus.com>
+
+       * linker.c (set_symbol_from_hash): bfd_link_hash_new case: Don't
+       abort; it can happen for constructor symbols when not building
+       constructors.
+
+       * coff-i960.c (coff_i960_relocate): Correct typo: use ! on strcmp,
+       not on string.
+       * cofflink.c (_bfd_coff_generic_relocate_section): Remove unused
+       local i.
+       * coff-arm.c (coff_arm_rtype_to_howto): Don't declare.
+       (PCRELOFFSET): Define if not already defined.
+       * Makefile.in: Rebuild dependencies.
+       (BFD32_BACKENDS): Add coff-arm.o
+       (CFILES): Add coff-arm.c, pe-arm.c, pei-arm.c.
+
+       * aoutx.h (NAME(aout,link_hash_table_create)): Allocate hash table
+       using bfd_alloc, not malloc.
+       * cofflink.c (_bfd_coff_link_hash_table_create): Likewise.
+       * ecoff.c (_bfd_ecoff_bfd_link_hash_table_create): Likewise.
+       * i386linux.c (linux_link_hash_table_create): Likewise.
+       * linker.c (_bfd_generic_link_hash_table_create): Likewise.
+       * sunos.c (sunos_link_hash_table_create): Likewise.
+
+       Based on patches from Eric Youngdale <eric@aib.com>:
+       * elflink.h (NAME(bfd_elf,size_dynamic_sections)): If -Bsymbolic,
+       output a DT_SYMBOLIC dynamic entry.
+       (elf_adjust_dynamic_symbol): If -Bsymbolic, don't require a PLT
+       entry for a locally defined symbol.
+       * elf32-i386.c (elf_i386_relocate_section): If -Bsymbolic, do warn
+       about undefined symbols, and fill in the GOT entry for a symbol
+       defined in a regular object file.
+       (elf_i386_finish_dynamic_symbol): If -Bsymbolic, output a RELATIVE
+       reloc rather than a GLOB_DAT reloc for a symbol defined in a
+       regular object file.
+       * elf32-m68k.c (elf_m68k_relocate_section): If -Bsymbolic, do warn
+       about undefined symbols, and fill in the GOT entry for a symbol
+       defined in a regular object file.
+       (elf_m68k_finish_dynamic_symbol): If -Bsymbolic, output a RELATIVE
+       reloc rather than a GLOB_DAT reloc for a symbol defined in a
+       regular object file.
+       * elf32-sparc.c (elf32_sparc_relocate_section): If -Bsymbolic, do
+       warn about undefined symbols, and fill in the GOT entry for a
+       symbol defined in a regular object file.
+       (elf32_sparc_finish_dynamic_symbol): If -Bsymbolic, output a
+       RELATIVE reloc rather than a GLOB_DAT reloc for a symbol defined
+       in a regular object file.
+
+       * config/m68k-coff.mt (SELECT_VECS): Rename from SELECT_VECTORS.
+       Correct elements to be actual BFD vector names.
+
+       * Makefile.in (Makefile): Don't depend upon @frags@.
+       (config.status): Depend upon @frags@.
+
+Fri Jul  7 17:36:44 1995  Ian Lance Taylor  <ian@cygnus.com>
+
+       * coffgen.c (coff_renumber_symbols): Sort defined symbols that are
+       neither BSF_FUNCTION not BSF_NOT_AT_END just before undefined
+       symbols.
+       * coffcode.h (coff_slurp_symbol_table): Set BSF_FUNCTION as well
+       as BSF_NOT_AT_END.
+
+Fri Jul  7 17:16:15 1995  Ken Raeburn  <raeburn@cygnus.com>
+
+       * Makefile.in (do_mostlyclean): Remove config.log.
+       (do_distclean): Remove config.cache.
+
+Thu Jul  6 14:37:43 1995  Ian Lance Taylor  <ian@cygnus.com>
+
+       * elf32-i386.c (elf_i386_relocate_section): Revert May 24 patch.
+        Don't copy PC32 reloc against section into shared object.
+
+       * Makefile.in: Rebuild dependencies.
+       (CFILES): Added elflink.c.
+       (Makefile): Depend upon config.status, not configure.in.
+       (config.status): New target; depend upon configure configure.host
+       and config.bfd.
+
+Wed Jul  5 20:17:14 1995  Ken Raeburn  <raeburn@cygnus.com>
+
+       * elfcore.h, elflink.h, elfcode.h, elf.c, elflink.c: Moved some
+       primarily size-independent code from elfcode.h to elf.c and new
+       file elflink.c; moved out other core- or linker-related routines
+       into other new .h files for clarity.  Renamed many routines to
+       start with bfd_elf or _bfd_elf.  Added a structure of
+       size-dependent but target-independent info to elfcode.h.
+       * Makefile.in: Build elflink.o.  Update dependencies.
+       * libelf.h: Updated some declarations.  Added a definition for the
+       new structure in elfcode.h.  Added more fields to elf backend data
+       structure.
+       * elfxx-target.h: Refer to the appropriate size-dependent info.
+       * elf32-*.c: Changed some function names.  Moved common
+       create_dynamic_sections code from m68k, sparc, and i386 support
+       into elflink.c.  Define some new macros to fill in new fields of
+       back end data.  Also clean up some "gcc -Wall" warnings regarding
+       unused or uninitialized variables.
+
+       * Makefile.in (BFD_LIBS): No, don't put elflink.o here.
+       * configure.in: Include it here whenever elf.o is specified.
+
+Wed Jul  5 10:31:47 1995  Ian Lance Taylor  <ian@cygnus.com>
+
+       * elf32-mips.c (mips_elf_object_p): Unconditionally set
+       elf_bad_symtab, since sometimes the symbol table is messed up and
+       the last symbol is global.
+
+       * ecoff.c (_bfd_ecoff_bfd_is_local_label): New function.
+       * libecoff.h (_bfd_ecoff_bfd_is_local_label): Declare.
+       * elf32-mips.c (mips_elf_is_local_label): New static function.
+       (bfd_elf32_bfd_is_local_label): Define.
+
+       * configure.in: Use $ac_config_sub, not $configsub.
+       * configure: Likewise.
+
+       Permit --enable-targets=ieee:
+       * config.bfd (*-*-ieee*): New target.
+       * config/ieee.mt: New file.
+
 Wed Jul  5 04:16:35 1995  Ken Raeburn  <raeburn@kr-pc.cygnus.com>
 
        * config/i386aix.mh (HDEFINES): Remove -DFASCIST_FDOPEN.
@@ -176,7 +443,7 @@ Wed Jun 21 10:16:10 1995  Steve Chamberlain  <sac@slash.cygnus.com>
 Mon Jun 19 08:40:45 1995  Steve Chamberlain  <sac@slash.cygnus.com>
 
        * syms.c (coff_section_type): Compare only the front part
-       of a section name. (bfd/7238)
+       of a section name.
 
 Sat Jun 17 09:40:44 1995  Jeff Law  (law@snake.cs.utah.edu)
 
@@ -276,7 +543,7 @@ Tue Jun  6 17:29:32 1995  Steve Chamberlain  <sac@slash.cygnus.com>
 Mon Jun  5 09:07:13 1995  Steve Chamberlain  <sac@slash.cygnus.com>
 
        * coff-a29k.c (coff_a29k_adjust_symndx): Completely parenthesize
-       macro. (pr ld/7127)
+       macro.
 
 Mon Jun  5 02:15:20 1995  Ken Raeburn  <raeburn@kr-laptop.cygnus.com>
 
@@ -333,7 +600,7 @@ Wed May 24 10:40:00 1995  Steve Chamberlain  <sac@slash.cygnus.com>
        Support for ARM-PE.
 
        * Makefile.in, coffcode.h, config.bfd, configure.in, pe-arm.c,
-        pei-arm.c, reloc.c, targets.c, config/arm-pe.mt:
+        pei-arm.c, coff-arm.c, reloc.c, targets.c, config/arm-pe.mt:
         Support for ARM COFF/PE.
 
 Tue May 23 19:24:58 1995  Ken Raeburn  <raeburn@cujo.cygnus.com>
@@ -421,8 +688,6 @@ Thu May 11 16:43:14 1995  Steve Chamberlain  <sac@slash.cygnus.com>
 
 Thu May 11 16:43:14 1995  Steve Chamberlain  <sac@slash.cygnus.com>
 
-       pr ld/6840
-
        * coff-i960.c (optcall_callback): don't try and optimize
        undefined refs. 
        (coff_write_relocs): Search for broken relocs on the way
This page took 0.025614 seconds and 4 git commands to generate.