* coffgen.c (coff_print_symbol): Make names for section number and
[deliverable/binutils-gdb.git] / bfd / ChangeLog
index 4004317f0287c3ef61fe120ba010b5ba530f4239..86a6838415ceba7eddf6b74962d76d94ef470032 100644 (file)
@@ -1,3 +1,347 @@
+Wed Oct 19 13:28:29 1994  Jim Kingdon  (kingdon@lioth.cygnus.com)
+
+       * coffgen.c (coff_print_symbol): Make names for section number and
+       storage class slightly more verbose.  It's not clear how many
+       characters I can justify using up, but before this change they
+       both were abbreviated "sc" which is (IMHO) clearly unacceptable.
+
+Wed Oct 19 01:26:39 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
+
+       * binary.c (binary_set_section_contents): Set the base file
+       position from the lowest section VMA, not the start address.
+
+       * aoutx.h (NAME(aout,slurp_symbol_table)): Don't return an error
+       if there are no symbols.
+       * coffgen.c (coff_get_normalized_symtab): Likewise.
+       * hp300hpux.c (MY(slurp_symbol_table)): Likewise.
+
+Tue Oct 18 12:56:43 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
+
+       * aout-target.h (MY_bfd_copy_private_section_data): Only copy
+       subformat to another bfd_target_aout_flavour file.
+
+       * binary.c: New file for raw binary output format.
+       * Makefile.in (BFD_LIBS): Add binary.o.
+       (CFILES): Add binary.c.
+       * targets.c (binary_vec): Declare.
+       (bfd_target_vector): Include binary_vec.
+
+       * srec.c (tdata_type): Add field tail.
+       (srec_mkobject): Initialize tail.
+       (srec_set_section_contents): Sort S record list by address.
+
+Mon Oct 17 11:38:16 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
+
+       * elfcode.h (elf_map_symbols): Sort the symbols into a new array,
+       rather than messing with Elf_Sym_Extra.  Store the symbol index in
+       the udata.i field.
+       (swap_out_syms): Use outbound_syms as a pointer rather than as an
+       array.  Don't worry about elf_sym_num.
+       * libelf.h (struct elf_sym_extra): Don't define.
+       (Elf_Sym_Extra): Don't define.
+       (struct elf_obj_tdata): Remove sym_extra field.
+       (elf_sym_extra): Don't define.
+       * elf32-hppa.c (elf32_hppa_backend_final_write_processing): Use
+       udata.i rather than elf_sym_extra array.
+
+       * syms.c (asymbol): Change udata field into a union.
+       * bfd-in2.h: Rebuild.
+       * aoutx.h (NAME(aout,translate_symbol_table)): Use udata.p rather
+       than just udata.
+       * bout.c (perform_slip): Likewise.
+       * hp300hpux.c (MY(slurp_symbol_table)): Likewise.
+       * ieee.c (ieee_slurp_external_symbols): Likewise.
+       * linker.c (generic_link_add_symbol_list): Likewise.
+       (default_indirect_link_order): Likewise.
+       * oasys.c (oasys_slurp_symbol_table): Likewise.
+       * reloc16.c (bfd_perform_slip): Likewise.
+       * srec.c (fillup_symbols): Likewise.
+       * coffcode.h (get_index): Use udata.i rather than just udata.
+       (coff_slurp_symbol_table): Likewise.
+       * coffgen.c (set_index): Likewise.
+       * ecoff.c (ecoff_set_symbol_info): Likewise.
+       * elfcode.h (elf_symbol_from_bfd_symbol): Likewise.
+       * libecoff.h (ecoff_get_sym_index, ecoff_set_sym_index): Likewise.
+       * som.c (compare_syms): Likewise.
+       (som_prep_for_fixups): Likewise.
+       (som_write_fixups): Likewise.
+
+       Use a hash table when writing out ELF symbol names.
+       * elfcode.h (elf_stringtab_init): New static function.
+       (bfd_new_strtab, bfd_add_to_strtab, bfd_add_2_to_strtab): Remove.
+       Change all callers to use elf_stringtab_init or
+       _bfd_stringtab_add, and get stringtab lengths using
+       _bfd_stringtab_size.
+       (elf_fake_sections): Change ignored argument to pointer to
+       boolean, and set the boolean to true if an error occurs.  If an
+       error has already occurred, don't do anything.
+       (assign_section_numbers): Just set sh_size, not contents.
+       (elf_compute_section_file_positions): Pass the address of a
+       boolean to elf_fake_sections.  Pass the address of a
+       bfd_strtab_hash to swap_out_syms.  Write out the .strtab section.
+       (prep_headers): Change shstrtab to bfd_strtab_hash.
+       (swap_out_syms): Take a pointer to a bfd_strtab_hash as an
+       argument.  Set it to the symbol names.
+       (NAME(bfd_elf,write_object_contents)): Write out the section
+       header names using _bfd_stringtab_emit.
+       (elf_debug_section): Remove first argument; get the section name
+       via the bfd_section pointer.  Change caller.
+       (elf_bfd_final_link): Write out the symbol names using
+       _bfd_stringtab_emit.  Likewise for the .dynstr section contents.
+       Free the symbol names at the end of the function.
+       (elf_link_input_bfd): Remove the last argument, output_names,
+       from relocate_section.  Save the old symbol contents before
+       calling elf_link_output_sym, and restore them afterward.
+       * libelf.h (struct elf_link_hash_table): Change dynstr field to
+       struct bfd_strtab_hash.
+       (struct elf_backend_data): Remove last argument, output_names,
+       from elf_backend_relocate_section field.
+       (struct strtab): Don't define.
+       (struct elf_obj_tdata): Change strtab_ptr field to struct
+       bfd_strtab_hash.
+       * elf32-hppa.c (elf32_hppa_relocate_section): Remove last
+       argument, output_names.
+       * elf32-i386.c (elf_i386_relocate_section): Likewise.
+       * elf32-mips.c (mips_elf_relocate_section): Likewise.
+       * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
+
+       * libbfd-in.h (DEFAULT_STRING_SPACE_SIZE): Don't define.
+       (bfd_add_to_string_table): Don't declare.
+       * libbfd.h: Rebuild.
+       * libbfd.c (bfd_add_to_string_table): Remove.
+
+       * elfcode.h (elf_swap_shdr_in): Use bfd_section, not rawdata.
+       Clear contents field.
+       (bfd_section_from_shdr): In SHT_STRTAB case, check bfd_section,
+       not rawdata.  Don't set rawdata if e_shstrndx.  Use bfd_section
+       rather than rawdata in commented out code.  In SHT_REL[A] case,
+       don't bother to check elf_section_data of section returned by
+       section_from_elf_index.
+       (elf_fake_sections): Set bfd_section, not rawdata.  Don't set
+       size.
+       (elf_map_symbols): Don't set elf_num_section_syms.  Don't create
+       section symbols that already exist.
+       (assign_file_position_for_section): Use bfd_section, not rawdata.
+       (section_from_elf_index): Just check bfd_section field.
+       (elf_section_from_bfd_section): Likewise.
+       (elf_debug_section): Don't print rawdata, contents, or size.
+       (elf_link_add_object_symbols): Don't error out if
+       section_from_elf_index returns NULL.
+       (elf_bfd_final_link): Check return value from
+       section_from_elf_index against NULL, not bfd_is_abs_section.
+       (elf_link_input_bfd): Don't check section_from_elf_index return
+       value.
+       * libelf.h (struct elf_obj_tdata): Remove num_section_syms field.
+       (elf_num_section_syms): Don't define.
+       * elf.c (elf_get_str_section): Store section contents in contents
+       field rather than rawdata field.
+       (elf_string_from_elf_section): Likewise.
+       (_bfd_elf_make_section_from_shdr): Store BFD section pointer in
+       bfd_section field rather than rawdata field.
+       * elf32-hppa.c (elf32_hppa_read_symext_info): Use bfd_section
+       rather than rawdata.
+       (elf32_hppa_size_stubs): Likewise.
+       (elf32_hppa_backend_symbol_table_processing): Don't set
+       symextn_hdr->size; just use sh_size.
+       * elf32-mips.c (mips_elf_final_write_processing): Use bfd_section
+       rathern than rawdata.
+       (mips_elf_section_from_shdr): Likewise.
+       (mips_elf_section_processing): Likewise.
+       (mips_elf_section_from_bfd_section): Remove rawdata check.
+
+       * srec.c (pass_over): Set the start address for S7, S8 or S9.
+
+Fri Oct 14 19:15:46 1994  Ken Raeburn  <raeburn@cujo.cygnus.com>
+
+       * VERSION: Updated to 2.5.
+
+Fri Oct 14 11:07:50 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
+
+       * bfd.c (bfd_scan_vma): Cast end to be non const before passing it
+       to strtoul.
+
+Thu Oct 13 14:40:41 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
+
+       * bfd.c (bfd_scan_vma): Pass end argument on to strtoul.
+
+Wed Oct 12 16:46:43 1994  Ken Raeburn  <raeburn@cujo.cygnus.com>
+
+       * opncls.c (bfd_realloc): Deleted, since it's broken and fixing it
+       would make it slow.  Besides, it isn't used much.
+       * elfcode.h (elf_map_symbols): Always allocate new storage for the
+       symbol table.
+
+Wed Oct 12 11:54:37 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
+
+       * ecoff.c (ecoff_set_symbol_info): Mark local stProc, stLabel or
+       stabs symbols as BSF_DEBUGGING.
+
+       * rs6000-core.c (rs6000coff_core_file_matches_executable_p): Make
+       str1 and str2 const pointers.
+
+       * Makefile.in (INSTALL): Use top level install.sh script.
+       * config/README (INSTALL): Remove.
+       * config/delta88.mh (INSTALL): Remove.
+       * config/i386v4.mh (INSTALL): Remove.
+       * config/irix4.mh (INSTALL): Remove.
+       * config/irix5.mh (INSTALL): Remove.
+       * config/ncrt3000.mh (INSTALL): Remove.
+
+Tue Oct 11 13:57:56 1994  Eric Youngdale  (eric@andante.aib.com)
+
+       * elf32-i386.c (elf_i386_check_relocs): Make sure that a symbol
+       with a global offset table entry or a procedure linkage table
+       entry is added to the dynamic symbol table.
+       * elf32-sparc.c (elf32_sparc_check_relocs): Likewise.
+       * elf32-i386.c (elf_i386_adjust_dynamic_symbol): If a symbol has
+       already gotten a procedure linkage table entry, change the
+       definition to the PLT entry.
+       * elf32-sparc.c (elf32_sparc_adjust_dynamic_symbol): Likewise.
+
+Tue Oct 11 17:12:00 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
+
+       * lynx-core.c (lynx_core_file_p): SPARC Lynx appears to start
+       dumping the .data section in a core file at a page boundary.
+
+Mon Oct 10 16:24:44 1994  Ken Raeburn  <raeburn@cujo.cygnus.com>
+
+       * cofflink.c (_bfd_coff_final_link): Cast argument to bfd_h_put_32
+       to correct type.
+       (coff_read_string_table): Cast argument to bfd_h_get_32 to correct
+       type.
+       * elfcode.h (elf_link_output_extsym): Cast argument to
+       bfd_elf_hash to correct type.
+
+       * elf32-sparc.c (elf_sparc_howto_table): The PC10, PC22, and
+       WPLT30 relocations are PC-relative.
+
+Thu Oct  6 12:57:26 1994  Richard Earnshaw (rwe@pegasus.esprit.ec.org)
+
+       * aoutx.h (adjust_o_magic): Correctly initialize vma if the vma of
+       the text section was user-defined.
+
+Wed Oct  5 14:42:12 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
+
+       * archive.c (bfd_construct_extended_name_table): SVR4 uses slash
+       newline at the end of the file name, not just newline.
+
+Tue Oct  4 11:23:12 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
+
+       * ecoff.c (_bfd_ecoff_new_section_hook): Default section alignment
+       power to 4, rather than using align_power_min.
+
+       * coffcode.h (coff_new_section_hook): Don't use align_power_min;
+       use COFF_DEFAULT_SECTION_ALIGNMENT_POWER instead.  Force the .stab
+       and .stabstr sections to be aligned to no more than 2.  Remove
+       COFF_SPARC special cases.
+       * coff-a29k.c: Define COFF_DEFAULT_SECTION_ALIGNMENT_POWER.
+       * coff-apollo.c, coff-go32.c, coff-h8300.c: Likewise.
+       * coff-h8500.c, coff-i386.c, coff-i960.c, coff-m68k.c: Likewise.
+       * coff-m88k.c, coff-rs6000.c, coff-sh.c, coff-sparc.c: Likewise.
+       * coff-we32k.c, coff-z8k.c: Likewise.
+
+       * configure.in: Use ${config_shell} when running config.bfd.
+
+       * cofflink.c (coff_link_input_bfd): Don't try to convert a long
+       filename if the offset field is zero.
+
+       * elfcode.h (swap_out_syms): If the alignment of a common symbol
+       was not set, use a sensible default rather than zero.
+
+Mon Oct  3 16:04:29 1994  H.J. Lu (hjl@nynexst.com)
+
+       * opncls.c (bfd_close): Honor umask when setting execution bits.
+       (bfd_close_all_done): Likewise.
+
+Mon Oct  3 04:41:49 1994  Peter Schauer  (pes@regent.e-technik.tu-muenchen.de)
+
+       * rs6000-core.c (rs6000coff_core_p):  Set SEC_HAS_CONTENTS flag
+       for .stack and .ldinfo sections. Cast coredata.c_tab to a
+       file_ptr to avoid warnings from gcc.
+
+Fri Sep 30 13:11:38 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
+
+       * elfcode.h (elf_bfd_final_link): Remove assertion when a non
+        SEC_IN_MEMORY section is found in dynobj.  This can happen when
+       linking PIC compiled code.
+
+Thu Sep 29 15:21:44 1994  Ken Raeburn  <raeburn@cujo.cygnus.com>
+
+       * reloc.c (bfd_install_relocation): Change type of "data" to
+       bfd_byte *, to go along with yesterday's change.
+
+       * elf.c (bfd_elf_print_symbol): Moved here from elf_print_symbol
+       in elfcode.h.  (case bfd_print_symbol_all): Print symbol's size
+       field, except for common symbols; print their alignment.
+       * elfcode.h (elf_print_symbol): Deleted.
+       * libelf.h (bfd_elf_print_symbol): Declare.
+       (bfd_elf{32,64}_print_symbol): Replace declarations with macros.
+
+       * syms.c (bfd_print_symbol_vandf): Show BSF_LOCAL and BSF_GLOBAL
+       in one column.  Use the column freed up to show BSF_FUNCTION and
+       BSF_FILE.
+
+Thu Sep 29 12:29:01 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
+
+       * syms.c (stt): Add .rdata and .rodata.
+
+Wed Sep 28 13:35:05 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
+
+       * reloc.c (bfd_install_relocation): Cast data_start to bfd_byte *
+       before trying to add values to it.
+
+Tue Sep 27 16:47:58 1994  Ken Raeburn  <raeburn@cujo.cygnus.com>
+
+       * elf32-hppa.c (elf32_hppa_backend_final_write_processing): Cast
+       return value from elf_sym_extra.
+       (elf32_hppa_build_stubs): Cast return value from bfd_zalloc.
+       (elf32_hppa_size_stubs): Cast return value from malloc.
+
+       * gen-aout.c (main): Declare and initialize "arch".
+
+       * cofflink.c (coff_link_add_symbols): Cast return value of
+       bfd_hash_allocate.
+
+       * riscix.c (riscix_callback): Use PARAMS macro in prototype.
+
+       * reloc.c (bfd_install_relocation): New function, mostly copied
+       from bfd_perform_relocation, adjusted for the assembler's needs.
+       * bfd-in2.h: Regenerated.
+
+Mon Sep 26 11:00:14 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
+
+       * elfcode.h (assign_file_positions_except_relocs): Align the
+       section VMA and the file position even if D_PAGED is not set.
+
+       * bfd-in.h (bfd_seek): Change declaration to not mark fp const.
+       * bfd-in2.h: Rebuild.
+       * libbfd.c (bfd_seek): Don't mark parameters const, to avoid
+       conflicts with declaration.
+
+Fri Sep 23 15:15:31 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
+
+       * elfcode.h (map_program_segments): Don't abort if we allocated
+       too much space for the program header, only if we allocated too
+       little.
+       (assign_file_positions_except_relocs): Similar change.
+
+Tue Sep 20 13:17:07 1994  J.T. Conklin  (jtc@phishhead.cygnus.com)
+
+       * libaout.h: Fix comment.
+       * ns32knbsd.h: Changed M_NS32K_NETBSD to M_532_NETBSD to match
+         libaout.h.
+
+Tue Sep 20 15:23:21 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
+
+       * Makefile.in: Rebuilt dependencies.
+       (BFD32_BACKENDS): Add sparcnetbsd.o.
+       (CFILES): Add ns32knetbsd.c and sparcnetbsd.c.
+       * targets.c: ns32knetbsd_vec was renamed to pc532netbsd_vec.
+
+       * coff-sh.c (rtype2howto): Remove; unused.
+       (coff_sh_relocate_section): Remove unused local variable rstat.
+       (reloc_processing): Comment out; unused.
+
 Fri Sep 16 12:12:27 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
 
        * aoutx.h (aout_link_write_other_symbol): If h->indx is -2, then
This page took 0.026413 seconds and 4 git commands to generate.