aboutsummaryrefslogtreecommitdiff
path: root/bfd
AgeCommit message (Collapse)AuthorFilesLines
1994-10-20 * elfcode.h (elf_map_symbols): Don't worry about section symbolsIan Lance Taylor2-82/+87
in a section not owned by any BFD. (elf_section_from_bfd_section): Separate out loop which calls backend routine. Check bfd_section and call the backend routine even for a section not owned by any BFD. * elf32-mips.c (mips_elf_section_from_bfd_section): Handle .acommon section.
1994-10-19 * coffgen.c (coff_print_symbol): Make names for section number andJim Kingdon1-0/+7
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.
1994-10-19 * binary.c (binary_set_section_contents): Set the base fileIan Lance Taylor1-0/+3
position from the lowest section VMA, not the start address.
1994-10-19 * aoutx.h (NAME(aout,slurp_symbol_table)): Don't return an errorIan Lance Taylor3-80/+129
if there are no symbols. * coffgen.c (coff_get_normalized_symtab): Likewise. * hp300hpux.c (MY(slurp_symbol_table)): Likewise.
1994-10-18rebuilt dependenciesIan Lance Taylor1-0/+1
1994-10-18 * binary.c: New file for raw binary output format.Ian Lance Taylor5-6/+187
* Makefile.in (BFD_LIBS): Add binary.o. (CFILES): Add binary.c. * targets.c (binary_vec): Declare. (bfd_target_vector): Include binary_vec.
1994-10-18 * aout-target.h (MY_bfd_copy_private_section_data): Only copyIan Lance Taylor1-1/+5
subformat to another bfd_target_aout_flavour file.
1994-10-18 * srec.c (tdata_type): Add field tail.Ian Lance Taylor2-8/+38
(srec_mkobject): Initialize tail. (srec_set_section_contents): Sort S record list by address.
1994-10-17 * oasys.c (oasys_slurp_symbol_table): Use udata.p rather than justIan Lance Taylor2-6/+43
udata.
1994-10-17 * elfcode.h (elf_map_symbols): Sort the symbols into a new array,Ian Lance Taylor1-9/+0
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. (elf_symbol_from_bfd_symbol): Use udata.i rather than just udata. * 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. (elf32_hppa_backend_symbol_table_processing): Don't set symextn_hdr->size; just use sh_size.
1994-10-17 Use a hash table when writing out ELF symbol names.Ian Lance Taylor5-378/+1046
* 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.
1994-10-17Fix thinko in ian's ChangeLog entryJim Kingdon1-1/+1
1994-10-17 * libbfd-in.h (DEFAULT_STRING_SPACE_SIZE): Don't define.Ian Lance Taylor1-0/+5
(bfd_add_to_string_table): Don't declare. * libbfd.h: Rebuild. * libbfd.c (bfd_add_to_string_table): Remove.
1994-10-17 * elfcode.h (elf_swap_shdr_in): Use rawdata, not bfd_section.Ian Lance Taylor5-2092/+2116
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-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.
1994-10-17 * srec.c (pass_over): Set the start address for S7, S8 or S9.Ian Lance Taylor2-1/+23
1994-10-14update to version 2.5Ken Raeburn2-1/+5
1994-10-14 * bfd.c (bfd_scan_vma): Cast end to be non const before passing itIan Lance Taylor1-0/+5
to strtoul.
1994-10-13 * bfd.c (bfd_scan_vma): Pass end argument on to strtoul.Ian Lance Taylor2-4/+23
1994-10-12 * ecoff.c (ecoff_set_symbol_info): Mark local stProc or stLabelIan Lance Taylor2-118/+307
symbols as BSF_DEBUGGING. PR 5769.
1994-10-12* opncls.c (bfd_realloc): Deleted, since it's broken and fixing it would makeKen Raeburn2-0/+11
it slow. Besides, it isn't used much. * elfcode.h (elf_map_symbols): Always allocate new storage for the symbol table.
1994-10-12 * rs6000-core.c (rs6000coff_core_file_matches_executable_p): MakeIan Lance Taylor1-0/+3
str1 and str2 const pointers.
1994-10-12 * Makefile.in (INSTALL): Use top level install.sh script.Ian Lance Taylor1-0/+10
* 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.
1994-10-11Tue Oct 11 13:57:56 1994 Eric Youngdale (eric@andante.aib.com)Ian Lance Taylor1-0/+11
* 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.
1994-10-11 * lynx-core.c (lynx_core_file_p): SPARC Lynx appears to startIan Lance Taylor1-0/+5
dumping the .data section in a core file at a page boundary.
1994-10-10* cofflink.c (_bfd_coff_final_link): Cast argument to bfd_h_put_32 to correctKen Raeburn2-2/+13
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.
1994-10-10* elf32-sparc.c (elf_sparc_howto_table): The PC10, PC22, and WPLT30 relocationsKen Raeburn2-134/+665
are PC-relative.
1994-10-05 * archive.c (bfd_construct_extended_name_table): SVR4 uses slashIan Lance Taylor1-0/+5
newline at the end of the file name, not just newline.
1994-10-04 * ecoff.c (_bfd_ecoff_new_section_hook): Default section alignmentIan Lance Taylor1-0/+3
power to 4, rather than using align_power_min.
1994-10-04 * coffcode.h (coff_new_section_hook): Don't use align_power_min;Ian Lance Taylor2-0/+12
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. PR 5706.
1994-10-04 * configure.in: Use ${config_shell} when running config.bfd.Ian Lance Taylor1-1/+3
1994-10-04 * cofflink.c (coff_link_input_bfd): Don't try to convert a longIan Lance Taylor1-0/+3
filename if the offset field is zero.
1994-10-04 * elfcode.h (swap_out_syms): If the alignment of a common symbolIan Lance Taylor1-0/+10
was not set, use a sensible default rather than zero. PR 5751.
1994-10-03 * rs6000-core.c (rs6000coff_core_p): Set SEC_HAS_CONTENTS flagPeter Schauer1-0/+6
for .stack and .ldinfo sections. Cast coredata.c_tab to a file_ptr to avoid warnings from gcc.
1994-09-30 * elfcode.h (elf_bfd_final_link): Remove assertion when a nonIan Lance Taylor2-1/+9
SEC_IN_MEMORY section is found in dynobj. This can happen when linking PIC compiled code.
1994-09-29fix typuKen Raeburn1-2/+2
1994-09-29* reloc.c (bfd_install_relocation): Change type of data to bfd_byte *, to goKen Raeburn1-0/+3
along with yesterday's change.
1994-09-29* elf.c (bfd_elf_print_symbol): Moved here from elf_print_symbol in elfcode.h.Ken Raeburn3-44/+15
(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.
1994-09-29* syms.c (bfd_print_symbol_vandf): Show BSF_LOCAL and BSF_GLOBAL in one column.Ken Raeburn1-0/+6
Use the column freed up to show BSF_FUNCTION and BSF_FILE.
1994-09-29 * syms.c (stt): Add .rdata and .rodata.Ian Lance Taylor2-14/+40
PR 5714.
1994-09-28 * reloc.c (bfd_install_relocation): Cast data_start to bfd_byte *Ian Lance Taylor2-0/+493
before trying to add values to it.
1994-09-26 * elfcode.h (assign_file_positions_except_relocs): Align theIan Lance Taylor1-0/+3
section VMA and the file position even if D_PAGED is not set.
1994-09-26 * bfd-in.h (bfd_seek): Change declaration to not mark fp const.Ian Lance Taylor2-1/+23
* bfd-in2.h: Rebuild. * libbfd.c (bfd_seek): Don't mark parameters const, to avoid conflicts with declaration.
1994-09-26tipoIan Lance Taylor1-1/+1
1994-09-23 * elfcode.h (map_program_segments): Don't abort if we allocatedIan Lance Taylor2-6/+15
too much space for the program header, only if we allocated too little.
1994-09-20* libaout.h: Fix comment.J.T. Conklin1-0/+6
* ns32knbsd.h: Changed M_NS32K_NETBSD to M_532_NETBSD to match libaout.h.
1994-09-20 * coff-sh.c (rtype2howto): Remove; unused.Ian Lance Taylor1-0/+6
(coff_sh_relocate_section): Remove unused local variable rstat. (reloc_processing): Comment out; unused.
1994-09-16 * aoutx.h (aout_link_write_other_symbol): If h->indx is -2, thenIan Lance Taylor1-0/+10
always write it out even if it would normally be stripped. (aout_link_input_section_std): If we find a reloc against a stripped global symbol, force it to be written out rather than merely calling unattached_reloc. (aout_link_input_section_ext): Likewise. (aout_link_reloc_link_order): Likewise.
1994-09-14 * aoutx.h (aout_link_write_symbols): Rename skip_indirect toIan Lance Taylor2-7/+12
skip_next. If we find an N_WARNING symbol which has already been written out, set skip_next. PR 5634.
1994-09-14 * som.h (struct somdata): New field sorted_syms.Jeff Law1-0/+11
(obj_som_sorted_syms): Accessor macro. * som.c (som_object_setup): Initialize sorted_syms to NULL. (som_prep_for_fixups): Sort a copy of the BFD's symbol table; store the sorted symbol table in sorted_syms. (som_write_fixups): Initalize tmp_reloc to NULL to make GCC happy. (som_begin_writing): Similarly for exec_header. Pass the sorted symbol table to som_write_symbol_strings. (som_build_and_write_symbol_table): Use the sorted symbols rather than the canonical symbol table.
1994-09-14 * som.h (som_symbol_type): Add "stringtab_offset" field.Jeff Law3-3/+13
* som.c (som_write_symbol_strings): Use "stringtab_offset" rather than destroying the "name" field in the BFD symbol. (som_build_and_write_symbol_table): Likewise.