aboutsummaryrefslogtreecommitdiff
path: root/bfd
AgeCommit message (Collapse)AuthorFilesLines
1994-01-22 * targets.c: Add a vector of matching format names.David MacKenzie4-29/+57
* format.c (bfd_matching_formats): New function to return it. (bfd_check_format): Set it. * bfd-in2.h: Regenerated.
1994-01-22 * bfd-in.h: Remove decls of bfd_ec type and error printing functions.David MacKenzie3-90/+54
Remove decl of type symclass; wasn't used. * bfd.c: Document error handling, including code fragments containing the error decls that were in bfd-in.h. Remove DEFUNs. * bfd-in2.h: Regenerated.
1994-01-21Fix accidental deletion of attribution for kingdon change.Jim Kingdon1-1/+1
1994-01-21Restore Jim's last change entry header.David MacKenzie1-0/+2
1994-01-21 * bfd.c: Remove error strings for errors removed below.David MacKenzie2-2/+1
1994-01-21Add ChangeLog entry for sef change.Jim Kingdon1-1/+6
1994-01-21The sparc (and possibly other?) NLM format requires a different way toSean Eric Fagan1-4/+61
write exports, so add a write_export field to the backend data (and set it to NULL for everything but the sparc).
1994-01-21 * sunos.c (MY(read_dynamic_relocs)): Compare info->dynrel with NULL,Jim Kingdon1-0/+6
not (struct external_nlist *) NULL. info->dynrel is a PTR, not a struct external_nlist *.
1994-01-21 * aoutx.h (translate_to_native_sym_flags), bfd-in.h (bfd_ec),David MacKenzie4-8/+14
oasys.c (oasys_write_sections): Rename bfd_error_nonrepresentable_section to nonrepresentable_section. None of the other bfd error names start with "bfd_error". Remove errors symbol_not_found and no_relocation_info, which seem to be unused. * bfd-in2.h: Regenerated.
1994-01-21 * bfd.c (bfd_get_gp_size): Added support for ELF.Ian Lance Taylor2-86/+39
1994-01-21 * syms.c (BSF_DYNAMIC): New symbol flag.Ian Lance Taylor6-662/+574
(bfd_print_symbol_vandf): Print it. * bfd-in2.h: Rebuilt. * libaout.h (struct aout_backend_data): New read_dynamic_symbols and read_dynamic_relocs fields. (struct aoutdata): New dynamic_info field. (obj_aout_dynamic_info): New accessor macro. * sunos.c (struct sunos_dynamic_info): New structure. (sunos_read_dynamic_info, MY(read_dynamic_symbols), MY(read_dynamic_relocs)): New functions to read dynamic symbols and relocs. * aoutx.h (NAME(aout,some_aout_object_p)): If the object is dynamically linked, set SEC_RELOC for both the .text and .data sections. (translate_from_native_sym_flags): Don't set BSF_LOCAL for an undefined symbol. (translate_symbol_table): New function, split out of slurp_symbol_table; set the BSF_DYNAMIC flag appropriately. (NAME(aout,slurp_symbol_table)): Read dynamic symbols, if any. (NAME(aout,slurp_reloc_table)): Read dynamic relocs, if any. (NAME(aout,get_reloc_upper_bound)): Include dynamic reloc count in return value. * aoutf1.h (NAME(aout,sunos4_write_object_contents)): Don't write out dynamic symbols or relocs against reloc symbols, since they are already in the .text section and we wouldn't know where to write them anyhow. (sunos4_aout_backend): Initialize read_dynamic_symbols and read_dynamic_relocs fields. * aout-target.h (MY(backend_data)): Initialize read_dynamic_symbols and read_dynamic_relocs fields.
1994-01-21* hosts/alphaosf.h (uint64e_type, uint64_type, int64_type): Delete typedefs,Ken Raeburn2-4/+6
since HOST_64_BIT will take care of defining them in bfd.h.
1994-01-20updated with alpha changesKen Raeburn2-11/+99
1994-01-19(alpha_howto_table): Construct 64-bit negative one values in case ofKen Raeburn1-171/+1760
compilation on a 32-bit machine. Fix pcrel fields of some reloc types. (alpha_bfd_reloc_type_lookup): Handle more relocation types.
1994-01-19(enum bfd_reloc_code_real): Add some Alpha relocation types. Reorganized someKen Raeburn1-14/+71
of the existing ones.
1994-01-19(sprintf_vma, fprintf_vma): New macros.Ken Raeburn1-4/+7
(uint64_typeHIGH, uint64_typeLOW): Comment with HOST_64_BIT so they get copied to bfd.h.
1994-01-19(uint64_typeHIGH, uint64_typeLOW): Supply default definitions when not defined,Ken Raeburn1-5/+23
regardless of whether uint64_type is a defined macro or not. (fprintf_vma, sprintf_vma): Define only if fprintf_vma is not already defined.
1994-01-19 * aoutx.h (translate_to_native_sym_flags): Set the type of aIan Lance Taylor2-0/+6
BSF_WARNING symbol to N_WARNING.
1994-01-19Resolve warning symbols like indirect symbols.Ian Lance Taylor2-6/+8
1994-01-18 * aoutx.h (aout_link_add_symbols): Increment sym_hash as well as pIan Lance Taylor2-10/+69
for an indirect or warning symbol. (aout_link_write_symbols): Update sym_hash with the target of an indirect symbol. If an indirect symbol is defined, output the calculated value and don't output the target symbol.
1994-01-18Comment fix.Ian Lance Taylor1-1/+383
1994-01-18 * aoutx.h (translate_from_native_sym_flags): Give warning symbolsDavid MacKenzie2-0/+10
an (unused) nonzero section value, needed for check below.
1994-01-17 * aoutx.h (translate_from_native_sym_flags,David MacKenzie2-12/+20
aout_link_add_symbols): Treat N_SET[ABDT] | N_EXT like N_SET[ABDT].
1994-01-14 * elfcode.h (elf_object_p): If there is a SHT_DYNAMIC section, setIan Lance Taylor2-6/+30
the DYNAMIC flag for the BFD. (NAME(bfd_elf,write_object_contents)): Don't try to write out a BFD with the DYNAMIC flag set, since we don't generate the program header table correctly.
1994-01-14 * ecoff.c (ecoff_link_write_external): An ifd can be -1.Ian Lance Taylor1-0/+4
1994-01-13 * som.c (som_set_reloc_info): Provide a default symbol forJeff Law1-0/+3
relocations which don't actually have an associated symbol.
1994-01-13 * som.c (hppa_som_reloc): Add new "error message" argument.Jeff Law2-17/+35
1994-01-12 Enable gdb to write to core files on more core file readers.Peter Schauer1-0/+10
* libbfd.c (bfd_generic_set_section_contents): Remove range check for section size, it is already done in bfd_set_section_contents with bfd_get_section_size_now. * aix386-core.c, hppabsd-core.c, hpux-core.c, irix-core.c, osf-core.c, ptrace-core.c, trad-core.c (*_set_section_contents): Use bfd_generic_set_section_contents instead of bfd_false.
1994-01-12 * linker.c (default_indirect_link_order): Don't expect space forIan Lance Taylor2-0/+6
output relocations if there aren't any input relocations.
1994-01-11 * aoutx.h (NAME(aout,final_link)): Set a_entry before computingIan Lance Taylor1-0/+3
file offsets.
1994-01-11 * elfcode.h (swap_out_syms): A common symbol is STT_OBJECT, notIan Lance Taylor1-0/+5
STT_NOTYPE.
1994-01-11 * ecofflink.c: Extensive changes to compress and merge debuggingIan Lance Taylor3-345/+908
information, and to write some of out directly rather than saving it in memory. Several new functions and structures, and new arguments to existing functions. * ecoff.c (ecoff_compute_reloc_file_positions): Compute sym_filepos as well. (ecoff_get_extr): Use ifdmap instead of ifdbase. (ecoff_write_object_contents): Don't compute sym_filepos here. Only output symbols if outsymbols is not NULL. (ecoff_bfd_final_link): Adjust for changes in ecoff_debug_info and bfd_ecoff_debug functions. Write out debugging information here. (ecoff_final_link_debug_accumulate): Adjust for changes in bfd_ecoff_debug functions. (ecoff_link_write_external): Use ifdmap rather than ifdbase. * elf32-mips.c (mips_elf_read_ecoff_info): Read external symbols first, to put them in the first memory buffer. Clear fdr field. (mips_elf_get_extr): Use pointer to unswapped external symbol. (mips_elf_final_link): Adjust for changes in bfd_ecoff functions. Preserve .text, .data and .bss even if they are empty. Save pointer to unswapped external symbol rather than copying it. Don't free up the external symbols. * libelf.h (elf_symbol_type): Change mips_extr to PTR. * bfd-in.h (bfd_ecoff_debug_init, bfd_ecoff_debug_free): Declare. (bfd_ecoff_debug_accumulate): Update declaration. (bfd_ecoff_debug_accumulate_other): Rename declaration from bfd_ecoff_debug_link_other and update. (bfd_ecoff_write_accumulated_debug): Declare. * bfd-in2.h: Rebuilt. * Makefile.in: Rebuilt dependencies.
1994-01-11 * config.bfd: Use ELF, not COFF for m88*-*-dgux*.Jim Kingdon1-0/+5
Combine m88k-*-* and m88110-*-* cases into m88*-*-*.
1994-01-11 * Makefile.in (install): Remove "@" which follows a backslash. InJim Kingdon2-1/+6
this position it just causes errors, not suppresses echoes.
1994-01-11Set lose_these_too correctlyStan Shebs2-4/+11
1994-01-10 * som.c (hppa_som_gen_reloc_type): Fix handling of LT and RTJeff Law1-0/+5
field selectors.
1994-01-09* config/i386-netbsd.mt (SELECT_VECS): Include i386bsd_vec, for compatibilityKen Raeburn1-0/+4
with 386bsd and netbsd0.8.
1994-01-07 * aoutx.h (adjust_z_magic): Don't merge the start of bss with theDavid MacKenzie2-5/+17
end of data if they are not contiguous.
1994-01-07 * aoutf1.h (sunos4_aout_backend): Comment the fields' meanings.David MacKenzie1-0/+4
1994-01-07 * ecoff.c (ecoff_mkobject_hook): Don't set SEC_SHARED_LIBRARY flagIan Lance Taylor2-3/+11
for .reginfo section here. (ecoff_new_section_hook): Set it here instead.
1994-01-07Fri Jan 7 10:34:47 1994 Stan Shebs (shebs@andros.cygnus.com)Stan Shebs3-285/+314
* mpw-make.in: Replace 8-bit chars with their names. * coffswap.h (coff_swap_scnhdr_out): Add alternative version with partly-expanded macros.
1994-01-07Fri Jan 7 10:29:27 1994 Stan Shebs (shebs@andros.cygnus.com)Stan Shebs3-4/+24
* bfd-in.h: (bfd_boolean): Add workaround for systems that also define true and false as enums. (ALMOST_STDC): Add as alternative to __STDC__. * bfd-in2.h: Rebuilt. * syms.c (bfd_print_symbol_vandf): Convert a PTR to FILE*.
1994-01-07Various entries.Ian Lance Taylor1-0/+24
1994-01-07Really remove files that are no longer used.Ian Lance Taylor3-74/+0
1994-01-07 * targets.c (target_vector): Added nlm32_alpha_vec inside #ifdefIan Lance Taylor1-68/+58
BFD64. * Makefile.in (BFD32_BACKENDS): Remove nlm32-alpha.o. (BFD64_BACKENDS): Add nlm32-alpha.o. It depends on 64 bit support, even though it is for an Alpha in 32 bit mode. * configure.in (nlm32_alpha_vec): Set target64 to true. * nlm32-gen.c, nlm64-gen.c: Removed. All nlm targets are different, so there is no point to providing a generic one. * libnlm.h: Don't bother to check for nlm_backend(bfd) being NULL in the backend accessor macros; that should no longer be possible. * targets.c (target_vector): Removed nlm32_big_generic_vec, nlm64_big_generic_vec, nlm64_little_generic_vec. * configure.in (nlm32_big_generic_vec, nlm32_little_generic_vec, nlm64_big_generic_vec, nlm64_little_generic_vec): Removed. * Makefile.in: Rebuilt dependencies, and (BFD32_BACKENDS): Removed nlm32-gen.o. (BFD64_BACKENDS): Removed nlm64-gen.o. (CFILES): Removed nlm32-gen.c and nlm64-gen.c.
1994-01-06 * aoutx.h (translate_to_native_sym_flags): Catch the case whereDavid MacKenzie2-9/+18
there is no output section.
1994-01-06 * hp300hpux.c (ARCH_SIZE): Define before including aoutx.h.Ian Lance Taylor1-0/+2
1994-01-06Various entries.Ian Lance Taylor1-0/+72
1994-01-06 * ecoff.c: First cut at new style of linker backend forIan Lance Taylor4-343/+1376
ECOFF--added a bunch of functions. Also: (ecoff_sec_to_styp_flags): Set flags for .pdata and .xdata. (ecoff_slurp_symbolic_header): New function. (ecoff_slurp_symbolic_info): Call ecoff_slurp_symbolic_header. (ecoff_compute_reloc_file_positions): New function. (ecoff_set_section_contents): Get out quickly if count is zero. Check errors better. (ecoff_write_object_contents): Put .xdata section in data segment. Call ecoff_compute_reloc_file_positions. Don't output relocs or external symbols if outsymbols is NULL. (ecoff_bfd_final_link): Completely rewritten. * libecoff.h: Include bfdlink.h. (struct ecoff_backend_data): Add relocate_section field. (ecoff_data_type): Add sym_hashes and symndx_to_section fields. (struct ecoff_link_hash_entry): Define. (struct ecoff_link_hash_table): Define. (ecoff_bfd_link_add_symbols): Declare as function, not macro. (ecoff_bfd_link_hash_table_create): Likewise. * ecofflink.c (bfd_ecoff_debug_one_external): New function. (bfd_ecoff_debug_externals): Call bfd_ecoff_debug_one_external. * bfd-in.h (bfd_ecoff_debug_one_external): Declare. * bfd-in2.h: Rebuilt. * coff-alpha.c (alpha_howto_table): Mark BRADDR as partial_inplace, and set the src_mask to 0x1fffff. (alpha_ecoff_get_relocated_section_contents): Remove unused variable gp_warned. (alpha_convert_external_reloc): New static function. (alpha_relocate_section): New static function. (alpha_ecoff_backend_data): Initialize relocate_section field. * coff-mips.c (mips_relocate_refhi): New static function. (mips_relocate_section): New static function. (mips_ecoff_backend_data): Initialize relocate_section field.
1994-01-06 * aoutx.h (NAME(aout,final_link)): Don't abort when trying to linkIan Lance Taylor1-41/+80
a non a.out file, just pass it to _bfd_default_link_order. (aout_link_input_section_std): When doing a final PC relative link against a section symbol, subtract the VMA of the input section. (aout_link_input_section_ext): Likewise.