aboutsummaryrefslogtreecommitdiff
path: root/bfd
AgeCommit message (Collapse)AuthorFilesLines
1994-02-05 * aoutx.h (aout_link_check_ar_symbols): Correct test for whetherIan Lance Taylor2-4/+23
object file defines symbol. Also, if skipping a symbol, skip the second symbol of a N_WARNING or N_INDR symbol as well.
1994-02-05 * reloc.c (bfd_perform_relocation): Work around one gross hackIan Lance Taylor1-0/+47
with another: actually look at the target name to avoid the broken COFF check. (bfd_reloc_code_real_type): Add BFD_RELOC_PPC_B26, BFD_RELOC_PPC_BA26 and BFD_RELOC_PPC_TOC16. * bfd-in2.h: Rebuilt.
1994-02-05 * coffcode.h (combined_entry_type): Changed fix_tag and fix_endIan Lance Taylor1-2/+10
fields to bitfields. Added fields fix_value and fix_scnlen. (sec_to_styp_flags): If STYP_DEBUG is defined, use it rather than STYP_INFO for the type of a section named .debug. (coff_add_missing_symbols): Don't define if RS6000COFF_C. (coff_write_object_contents): If RS6000COFF_C, don't call coff_add_missing_symbols. (coff_slurp_symbol_table): If RS6000COFF_C, then if the last aux entry has type STY_LD change the x_scnlen into a pointer to a symbol and set fix_scnlen. Also, for a C_BSTAT symbol, change the value into a pointer to a symbol and set fix_value. * libcoff.h: Rebuilt. * coffgen.c (coff_mangle_symbols): Reindent. If fix_value is set, get the symbol offset. Likewise for fix_scnlen. (string_size): Change type to bfd_size_type. (debug_string_size, debug_string_section): New static variables. (coff_fix_symbol_name): If bfd_coff_symname_in_debug returns true, write the symbol name into the .debug section; assume that the section has already been created with the right size. (coff_write_symbols): Initialize debug_string_size to 0. If bfd_coff_symname_in_debug returns true, don't put symbol name in usual string table. After writing out all symbols, if debug_string_size is not 0, check that it matches the size of the .debug section. (coff_get_normalized_symtab): Clear new fix_value and fix_scnlen fields. If the string offset is 0, always use an empty string as the name. (coff_make_empty_symbol): Zero out the symbol structure.
1994-02-05 Eliminate arg from bfd_xmalloc_by_size_t macro, allowingDavid MacKenzie4-7/+5
undoing of obstack parts of last change.
1994-02-05 * libbfd.c (bfd_zmalloc): Call bfd_xmalloc instead of malloc.David MacKenzie8-64/+37
(bfd_xmalloc, bfd_xmalloc_by_size_t): Functions deleted. * libbfd-in.h: Define them as macros calling xmalloc and declare xmalloc. * libbfd.h: Rebuilt. * ecofflink.c hash.c ieee.c opncls.c (obstack_chunk_alloc): Define to be xmalloc, not bfd_xmalloc_by_size_t.
1994-02-04 * ecofflink.c (bfd_ecoff_debug_externals): If a small undefinedIan Lance Taylor2-1/+13
symbol has a value in the ECOFF symbol but not in the BFD symbol, keep the value in the ECOFF symbol. This helps gas.
1994-02-03 * linker.c (_bfd_generic_link_output_symbols,Ian Lance Taylor2-7/+19
_bfd_generic_link_write_global_symbol): Don't require that all references to a common symbol be themselves common symbols.
1994-02-03 * aoutx.h (aout_reloc_index_to_section): Handle N_UNDF.Ian Lance Taylor2-0/+5
1994-02-03* bfd-in2.h: Rebuilt.Jim Kingdon1-0/+1
1994-02-03* bfd-in2.h: Rebuilt.Jim Kingdon1-10/+10
1994-02-03 * libbfd.c, bfd-in.h, hosts/alphaosf.h, hosts/sparc-ll.h, aoutf1.h,Jim Kingdon4-7/+12
sparclynx.c, Makefile.in: Change HOST_64_BIT to BFD_HOST_64_BIT.
1994-02-02 * coffswap.h (coff_swap_reloc_out): If RS6000COFF_C, handle typeIan Lance Taylor1-0/+6
and size correctly. (coff_swap_aux_in): If RS6000COFF_C, change x_csect.x_scnlen to x_csect.x_scnlen.l to match change in coff/internal.h. (coff_swap_aux_out): Likewise.
1994-02-02 * coff-mips.c (mips_ecoff_backend_data), coff-alpha.cIan Lance Taylor1-0/+4
(alpha_ecoff_backend_data): Change casts of aux_in and aux_out fields to match yesterday's changes.
1994-02-02 * coffcode.h (coff_write_relocs): If SELECT_RELOC is defined, passIan Lance Taylor2-2/+10
in the internal_reloc itself, not the type. * coff-apollo.c, coff-h8300.c, coff-h8500.c, coff-i386.c, coff-m68k.c, coff-sh.c, coff-we32k.c, coff-z8k.c: Changed definition of SELECT_RELOC accordingly.
1994-02-01 * coffcode.h (bfd_coff_backend_data): Added new arguments toIan Lance Taylor5-97/+227
_bfd_coff_swap_aux_in and _bfd_coff_swap_aux_out: aux index number and number of aux entries. (bfd_coff_swap_aux_in, bfd_coff_swap_aux_out): Changed accordingly. * libcoff.h: Rebuilt. * coffswap.h (coff_swap_aux_in, coff_swap_aux_out): Accept new arguments. If RS6000COFF_C, only treat C_EXT and C_HIDEXT specially if this is the last aux entry. * coffgen.c (coff_write_symbol, coff_get_normalized_symtab): Pass new arguments to swap_aux functions.
1994-01-31Makefile.in (check, installcheck): Identify directory in "no testsuites"Ken Raeburn2-2/+4
message.
1994-01-30 * gen-aout.c (main): Set DEFAULT_ARCH based on preprocessor macrosKen Raeburn2-2/+12
(only testing for m68k and vax at the moment); do verify that the preprocessor didn't trash the arch name inside the string version. Don't print out "pagesize =" line that prevents output from compiling. Derive BYTES_IN_WORD and ARCH values from sizeof results. * Makefile.in (aout-params.h): Pass gen-aout a dummy target name.
1994-01-30 * aoutx.h (aout_link_write_symbols): Write out correct value forIan Lance Taylor2-1/+8
object file symbol.
1994-01-28* hosts/vaxbsd.h (HOST_STACK_END_ADDR): Vax BSD doesn't defineKen Raeburn1-0/+5
KERNBASE, so hard-code 0x80000000 instead.
1994-01-27 * linker.c (generic_link_add_symbol_list): If symbol is common,Ian Lance Taylor2-1/+13
set the BSF_OLD_COMMON flag.
1994-01-26 * format.c (bfd_check_format_matches): Put the new entry in theDavid MacKenzie2-3/+8
correct element of matching_vector.
1994-01-25 * reloc.c (bfd_get_reloc_size): Size of type -2 is 4 bytes, not 2.Ian Lance Taylor2-1/+3
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.