]> Git Repo - binutils.git/blobdiff - bfd/ChangeLog
* som.c (som_begin_writing): Don't forget to bump the
[binutils.git] / bfd / ChangeLog
index 8b598d266e2cfe85e102550858f3cea88b4bd57a..b59f4e7670a8159da6c2b15ba97ba94142460337 100644 (file)
@@ -1,3 +1,435 @@
+Wed Jan  4 14:14:05 1995  Jeff Law  ([email protected])
+
+       * som.c (som_begin_writing): Don't forget to bump the
+       total_subspaces when writing the unloadable subspaces.
+
+Wed Dec 28 20:54:47 1994  Jeff Law  ([email protected])
+
+       * som.c (som_write_fixups): Use SEC_HAS_CONTENTS to identify
+       bss-like sections.
+       (som_get_section_contents): Likewise.
+       (som_set_section_contents): Likewise.
+
+Tue Dec 27 14:03:47 1994  Jeff Law  ([email protected])
+
+       * som.c (setup_sections): Turn off SEC_HAS_CONTENTS for bss-like
+       sections.
+
+Tue Dec 20 15:30:12 1994  Ken Raeburn  <[email protected]>
+
+       * coffgen.c (bfd_debug_section): Deleted.
+       (coff_section_from_bfd_index): Return absolute section for debug
+       symbol.
+       (coff_write_symbol): Set BSF_DEBUGGING for C_FILE symbols.  If
+       BSF_DEBUGGING is set, set section to N_DEBUG.
+       (coff_bfd_make_debug_symbol): Use absolute section.
+
+       * elfcode.h (assign_file_positions_except_relocs): In assertion,
+       force all values to the same type.
+
+Tue Dec 20 11:11:58 1994  Steve Chamberlain  ([email protected])
+
+       * coff-h8300.c (howto_table): All relocs get a special function.
+       (special): Never do anything when linking -r.
+
+Tue Dec 20 13:58:01 1994  Ian Lance Taylor  <[email protected]>
+
+       * i386linux.c (linux_add_one_symbol): Don't do anything Linux
+       specific if this is not a Linux hash table.  From Eric Youngdale
+       <[email protected]>.
+
+       Patches from [email protected] (Kazumoto Kojima):
+       * mipsbsd.c (mips_howto_table_ext): Change sizes of memory relocs
+       apply to from two bytes to four bytes.
+       * MY(reloc_howto_type_lookup): Handle BFD_RELOC_CTOR.
+
+       * elf32-i386.c (elf_i386_relocate_section): Correct and expand the
+       list of cases for which relocation need not be computed.
+       * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
+
+start-sanitize-arc
+Tue Dec 20 09:01:01 1994  Doug Evans  <[email protected]>
+
+       * elf32-arc.c (elf_arc_howto_table, R_ARC_B22_PCREL): Value is
+       right-shifted 2 bits.  Fix dst_mask.
+end-sanitize-arc
+
+Mon Dec 19 23:09:16 1994  Jeff Law  ([email protected])
+
+       * elf32-hppa.c (elf32_hppa_read_symext_info): Delete do_locals and
+       do_globals arguments, always read symbol extension information for
+       globals and locals.  All callers changed.
+       (elf32_hppa_size_stubs): Rework to only read symbol extension
+       information once for each input bfd.  10% improvement in linker
+       performance.
+
+Fri Dec 16 12:28:46 1994  Ian Lance Taylor  <[email protected]>
+
+       * elfcode.h (elf_section_from_bfd_section): Check
+       bfd_is_abs_section, etc., only after checking for the section in
+       the BFD and after calling the backend routine.
+
+Wed Dec 14 20:21:58 1994  Ian Lance Taylor  <[email protected]>
+
+       * elfcode.h (elf_map_symbols): Only use section symbols whose
+       value is the start of the section, checking output_offset when
+       using output_section.  When creating a new symbol, set the value
+       to 0, since BFD symbol values are section relative.
+
+Tue Dec 13 13:31:06 1994  Ian Lance Taylor  <[email protected]>
+
+       * cpu-z8k.c (arch_info_struct): Make z8002 the default
+       architecture.
+
+Fri Dec  9 12:43:05 1994  Ian Lance Taylor  <[email protected]>
+
+       * elfcode.h (elf_bfd_link_add_symbols): If the first object in the
+       archive is not an ELF object, pass the archive to the add_symbols
+       entry point appropriate for the first object.  From Eric Youngdale
+       <[email protected]>.
+       * aoutx.h (NAME(aout,link_add_symbols)): Similar change if the
+       first object is not an a.out object.
+
+       * elf32-i386.c (elf_i386_relocate_section): Don't compute
+       relocation in cases where we won't use it.
+       * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
+
+Thu Dec  8 14:19:41 1994  Ken Raeburn  <[email protected]>
+
+       * pc532-mach.c (NAME): Define to use ns32kaout prefix.
+       * ns32knetbsd.c (NAME): Ditto.
+       (ns32kaout_32_get_section_contents): Define to standard aout-32
+       version.
+
+Fri Dec  2 13:56:49 1994  Ian Lance Taylor  <[email protected]>
+
+       * coff-mips.c (mips_read_relocs): New static function, broken out
+       of mips_relax_section.
+       (mips_relax_section): Call mips_read_relocs.
+       (bfd_mips_ecoff_create_embedded_relocs): New function.
+       * bfd-in.h (bfd_mnips_ecoff_create_embedded_relocs): Declare.
+       * bfd-in2.h: Rebuild.
+
+Wed Nov 30 14:12:55 1994  Ian Lance Taylor  ([email protected])
+
+       * coff-sh.c: Use _bfd_dummy_target instead of no_archive.
+
+start-sanitize-arc
+Tue Nov 29 17:14:21 1994  Doug Evans  <[email protected]>
+
+       * archures.c: Initial support for the ARC.
+       * reloc.c, targets.c, config.bfd, configure.in, elfcode.h: Likewise.
+       * bfd-in2.h: Regenerated.
+       * libbfd.h: Likewise.
+       * config/arc-elf.mt: New file.
+end-sanitize-arc
+
+Tue Nov 29 14:00:19 1994  J.T. Conklin  <[email protected]>
+
+       * config.bfd (i[345]86-*-freebsd*): Use i386-bsd as bfd_name.
+       * configure.host (i[345]86-*-freebsd*): Use i386bsd as my_host.
+
+Mon Nov 28 15:36:04 1994  J.T. Conklin  ([email protected])
+
+       * config/m68k-nbsd.mt (DEFAULT_VECTOR): set to m68knetbsd_vec.
+       * Makefile.in: Rebuilt dependancies.
+         (CFILES): Added m68knetbsd.c.
+         (HFILES): Added netbsd.h.
+
+Wed Nov 23 19:21:41 1994  Steve Chamberlain  ([email protected])
+
+       * coff-sh.c (shlcoff_vec): New target vector.
+       (no_archive): New function.
+       * coffcode.h (coff_set_arch_mach_hook, coff_set_flags): Handle
+       little endian SH.
+       * configure.in: Handle shl.
+       * targets.c (bfd_target_vector): Add shlcoff_vec.
+       * config/sh-coff.mt (SELECT_VECS): Handle shl_coff_vec.
+
+Wed Nov 23 10:50:13 1994  Jeff Law  ([email protected])
+
+       * elfcode.h (write_relocs): Do not subtract the section's vma from
+       the reloc's offset when writing .o's.  Instead add the section's
+       vma to the reloc's offset when writing an executable or shared
+       library.
+
+Tue Nov 22 23:34:37 1994  Jeff Law  ([email protected])
+
+       * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Do not add
+       input_section->vma to the relocation's offset.
+
+Mon Nov 21 12:37:25 1994  Ian Lance Taylor  <[email protected]>
+
+       * srec.c (srec_get_reloc_upper_bound): Define.
+       (srec_canonicalize_reloc): Define.
+       (srec_bfd_reloc_type_lookup): Define.
+       (srec_vec, symbolsrec_vec): Use BFD_JUMP_TABLE_RELOCS (srec).
+
+Sat Nov 19 03:10:51 1994  Peter Schauer  ([email protected])
+
+       * configure.host (i[345]86-*-solaris*):  Use solaris2 to
+       enable extraction of procfs info from core file for GDB.
+
+Thu Nov 17 17:37:39 1994  Ken Raeburn  <[email protected]>
+
+       * reloc.c (bfd_reloc_code_type): Add new value BFD_RELOC_12_PCREL.
+       * bfd-in2.h, libbfd.h: Rebuilt.
+
+Thu Nov 17 13:12:08 1994  Jeff Law  ([email protected])
+
+       * bfd/elf32-hppa.c (elf32_hppa_bfd_final_link_relocated): Use the
+       vma from the output_section containing $global$ when computing
+       global_vlaue.
+
+Thu Nov 17 14:29:13 1994  Ian Lance Taylor  <[email protected]>
+
+       * archive.c (_bfd_write_archive_contents): Round up the archive
+       header size of the extended name table to an even number.
+
+Wed Nov 16 16:08:06 1994  Ken Raeburn  <[email protected]>
+
+       * coff-sh.c: Deleted some code that was commented out or inside
+       "#if 0".
+       (COFF_LONG_FILENAMES): Define.
+
+       * cpu-sh.c (arch_info_struct): Convert name to lowercase, for
+       consistency with other architectures.
+
+Sat Nov 12 23:50:10 1994  Ian Lance Taylor  ([email protected])
+
+       * elfcode.h (elf_export_symbol): Also export symbols which are
+       referenced by a regular file.
+
+Fri Nov 11 14:29:31 1994  Ian Lance Taylor  <[email protected]>
+
+       * elfcode.h (NAME(bfd_elf,size_dynamic_sections)): Add
+       export_dynamic argument, and handle it.
+       (elf_export_symbol): New function.
+       * bfd-in.h (bfd_elf32_size_dynamic_sections): Update declaration.
+       (bfd_elf64_size_dynamic_sections): Update declaration.
+       * bfd-in2.h: Rebuild.
+
+Fri Nov 11 10:35:33 1994  Jeff Law  ([email protected])
+
+       * hpux-core.c (hpux_core_struct): Delete handles for the
+       data, reg and stack sections.  They're never used.  Delete
+       accessor macros.
+       (make_bfd_asection): Use bfd_make_section_anyway since debugging
+       cores from dynamic executables may have several sections with the
+       same logical name.
+       (hpux_core_core_file_p): Don't save handles to data, reg and
+       stack sections.  Handle CORE_TEXT, CORE_MMF and CORE_SHM.
+
+Tue Nov  8 13:03:30 1994  Ian Lance Taylor  <[email protected]>
+
+       * bout.c (callj_callback): Add new argument shrinking.  Change all
+       callers.  Handle relocs against section symbols correctly.  If not
+       shrinking, don't subtract out dstidx; the subtraction is already
+       in the object file.
+
+Sun Nov  6 12:52:00 1994  Jeff Law  ([email protected])
+
+       * som.h: Conditionally include <shl.h> and <dl.h>.
+
+Thu Nov  3 18:19:13 1994  Ken Raeburn  <[email protected]>
+
+       * Makefile.in (ALL_MACHINES): Include m68knetbsd.o.
+
+       * config/i386linux.mh (EXTRALIBS): Include -lm.
+
+       Patches from DJ Delorie:
+       * coff-go32.c: Replacement file, uses coff-i386.c with minor
+       changes.
+       * coff-i386.c (TARGET_UNDERSCORE): allow other files to override
+       underscore also
+       * makefile.dos: del ctor.o, add cofflink.o and elf32.o
+
+       * aoutx.h (adjust_o_magic): If user set data section vma, use it
+       to determine the default bss vma.  Patch from Takada Hiroaki,
+       [email protected].
+       (machine_type, case bfd_arch_vax): Set *unknown to false.  Patch
+       from John David Anglin <[email protected]>.
+
+       * configure.in (tb): Rename ns32knetbsd_vec to pc532netbsd_vec,
+       since that's what it's called.
+
+Wed Nov  2 15:24:51 1994  Ian Lance Taylor  <[email protected]>
+
+       * archive.c (normalize): Change to take a BFD as an argument.
+       Change VMS version to use bfd_alloc rather than malloc, so that we
+       don't lose the memory forever.
+       (_bfd_construct_extended_name_table): Check the name of an archive
+       entry which is not being extended, and correct it if it is wrong.
+       This is necessary in case the archive was constructed by another
+       program which put an entry in the extended name table which we
+       don't plan to put in ourselves.  From [email protected] (James
+       Clark).
+       (bfd_dont_truncate_arname): Check return value of normalize.
+
+Mon Oct 31 14:19:08 1994  Ian Lance Taylor  <[email protected]>
+
+       * elf32-hppa.c (ELF32_PARISC_SX_SIZE): Define.
+       (ELF32_PARISC_SX_GET, ELF32_PARISC_SX_PUT): Define.
+       (symextn_entry): Don't define.
+       (symext_chain_size): Change type to bfd_size_type.
+       (symextn_contents): Change type to bfd_byte *.
+       (elf32_hppa_backend_begin_write_processing): Use
+       ELF32_PARISC_SX_SIZE instead of sizeof (symext_entryS).
+       (elf32_hppa_size_symext): Likewise.  Also, change type of sizep to
+       bfd_size_type *.
+       (elf_hppa_tc_make_sections): Cast symextn_contents assignment to
+       bfd_byte *.  Use ELF32_PARISC_SX_PUT instead of direct assignment.
+       (elf32_hppa_backend_symbol_table_processing): Use
+       ELF32_PARISC_SX_SIZE instead of sizeof (symext_entryS).  Use
+       ELF32_PARISC_SX_GET insetad of direct assignment.
+       (elf32_hppa_read_symext_info): Change type of contents, and its
+       assignment cast, to bfd_byte *.  Use ELF32_PARISC_SX_SIZE instead
+       of sizeof (symextn_entry).  Use symext_entryS instead of
+       symextn_entry.  Use ELF32_PARISC_SX_GET instead of direct
+       assignment.
+
+       * archive.c (bfd_dont_truncate_arname): Add the ar padding
+       character, if there is room for it, even if the name is the
+       maximum length.
+
+       * elfcode.h (assign_file_positions_except_relocs): Sort the ELF
+       headers by section address when assigning file positions.
+       (elf_sort_hdrs): New static function.
+
+Sun Oct 30 18:56:58 1994  Ian Lance Taylor  <[email protected]>
+
+       * elfcode.h (NAME(bfd_elf,size_dynamic_sections)): Create DT_INIT
+       and DT_FINI dynamic entries based on the existence of _init and
+       _fini symbols, not on the .init and .fini sections.  This is
+       compatible with some SVR4 linkers.
+       (elf_bfd_final_link): Corresponding change.
+
+Sat Oct 29 12:18:10 1994  Ian Lance Taylor  ([email protected])
+
+       * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Don't move a
+       symbol with a PLT entry into the .plt section if it is defined in
+       a regular file.
+       * elf32-sparc.c (elf32_sparc_adjust_dynamic_symbol): Likewise.
+
+       * linker.c (_bfd_generic_link_add_archive_symbols): It's not an
+       error if an empty archive has no symbol table.
+       * ecoff.c (ecoff_link_add_archive_symbols): Likewise.
+       * elfcode.h (elf_link_add_archive_symbols): Likewise.
+
+Fri Oct 28 10:08:41 1994  J.T. Conklin  ([email protected])
+
+        NetBSD/m68k support, based on work by [email protected]
+       * config.bfd (m68*-*-netbsd*): Use m68k-nbsd as bfd_name.
+       * configure.in (m68knetbsd_vec): Added.
+       * targets.c (bfd_m68knetbsd_vec): Added.
+       * hosts/m68knbsd.h, config/m68k-nbsd.mt, m68knetbsd.c: New files.
+       * Makefile.in (BFD32_BACKENDS, CFILES): Add m68knetbsd.c.
+
+       miscellaneous cleanup required by all netbsd targets, based on work 
+       by Andrew Cagney <[email protected]>:
+       * netbsd.h (N_MAGIC, N_SET_MAGIC, N_GETMAGIC, N_GETMAGIC2, N_TXTADDR,
+         N_TXTOFF, N_ALIGN, N_DATADDR, N_DATOFF): Removed.  Generic a.out
+         definitions work.
+       * i386nbsd.c, ns32knbsd.c, sparcnbsd.c (__LDPGSZ): Removed.
+         (MY(write_object_contents)): Use NetBSD's magic numbers
+
+Thu Oct 27 16:59:52 1994  Ian Lance Taylor  <[email protected]>
+
+       * libelf.h (struct bfd_elf_section_data): Add field dynindx.
+       * elfcode.h (NAME(bfd_elf,size_dynamic_sections)): Don't finalize
+       the .dynsym, .dynstr or .hash sections until after the backend
+       size_dynamic_sections routine, so that it can add dynamic symbols
+       if it wants to.
+       * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Don't define the
+       symbol to be in the .plt section when generating a shared library
+       if it is a defined symbol.
+       * elf32-sparc.c (elf32_sparc_adjust_dynamic_symbol): Likewise.
+       (elf32_sparc_size_dynamic_sections): When generating a shared
+       library, allocate space for a dynamic symbol for each output
+       section, storing the index in the dynindx field of the ELF section
+       data.  Adjust the other dynindx fields to account for this.
+       (elf32_sparc_adjust_dynindx): New static function.
+       (elf32_sparc_relocate_section): When copying a reloc into a shared
+       library, use the original addend as appropriate.  Convert an
+       R_SPARC_32 reloc into an R_SPARC_RELATIVE reloc.  Use the dynamic
+       symbol index of the output section, not the normal symbol index.
+       (elf32_sparc_finish_dynamic_sections): Don't die if a section does
+       not exist when setting the value of the dynamic tags.  Write out
+       a dynamic symbol for each output section.
+
+Wed Oct 26 01:15:51 1994  Ian Lance Taylor  ([email protected])
+
+       * aoutx.h (aout_link_input_section): Don't bother to read or write
+       the relocs if there aren't any.
+
+Tue Oct 25 11:44:38 1994  Ian Lance Taylor  <[email protected]>
+
+       * Makefile.in (ALL_MACHINES): Add tekhex.o.
+       * targets.c (bfd_target_vector): If SELECT_VECS is not defined,
+       include tekhex_vec.
+       * tekhex.c (NIBBLE, ISHEX): Cast array arguments to unsigned char.
+       (getvalue, getsym, out): Likewise.
+       (find_chunk): Remove unused variable s.
+       (first_phase): Remove unused variable s.
+       (pass_over): Remove unused variable address.
+       (tekhex_object_p): Remove unused variable section.
+       (move_section_contents): Change return type from boolean to void.
+       (tekhex_write_object_contents): Remove unused variables tdata and
+       list.
+
+       * linker.c (enum link_action): Add CIND.
+       (link_action): Change COMMON_ROW\indr from MDEF to CREF.  Change
+       INDR_ROW\common from MDEF to CIND.
+       (_bfd_generic_link_add_one_symbol): In CREF case, handle an
+       existing symbol which is indirect rather than defined.  Add new
+       CIND case.
+
+Mon Oct 24 15:33:16 1994  Ian Lance Taylor  <[email protected]>
+
+       Change S-record backend to use multiple sections to handle gaps in
+       file.
+       * srec.c (srec_data_list_struct): Move field next from last place
+       to first.  Change type of data to bfd_byte *.
+       (struct srec_symbol): Define.
+       (tdata_type): Remove done_symbol_read, count, strings, symbol_idx,
+       string_size, string_idx.  Change type of symbols to struct
+       srec_symbol *.  Add symtail and csymbols.
+       (low, high): Remove.
+       (size_symbols, fillup_symbols, size_srec, fillup): Remove.
+       (white, skipwhite, pass_over, object_p): Remove.
+       (srec_mkobject): Call srec_init.  Adjust tdata initialization for
+       field changes.
+       (srec_get_byte, srec_bad_byte): New static functions.
+       (srec_new_symbol, srec_scan): New static functions.
+       (srec_object_p): Change type of b to bfd_byte.  Explicitly set
+       wrong_format error.  Call srec_mkobject and srec_scan instead of
+       object_p.
+       (symbolsrec_object_p): Likewise.  Also, change b to be only two
+       bytes.
+       (srec_read_section): New static function.
+       (srec_get_section_contents): Call srec_read_section rather than
+       pass_over.  Handle zero length section correctly.
+       (set_set_arch_mach): Change from function to macro.
+       (srec_set_section_contents): Change data to bfd_byte *.
+       (srec_write_record): Change data, end and src to bfd_byte *.
+       (srec_write_header): Change buffer and dst to bfd_byte *.
+       (srec_write_section): Change location to bfd_byte *.
+       (srec_write_terminator): Change buffer to bfd_byte *.
+       (srec_get_symtab_upper_bound): Don't call
+       srec_get_section_contents.
+       (srec_get_symtab): Rewrite.
+
+       * ecoff.c (ecoff_set_symbol_info): Set udata.i to 0, not NULL.
+
+Fri Oct 21 16:43:13 1994  J.T. Conklin  ([email protected])
+
+       * libaout.h (machine_type): added M_68K_NETBSD and M_SPARC_NETBSD.
+       * i386netbsd.c, ns32knetbsd.c, sparcnetbsd.c: removed RCS Id's.
+         changed how PAGE_SIZE and SEGMENT_SIZE are defined so they are
+         consistant with each other.
+       * netbsd.h (N_HEADER_IN_TEXT, TEXT_START_ADDR): NetBSD fits its
+         header into the start of its text segment.
+
 Fri Oct 21 17:13:07 1994  Ian Lance Taylor  <[email protected]>
 
        * targets.c (BFD_JUMP_TABLE_ARCHIVE): Add case for
This page took 0.030833 seconds and 4 git commands to generate.