aboutsummaryrefslogtreecommitdiff
path: root/bfd
AgeCommit message (Collapse)AuthorFilesLines
1994-01-25 * hp300hpux.c (MY(write_object_contents)): Write out the symbolsIan Lance Taylor1-0/+4
before writing out the relocs, so that the right symbol indices are used.
1994-01-25 * archive.c (do_slurp_bsd_armap, bfd_slurp_bsd_armap_f2): Do notIan Lance Taylor1-0/+8
try to overlay the internal carsyms on the external symdefs. That can not work if the size of a host pointer is larger than 4 bytes.
1994-01-25 * format.c (bfd_check_format_matches): Cast result ofIan Lance Taylor2-3/+3
bfd_xmalloc_by_size_t. * opncls.c (_bfd_new_bfd): Avoid ANSI C prototype.
1994-01-25 * som.c, som.h (bfd_som_set_section_attributes,Jim Kingdon1-0/+8
bfd_som_set_subsection_attributes): Change parameters from char to int. Following a prototype with an old-style function definition in the presence of widened parameters is a GCC-ism not supported by the HP compiler in ANSI mode.
1994-01-25A few more minor formatting cleanups.Ian Lance Taylor1-14/+12
1994-01-25 * archive.c: Reindented to GNU standards.Ian Lance Taylor2-667/+744
1994-01-25 * opncls.c (_bfd_new_bfd, _bfd_new_bfd_contained_in): AddDavid MacKenzie11-315/+364
"_bfd_" to function names. * archive.c (_bfd_create_empty_archive_element_shell), libbfd-in.h: Change callers. * libbfd.c (bfd_zmalloc): Renamed from zalloc. * libbfd.c (bfd_add_to_string_table), trad-core.c (trad_unix_core_file_p), targets.c (bfd_target_list), ptrace-core.c (ptrace_unix_core_file_p), opncls.c (new_bfd), libbfd-in.h, ieee.c (ieee_make_empty_symbol), elf32-hppa.c (hppa_elf_stub_branch_reloc), (hppa_elf_stub_reloc): Change callers. * libbfd.h: Regenerated. * archive.c (_bfd_look_for_bfd_in_cache): Add "_bfd_" to name. (_bfd_get_elt_at_filepos), coff-rs6000.c (rs6000coff_get_elt_at_filepos), libbfd-in.h: Change callers. * format.c (bfd_check_format_matches), libbfd-in.h, targets.c, elfcode.h (elf_object_p): Rename target_vector to bfd_target_vector and default_vector to bfd_default_vector. * libbfd.h: Regenerated.
1994-01-25 * coff-alpha.c (alpha_ecoff_object_p): New function. Set size ofIan Lance Taylor3-75/+208
.pdata section based on lnnoptr field, not section header. (alpha_relocate_section): Don't bother to check if r_symndx >= 0, since it is unsigned. (ecoffalpha_little_vec): Use alpha_ecoff_object_p rather than coff_object_p. * ecoff.c (ecoff_new_section_hook): Set alignment_power field of .pdata section to 3. (ecoff_compute_section_file_positions): Save the size of the .pdata section in the line_filepos field, and actually align the .pdata section to an alignment power of 4. (ecoff_compute_reloc_file_positions): Set output_has_begun after calling ecoff_compute_section_file_positions. (ecoff_write_object_contents): Set s_lnnoptr for the .pdata section from the line_filepos field. Set vstamp for the optional header from the vstamp of the symbolic header. (ecoff_bfd_final_link): Set vstamp of the symbolic header to the vstamp used by the first object file in the link.
1994-01-25 * ecofflink.c (ecoff_align_debug): Align RFDs to debug_align.Ian Lance Taylor1-2/+12
1994-01-24 * linker.c (generic_link_check_achive_element): Set SEC_ALLOC flagIan Lance Taylor2-2/+17
for a created common section. (_bfd_generic_link_add_one_symbol): Likewise.
1994-01-24 * elfcode.h (swap_out_syms): Use elf_section_from_bfd_section toIan Lance Taylor1-1/+2
get the index of a common section, rather than always using SHN_COMMON (MIPS has multiple common sections).
1994-01-24 * format.c (bfd_check_format_matches): New function.David MacKenzie4-44/+84
(bfd_check_format): Call it. (bfd_matching_formats): Function removed. * targets.c: Replace the vector added on Jan 21 with a count of entries in default_vector. * bfd-in2.h: Regenerated.
1994-01-24 * elf32-hppa.c (hppa_elf_gen_reloc_type): Typo (== for =).Ian Lance Taylor2-1/+3
1994-01-24 * bfd/aoutx.h (aout_link_input_section_std,Ian Lance Taylor9-356/+786
aout_link_input_section_ext): Pass additional arguments to reloc_overflow callback. * coff-alpha.c (alpha_ecoff_get_relocated_section_contents, alpha_relocat_section): Likewise. * coff-h8300.c (h8300_reloc16_extra_cases): Likewise. * coff-h8500.c (extra_case): Likewise. * coff-mips.c (mips_relocate_section): Likewise. * coff-z8k.c (extra_case): Likewise. * elf32-hppa.c (hppa_elf_stub_finish): Likewise. * reloc.c (bfd_generic_get_relocated_section_contents): Likewise.
1994-01-24 * bout.c (calljx_callback, callj_callback): Use get_value to getIan Lance Taylor3-450/+317
the symbol value and check for undefined symbols. (get_value): If the symbol is undefined, look it up in the linker hash table. (b_out_get_relocated_section_contents): For PCREL24 and PCREL13 use get_value to get the symbol value and check for undefined symbols. * reloc16.c (bfd_coff_reloc16_get_value): If the symbol is undefined, look it up in the linker hash table.
1994-01-24 * aoutx.h (translate_symbol_table): The string index 0 has aIan Lance Taylor2-1/+14
special meaning for normal symbols, but not for dynamic symbols.
1994-01-22Sat Jan 22 13:41:25 1994 Stan Shebs (shebs@andros.cygnus.com)Stan Shebs2-13/+18
* mpw-xconfig.in: Added forward-includes for all the files, and changed to use absolute pathnames.
1994-01-22Sat Jan 22 13:30:57 1994 Stan Shebs (shebs@andros.cygnus.com)Stan Shebs3-16/+10
* mpw-config.in: Create sysdep.h using forward-include. Remove unneeded synthesis of varargs.h. * mpw-make.in (CC, CFLAGS): Remove, now in config/mpw-mh-mpw. (CSEARCH): Added path to extra-include.
1994-01-22 * sparclynx.c: Setup appropriate macros to enable core fileStu Grossman2-0/+275
support.
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.