* aoutx.h (NAME(aout,link_hash_table_create)): Allocate hash table
[deliverable/binutils-gdb.git] / bfd / ChangeLog
index 015ac61db0896999fcbc3304a5defacfe6947190..c98c08d612d67f120fa155ff469895d26b6d4565 100644 (file)
@@ -1,6 +1,229 @@
+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>
+
+       * 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.
+
+       Autoconfiscation:
+       * configure.in, Makefile.in, doc/Makefile.in: Switch from Cygnus
+       configure to autoconf ways of processing --enable arguments,
+       setting up symlinks, incorporating makefile fragments, printing
+       messages at configuration time, setting variables in Makefile.
+       Deleted some unused variables.  Check for ranlib via autoconf.
+       For now, configure script removes doc/config.status.
+       * configure: New file.
+       * dep-in.sed: Use @SRCDIR@ instead of @srcdir@, so Makefile.in
+       line doesn't get broken by configure.
+       * doc/configure.in: Removed.
+
+Tue Jul  4 12:22:21 1995  Ian Lance Taylor  <ian@cygnus.com>
+
+       * archive.c (_bfd_construct_extended_name_table): If
+       BFD_TRADITIONAL_FORMAT is set, limit the length of all file names
+       to ar_max_namelen.
+       (bfd_dont_truncate_arname): If BFD_TRADITIONAL_FORMAT is set, call
+       bfd_bsd_truncate_arname.
+       (_bfd_write_archive_contents): Revert June 1 change.
+
+       * elfcode.h (NAME(bfd_elf,record_link_assignment)): Add provide
+       argument.
+       * bfd-in.h (bfd_elf32_record_link_assignment): Update prototype.
+       (bfd_elf64_record_link_assignment): Likewise.
+       * bfd-in2.h: Rebuild.
+
+       * libelf.h (struct elf_link_hash_table): Add needed field.  Remove
+       saw_needed field.
+       * elfcode.h (elf_link_add_object_symbols): If elf_dt_needed_name
+       is an empty string, don't make a DT_NEEDED entry in the output
+       file.  Record all DT_NEEDED entries found in input dynamic
+       objects.
+       (elf_link_output_extsym): Don't check saw_needed when issuing
+       warnings.
+       * elf.c (_bfd_elf_link_hash_table_init): Initialize needed, not
+       saw_needed.
+       (bfd_elf_get_needed_list): New function.
+       * bfd-in.h (struct bfd_elf_link_needed_list): Define.
+       (bfd_elf_get_needed_list): Define.
+       * bfd-in2.h: Rebuild.
+
+       * ecoff.c (_bfd_ecoff_find_nearest_line): Also initialize
+       find_buffer and fdrtab_len fields of newly allocated
+       find_line_info structure.
+
+Mon Jul  3 17:03:52 1995  Jeff Law  (law@snake.cs.utah.edu)
+
+       * som.c (hppa_som_gen_reloc_type): New argument "sym_diff",
+       nonzero when we're generating relocations for an expression
+       using the difference of two symbols.  All callers changed.
+       Handle difference of symbols for both R_HPPA and R_COMPLEX
+       cases.
+       (som_write_fixups): Handle R_COMP1, R_COMP2 and R_CODE_EXPR
+       fixups.
+
+Mon Jul  3 13:55:18 1995  Steve Chamberlain  <sac@slash.cygnus.com>
+
+       * config.bfd (win32): New configuration.
+       * configure.host (pe): Changed to i386win32.
+       * config/i386pe.mh: Deleted.
+       * config/i386win32.mh: New file.
+
+Mon Jul  3 11:30:45 1995  Ian Lance Taylor  <ian@cygnus.com>
+
+       * ecoff.c (_bfd_ecoff_find_nearest_line): If we allocate
+       find_line_info, clear the fdrtab field.
+
+       * targets.c (enum bfd_flavour): Add bfd_target_msdos_flavour here,
+       rather than in bfd-in2.h.
+
+       * bfd.c (enum bfd_error): Define bfd_error_no_armap.
+       (bfd_errmsgs): Add string for bfd_error_no_armap.
+       * bfd-in2.h: Rebuild.
+       * ecoff.c (ecoff_link_add_archive_symbols): If an archive has no
+       armap, set bfd_error_no_armap rather than bfd_error_no_symbols.
+       * elfcode.h (elf_link_add_archive_symbols): Likewise.
+       * linker.c (_bfd_generic_link_add_archive_symbols): Likewise.
+
+       * elfcode.h (elf_link_add_object_symbols): Permit common and
+       indirect symbols in weakdefs BFD_ASSERT.
+       * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Simplify
+       BFD_ASSERT to permit some legal, but odd, cases.
+       * elf32-sparc.c (elf32_sparc_adjust_dynamic_symbol): Likewise.
+       * elf32-m68k.c (elf_m68k_adjust_dynamic_symbol): Likewise.
+
+       * Makefile.in: Rebuild dependencies.
+       (BFD32_BACKENDS): Add versados.o.
+       (CFILES): Add pe-i386.c, pei-i386.c, and versados.c.
+start-sanitize-arc
+       (elf32-arc.o): New target.  This target should be removed when
+       elf32-arc.c can be added to CFILES, after which the automatic
+       dependency building will handle it.
+end-sanitize-arc
+
+Sun Jul  2 17:49:32 1995  Ian Lance Taylor  <ian@cygnus.com>
+
+       * cofflink.c (_bfd_coff_generic_relocate_section): Cast base_file
+       to FILE * before using it.
+       * stab-syms.c: Revert yesterday's patch.
+
+Sat Jul  1 12:10:42 1995  Fred Fish  <fnf@cygnus.com>
+
+       * stab-syms.c (stdio.h):  Include prior to libaout.h, which
+       includes bfdlink.h, which now uses FILE.
+
 Sat Jul  1 00:11:08 1995  Ken Raeburn  <raeburn@cygnus.com>
 
        * elfxx-target.h: New file.
+
+       * libelf.h (struct elf_backend_data): Remove elf_64_p field.
+       * elfxx-target.h (elfNN_bed): Don't set it.
+
        * elf32-target.h, elf64-target.h: Deleted.
        * Makefile.in (elf32-target.h, elf64-target.h): Build them from
        elfxx-target.h.
@@ -10,7 +233,7 @@ Fri Jun 30 16:07:18 1995  Steve Chamberlain  <sac@slash.cygnus.com>
        * cofflink.c (_bfd_coff_generic_relocate_section): Compare
        the full text of .reloc or .edata section names.
 
-Fri Jun 30 15:47:37 1995  Fred Fish  <fnf@deneb.cygnus.com>
+Fri Jun 30 15:47:37 1995  Fred Fish  <fnf@cygnus.com>
 
        * cofflink.c (_bfd_coff_generic_relocate_section):
        Remove extra '+'.
@@ -162,7 +385,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>
 
@@ -211,8 +434,6 @@ Wed May 24 10:52:01 1995  Steve Chamberlain  <sac@slash.cygnus.com>
        * linker.c (_bfd_generic_link_output_symbols): Cope with
        indirect symbols.
 
-       pr ld/6997
-
        * elf32-i386.c (elf_i386_relocate_section): Give error
        message when linking to a shared reloc which isn't there.
 
@@ -309,8 +530,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.0287 seconds and 4 git commands to generate.