aboutsummaryrefslogtreecommitdiff
path: root/bfd
AgeCommit message (Collapse)AuthorFilesLines
1994-05-18 * som.c: Don't include <sys/dir.h> or <sys/user.h>.Ian Lance Taylor2-18/+34
(som_reloc_queue_find): Call memcmp instead of bcmp. (som_bfd_reloc_type_lookup): Change first argument to bfd *. (compare_syms): Change types of arguments to const void *. (bfd_section_from_som_symbol): Removed unused local found. (som_write_armap): Add elength, map, orl_count and int arguments. (som_write_armap): Use %ld and cast to long for getuid result.
1994-05-18 * elf32-hppa.h (R_HPPA_ABS_CALL): Define.Jeff Law2-5/+10
* elf32-hppa.c (hppa_elf_gen_reloc_type): Handle absolute calls. * som.h (R_HPPA_ABS_CALL): Define. * som.c (hppa_som_gen_reloc_type): Delete complex relocation types.
1994-05-17* coff-i960.c (icoff_little_vec, icoff_big_vec): Indicate leading underscore,Ken Raeburn1-0/+5
for compatibility with Intel tool chain (gnu960v2).
1994-05-16 * bfd-in2.h: Rebuilt.Jeff Law6-1305/+552
* elf32-hppa.c: Change .hppa_linker_stubs to .PARISC.stubs, likewise for other PA specific sections. (hppa_elf_relocate_unwind_table): Delete unused function. (elf_hppa_howto_table): Completely new table based on 94-02-02 draft PA ELF spec. Change relocation tags appropriately throughout elf32-hppa.c (hppa_elf_gen_reloc_type): Rewrite and simplify based on 94-02-02 spec. (hppa_elf_reloc): Likewise. (hppa_look_for_stubs_in_section): Likewise (ELF_MACHINE_CODE): Change to EM_PARISC. * elf32-hppa.h: Include "elf/hppa.h". Change relocation tags appropriately throughout elf32-hppa.h. (elf32_hppa_reloc_type): New table based on 94-02-02 draft PA ELF spec. (R_HPPA_ABS_CALL, R_HPPA_COMPLEX*, R_HPPA_UNWIND): Delete definitions. * elfcode.h (prep_headers): Use EM_PARISC instead of EM_HPPA. * reloc.c (bfd_reloc_code_real): Delete unused HPPA relocations. * som.h (R_HPPA_ABS_CALL, R_HPPA_COMPLEX): Delete definitions. * libhppa.h (hppa_field_adjust): Avoid adding constant_value into the final value twice for LR and RR field selectors.
1994-05-16Fix typo in last check-in.Jeff Law1-2/+2
1994-05-16 * libhppa.h (hppa_field_adjust): Avoid adding constant_value intoJeff Law1-0/+5
the final value twice for LR and RR field selectors.
1994-05-14 * aoutx.h (add_to_stringtab): Use BFD_ASSERT not assert. ThisJim Kingdon2-16/+39
avoids __eprintf troubles.
1994-05-14 * bout.c (b_out_bfd_reloc_type_lookup): Handle BFD_RELOC_CTOR.Ian Lance Taylor1-0/+2
1994-05-13Rewrite history.Ian Lance Taylor1-10/+0
1994-05-13Fix typo in last entryJim Kingdon1-1/+1
1994-05-13 * Makefile.in (sysdep.h): Copy Ian's version of this fromBill Cox2-2/+6
progressive/bfd/Makefile.in.
1994-05-13 * Makefile.in (stmp-bfd.h): Add an 'if' to mask a harmlessBill Cox2-1/+7
grep error. Already in progressive/bfd/Makefile.in.
1994-05-13 * config/mipsbelf.mt (SELECT_VECS): Add ecoff_big_vec andIan Lance Taylor1-0/+5
ecoff_little_vec since Irix 5 supports ECOFF executables.
1994-05-12Remove CVS conflict markers from fileJim Kingdon1-1/+0
1994-05-11 * ecoff.c (ecoff_find_nearest_line): Handle fdr.adr != pdr.adrIan Lance Taylor2-2/+8
correctly.
1994-05-11 * Makefile.in (stmp-bfd.h): Use || instead of ; to force SunOSIan Lance Taylor2-5/+14
make to invoke the shell.
1994-05-10 * section.c (SEC_COFF_SHARED_LIBRARY): Renamed fromIan Lance Taylor5-32/+76
SEC_SHARED_LIBRARY for clarity. Changed all uses. * bfd-in2.h: Rebuilt. * coffcode.h (sec_to_styp_flags): If SEC_COFF_SHARED_LIBRARY is set, set STYP_NOLOAD. * coffgen.c (coff_section_from_bfd_index): Don't get an assertion failure because of a bad shared library.
1994-05-10Typo.Ian Lance Taylor1-1/+1
1994-05-10 * linker.c: Add missing comment terminator.Bill Cox2-1/+5
1994-05-09 * linker.c (_bfd_generic_link_add_one_symbol): If hashp and *hashpIan Lance Taylor3-185/+191
are not NULL, assume the caller has already looked up the symbol in the hash table and has stored the entry in *hashp. (generic_link_add_symbol_list): Set h to NULL before calling _bfd_generic_link_add_one_symbol. * ecoff.c (ecoff_link_add_externals): Likewise.
1994-05-09 * elfcode.h: Include bfdlink.h. Added several new functions to doIan Lance Taylor5-133/+1961
linking. (ELF_R_TYPE): Define. (bfd_add_to_strtab): Return unsigned long. Change check for realloc failure. (elf_fake_sections): Check return value of bfd_add_to_strtab. (elf_compute_section_file_positions): Add link_info argument. Call elf_backend_begin_write_processing hook and prep_headers here. Only call swap_out_syms if link_info is NULL. Set up .shstrtab section here. Pass dosyms argument to assign_file_positions_except_relocs. Set output_has_begun flag. (assign_file_positions_for_symtab_and_strtabs): Add dosyms argument, and use it to control setting .symtab and .strtab file positions. (assign_file_positions_except_relocs): Add dosyms argument, and pass it on. (prep_headers): Check return value of bfd_add_to_strtab. (swap_out_syms): Likewise. Also, don't set up .shstrtab here. (NAME(bfd_elf,write_object_contents)): Some calls moved into elf_compute_section_file_positions. (elf_set_section_contents): Likewise. (elf_slurp_symbol_table): SHN_LORESERV corrected to SHN_LORESERVE. * libelf.h: Include bfdlink.h. (struct elf_backend_data): Add fields collect, elf_add_symbol_hook, elf_backend_relocate_section. (struct bfd_elf_section_data): Add field rel_hashes. (struct elf_obj_tdata): Remove fields internal_syms and symbols. Add field sym_hashes. (obj_symbols, obj_internal_syms): Remove definitions. (elf_sym_hashes): Define. (struct elf_link_hash_entry): Define. (struct elf_link_hash_table): Define. (elf_link_hash_lookup): Define. (elf_link_hash_traverse): Define. (elf_hash_table): Define. (_bfd_elf_link_hash_table_create): Declare. (bfd_elf32_bfd_link_add_symbols): Declare. (bfd_elf32_bfd_final_link): Declare. (bfd_elf64_bfd_link_add_symbols): Declare. (bfd_elf64_bfd_final_link): Declare. * elf.c: Include bfdlink.h. (elf_link_hash_newfunc): New function. (_bfd_elf_link_hash_table_create): New function. * elf32-target.h (elf_backend_relocate_section): If not defined, define as 0 and use generic linker. Otherwise, use ELF backend linker. (elf_backend_collect): If not defined, define as false. (elf_backend_add_symbol_hook): If not defined, define as 0. (elf32_bed): Initialize new fields. * elf64-target.h: Same changes as elf32-target.h. * elf32-i386.c: Include bfdlink.h. (elf_i386_relocate_section): New function. (elf_backend_relocate_section): Define. * elf32-sparc.c: Include bfdlink.h. (elf_info_to_howto): Change type of dst from Elf32_Internal_Rela to Elf_Internal_Rela (they're the same type anyhow). (elf_sparc_relocate_section): New function. (elf_backend_relocate_section): Define. * elf32-mips.c (elf_backend_collect): Define.
1994-05-06 * config/go32.mh: XX support.Steve Chamberlain1-0/+8
From bill * Makefile.in: Build sysdep.h without causing worrying but harmless error message.
1994-05-06 * nlmcode.h (nlm_swap_auxiliary_headers_in): Rework custom headerIan Lance Taylor1-3/+15
handling for latest suggested format. (nlm_swap_auxiliary_headers_out): Likewise. (nlm_compute_section_file_positions): Likewise.
1994-05-04For PR 1927.Ian Lance Taylor5-2/+72
Changed m68k-aout to set flags to 0; m68k-sunos still uses 1. * aout0.c: New file. * targets.c (aout0_big_vec): Declare. (bfd_target_vector): Add aout0_big_vec. * config.bfd (m68*-*-aout*): Use m68k-0aout, not m68k-aout. * config/m68k-aout.mt (SELECT_VECS): Removed. * config/m68k-0aout.mt: New file. * configure.in (aout0_big_vec): New target vector: use aout0.o, aout32.o and stab-syms.o. * Makefile.in: Rebuilt dependencies. (BFD32_BACKENDS): Add aout0.o. (CFILES): Add aout0.c. * libaout.h (struct aout_backend_data): Add field exec_hdr_flags. * aout-target.h (MY_exec_hdr_flags): If not defined, define as 0. MY(backend_data): Initialize exec_hdr_flags field. * aoutf1.h (sunos_32_set_arch_mach): Make static. (aout32_sunos4_write_object_contents): Set flags from backend info. (MY_exec_hdr_flags): If not defined, define as 1. (sunos4_aout_backend): Initialize exec_hdr_flags field. * aout-encap.c (encap_write_object_contents): Set flags from backend info. (MY_exec_hdr_flags): Define as N_FLAGS_COFF_ENCAPSULATE. * hp300hpux.c (MY_exec_hdr_flags): Define as 0x2. (MY(write_object_contents)): Set flags from backend info. * i386aout.c (MY(backend_data)): Initialize exec_hdr_flags field. * i386mach3.c (MY(backend_data)): Likewise. * mipsbsd.c (MY(backend_data)): Likewise. * sparclynx.c (NAME(aout,sparclynx_write_object_contents)): Set flags from backend info. (sparclynx_aout_backend): Initialize exec_hdr_flags field.
1994-05-04* config.bfd (i386-*-gnu*): Treat like i386-*-mach*.Ken Raeburn2-1/+8
(m68*-apollo-*): Treat all Apollo configs the same, don't handle BSD specially.
1994-05-03 * cache.c: Rewrote to work correctly.Ian Lance Taylor1-0/+7
* libbfd.h: Rebuilt. * opncls.c (bfd_cache_init, bfd_open_file): Don't declare. (bfd_fdopenr): Check return value of bfd_cache_init.
1994-04-29 * cf-m68klynx.c (CALC_ADDEND): Check for PC relative relocs byIan Lance Taylor2-1/+9
enumerating them, since the reloc type can not serve as an index into the m68k COFF howto_table.
1994-04-29 * config.bfd (*-go32): Changed to coff.Steve Chamberlain2-1/+5
* coff-h8300.c (JMPL1): Get HOWTO right for 24bit branches. * srec.c (srec_write_symbols): Write out the correct number of symbols and don't stick in extra nulls.
1994-04-29 * coff-h8300.c (JMPL1): Get HOWTO right for 24bit branches.Steve Chamberlain1-0/+4
1994-04-26Tue Apr 26 15:07:24 1994 Stan Shebs (shebs@andros.cygnus.com)Stan Shebs2-0/+13
* cf-sparclynx.c (LYNXOS, COFF_LONG_FILENAMES): Define. * coff-sparc.c (BADMAG): Recognize LYNXCOFFMAGIC. (COFF_SPARC): Define. * coffcode.h (coff_new_section_hook): If COFF_SPARC, set alignment power of data and bss sections to 3. * hosts/lynx.h (__LYNXOS): Define. Brought over from 94Q1.
1994-04-26 * elf32-hppa.c (hppa_elf_reloc): Adjust the addend of relocationsJeff Law1-0/+19
against section symbols to avoid losing during ld -r.
1994-04-25 * elfcode.h (write_relocs): Undo patch of Apr 10; breaks Solaris.Ian Lance Taylor2-11/+2
1994-04-25 * elfcode.h (bfd_section_from_shdr): Use bfd_make_section_anywayIan Lance Taylor2-96/+142
to create sections. Check return value of recursive calls. (bfd_section_from_phdr): Check return value of bfd_make_section. (elf_symbol_from_bfd_symbol): Likewise. (elf_object_p): Check return value of bfd_section_from_shdr. (section_from_elf_index): Likewise. (elf_slurp_symbol_table): Check return value of section_from_elf_index. (bfd_prstatus): Return boolean value. Check return value of bfd_make_section. (bfd_fpregset): Likewise. (bfd_prpsinfo): Return boolean value. (elf_corefile_note): Check return values of bfd_prstatus, bfd_fpregset, and bfd_prpsinfo. (elf_core_file_p): Check return value of elf_corefile_note.
1994-04-22 Get rid of the ECOFF .reginfo section hack.Ian Lance Taylor1-0/+20
* ecoff.c (ecoff_mkobject_hook): Don't create a .reginfo section. (ecoff_new_section_hook): Don't handle the .reginfo section. (ecoff_sizeof_headers): Likewise. (ecoff_get_section_contents): Likewise. (ecoff_compute_section_file_positions): Likewise. (ecoff_compute_reloc_file_positions): Likewise. (ecoff_set_section_contents): Likewise. (ecoff_write_object_contents): Likewise. (ecoff_bfd_final_link): Likewise. (ecoff_bfd_copy_private_bfd_data): Copy the GP value and the register masks. (bfd_ecoff_get_gp_value): New function. (bfd_ecoff_set_gp_value): New function. (bfd_ecoff_set_regmasks): New function. * bfd-in.h (bfd_ecoff_get_gp_value): Declare. (bfd_ecoff_set_gp_value): Declare. (bfd_ecoff_set_regmasks): Declare. * bfd-in2.h: Rebuilt.
1994-04-22 Fix ECOFF objcopy to actually copy debugging information.Ian Lance Taylor2-7/+123
* ecoff.c (ecoff_bfd_copy_private_bfd_data): New function. (ecoff_get_extr): Assume that any ECOFF symbol with local clear is an external symbol, rather than checking the symbol flags. Only check the flags for non-ECOFF symbols. * ecofflink.c (bfd_ecoff_debug_externals): Don't crash if the output_section field of the symbol section is NULL. * libecoff.h (ecoff_bfd_copy_private_bfd_data): Declare as function rather than defining as macro.
1994-04-22 * targets.c (bfd_target_vector): Add bfd_elf32_powerpc_vec.Ian Lance Taylor1-0/+5
1994-04-22 * aout-adobe.c (aout_adobe_set_arch_mach): Check return value ofIan Lance Taylor2-16/+21
bfd_default_set_arch_mach. Accept bfd_arch_m68k as well as bfd_arch_unknown. * elfcode.h (elf_set_arch_mach): Don't check a list of ELF architectures, just see if the desired architecture matches what the ELF backend permits.
1994-04-22 Follow convention in which each NLM header has an 8 byte stampIan Lance Taylor1-0/+16
followed by a four byte length. * libnlm.h (struct nlm_obj_tdata): Rename nlm_cygnus_section_hdr to nlm_cygnus_ext_header, and change type to Nlm_Internal_Cygnus_Ext_Header. (nlm_cygnus_ext_header): Rename from nlm_cygnus_section_header. * nlmcode.h (nlm_swap_auxiliary_headers_in): Use CyGnUsEx instead of CyGnUsSeCs. Rename from cygnus_section to cygnus_ext. Require length word to be 8. (nlm_swap_auxiliary_headers_out): Rename from cygnus_section to cygnus_ext. Set length word to 8. (nlm_compute_section_file_positions): Rename from cygnus_section to cygnus_ext.
1994-04-22 * nlmcode.h (nlm_swap_auxiliary_headers_in): Keep section tableStu Grossman2-10/+10
(from CyGnUsSeCs) in more permanent memory to keep section names from getting trashed.
1994-04-21 Clean up uses of _bfd_dummy_target (from Peter Schauer).Ian Lance Taylor1-0/+9
* libbfd.c (_bfd_dummy_target): Set bfd_error_wrong_format. * nlm-target.h (nlm_core_file_p): Define as _bfd_dummy_target, not NULL. * srec.c (srec_vec): Use _bfd_dummy_target, not NULL, in _bfd_check_format. (symbolsrec_vec): Likewise. * tekhex.c (tekhex_vec): Likewise.
1994-04-21 * libelf.h (elf_obj_tdata): Add members for dynamic symbol tablePeter Schauer5-28/+122
handling. * elfcode.h (bfd_section_from_shdr): Handle dynamic symbol table. * elfcode.h (elf_slurp_symbol_table): Take additional parameter to select static or dynamic symbol table and return number of symbols slurped or -1 on error. * elfcode.h (elf_get_symtab): Set bfd symcount from elf_slurp_symbol_table result. * elfcode.h (elf_get_dynamic_symtab_upper_bound, elf_canonicalize_dynamic_symtab): New functions to handle dynamic symbol table. * elf32-target.h, elf64-target.h (BFD_JUMP_TABLE_DYNAMIC): Change to handle dynamic symbol table, provide default definitions for dynamic relocs. * aoutx.h (howto_table_std, NAME(aout,swap_std_reloc_out), NAME(aout,swap_std_reloc_in), aout_link_input_section_std, aout_link_reloc_link_order): Handle r_jmptable and r_relative relocations.
1994-04-21 * libnlm.h (struct nlm_obj_tdata): Add nlm_cygnus_section_hdrIan Lance Taylor3-20/+155
field. (nlm_cygnus_section_header): New accessor macro. * nlmcode.h (nlm_object_p): Free new tdata structure if failure. Add fixed sections before swapping in auxiliary headers. After adding sections, treat errors as real, not as wrong format. (nlm_swap_auxiliary_headers_in): Swap in the sections header; add sections to the BFD for each section it describes. (nlm_swap_auxiliary_headers_out): Swap out the sections header. (nlm_compute_section_file_positions): Account for the size of the sections header.
1994-04-20* coff-sparc.c (sparccoff_vec): Change minimum alignment power to 2, so thatKen Raeburn1-0/+3
stab sections can be multiples of 4 bytes only.
1994-04-20* hosts/i386aix.h: Changes to avoid prototypes conflicts with the ones definedKen Raeburn2-3/+6
in stdlib.h. (From Minh Tran-Le.)
1994-04-20start-sanitize-powerpc-netwareIan Lance Taylor3-14/+307
* nlm32-ppc.c: Complete rewrite for new version of PowerPC NetWare. Old code still present, but ifdeffed out. end-sanitize-powerpc-netware * nlmcode.h (nlm_swap_auxiliary_headers_in): Don't assume a particular format for the customer header. Allocate a block of memory and read it into that. (nlm_swap_auxiliary_headers_out): Write out the block of memory. (nlm_compute_section_file_positions): Include length of customer header when computing its size.
1994-04-18 * som.c (som_prep_headers): Get the space's number from theJeff Law1-0/+9
backend private section data rather than target_index. (bfd_som_set_section_attributes): Store the space's number in the backend private section data rather than target_index. * som.h (som_copyable_section_data_struct): Add space_number.
1994-04-15 * coff-a29k.c (reloc_processing): Always set the address of aIan Lance Taylor2-0/+21
R_IHCONST reloc to that of the immediately preceding R_IHIHALF. gas does this anyhow, but some other assemblers seem to leave garbage in the R_IHCONST address field.
1994-04-15 * bfd/archive.c: Consistently use ARFMAG; fromIan Lance Taylor1-0/+7
schwab@issan.informatik.uni-dortmund.de (Andreas Schwab). (_bfd_write_archive_contents): Use ARFMAG rather than '`' and '\012'. (bsd_write_armap): Likewise. (coff_write_armap): Likewise.
1994-04-15 * coff-mips.c (mips_relocate_section): When relaxing, adjust localIan Lance Taylor2-21/+54
relocs against the .text section as required. * ecofflink.c (bfd_ecoff_debug_accumulate): When relaxing, adjust PDR addresses as required.
1994-04-15 * ecoff.c (ecoff_emit_aggregate): Take fdr argument. Map fdrIan Lance Taylor2-46/+94
index through rfd map if it exists. Check for a couple of cases which gdb handles specially. Change all callers. (ecoff_type_to_string): Take fdr argument rather than aux_ptr and bigendian argument. Change all callers. (ecoff_print_symbol): Handle stStruct, stUnion and stEnum.