aboutsummaryrefslogtreecommitdiff
path: root/bfd
AgeCommit message (Collapse)AuthorFilesLines
1993-11-12 * som.c: Include libhppa.hJeff Law2-0/+3
1993-11-12 * som.c (bfd_som_set_section_attributes): New function.Jeff Law2-2/+87
(bfd_som_set_subsection_attributes): Likewise. (bfd_som_set_symboL_type): Likewise. (bfd_som_attach_unwind_info): Likewise. * som.h: Declare new exported functions.
1993-11-12 * som.h (struct som_symbol): Add new fields to hold additionalJeff Law1-0/+155
information needed to build/write symbol tables and fixup streams. (struct som_section_data_struct): Add new fields to hold additional information needed to build/write space and subspace headers. (som_symbol_data): New accessor macro for SOM symbol information. (R_HPPA_*): Basic relocation types to be used by the assembler.
1993-11-12 * trad-core.c (trad_unix_core_file_p): If new hookJim Kingdon1-0/+7
TRAD_CORE_ALLOW_ANY_EXTRA_SIZE defined, then skip the check for the corefile being too big. * hosts/i386sco.h: Define it.
1993-11-11 * bfd.c (struct _bfd): Add hppabsd_core_data.Jeff Law2-0/+8
* targets.c (target_vector): Add hppabsd_core_vec. * hpux-core.c (hpux_core_core_file_p): Fail if an unknown core section is encountered during core section scanning. * hppabsd-core.c: New file. * config/hppabsd.mh: Enable HPPA BSD core files.
1993-11-11 * elf32-hppa.c (hppa_elf_reloc): Remove DEFUN crud. Remove codeJeff Law2-47/+32
which is either commented out or ifdef'd out. Add, update and clean comments. Fix various indention and spacing problems. Handle problems related to using "ble" to jump to a stub rather than "bl" (%r31 is trashed by "ble", but not by "bl"). (NEW_INSTRUCTION): Put inside curly braces. (CURRENT_STUB_OFFSET): Fix indention problems. (hppa_elf_build_arg_reloc_stub): Fix indention and spacing problems. Add, update and clean comments. Handle "ble" %r31 lossage problems. (hppa_elf_build_long_branch_stub): Likewise. (hppa_look_for_stubs_in_section): Likewise. (hppa_elf_stub_check): Remove obsolete function. * hppa_stubs.h: Add new instructions to deal with %r31 lossage problems. Delete unused instructions.
1993-11-09Entries for several checkins.Ian Lance Taylor1-0/+41
1993-11-09 * elfcode.h (elf_object_p): Rather than looking through an arrayIan Lance Taylor4-20/+39
of architectures, get the ELF EM_xxx code from the backend information. Let the generic ELF target match any EM_xxx code not matched by another ELF target. Call elf_backend_object_p to let the backend do more checks and set global information. * libelf.h (struct elf_backend_data): Added elf_machine_code and elf_backend_object_p fields. (struct bfd_elf_arch_map): Removed. (bfd_elf_arch_map, bfd_elf_arch_map_size): Don't declare. * elf32-target.h, elf64-target.h: Initialize elf_machine_code field with ELF_MACHINE_CODE. Initialize elf_backend_object_p field with elf_backend_object_p (if it is defined). * elf32-gen.c, elf32-hppa.c, elf32-i386.c, elf32-i860.c, elf32-m68k.c, elf32-m88k.c, elf32-mips.c, elf32-sparc.c, elf64-gen.c (ELF_MACHINE_CODE): Defined. * elf32-mips.c: Include ecoffswap.h to get ECOFF swapping routines. (mips_elf_object_p): Set the right machine number. (mips_elf_ecoff_debug_swap): Defined. (elf_backend_object_p): Defined to be mips_elf_object_p. (elf_backend_ecoff_debug_swap): Defined to be mips_elf_ecoff_debug_swap. * elf.c (bfd_elf_arch_map, bfd_elf_arch_map_size): Removed. * elf32-mips.c (elf_mips_howto_table): Don't complain on overflow for R_MIPS_26. Correct overflow detection requires matching the upper four bits of the destination against the PC. From Ted Lemon <mellon@pepper.ncd.com>. * elf32-hppa.c (elf_hppa_reloc_type_lookup): Return type should point to const data.
1993-11-09Fix a brainoStan Shebs2-0/+6
1993-11-09 * libelf.h: Added some comments.Ian Lance Taylor4-15/+114
(struct elf_backend_data): Added elf_backend_ecoff_debug_swap field. Removed unused write_relocs field. * elf32-target.h: Adjusted elf_backend_data initialization accordingly. * elf64-target.h: Corrected elf_backend_data initialization to fill in all fields and to set elf_64_p to 1.
1993-11-08 * elfcode.h (bfd_section_from_shdr): Remove duplicate assignmentIan Lance Taylor2-32/+56
to filepos in SHT_STRTAB case. (assign_file_position_for_section): Set BFD section filepos as well as ELF section sh_offset.
1993-11-08 * reloc.c: Use const instead of CONST.Ian Lance Taylor3-22/+33
(bfd_perform_relocation): Make variable howto a const pointer. * bfd-in2.h, libbfd.h: Rebuilt.
1993-11-08Netware target supportDavid Henkel-Wallace1-0/+6
1993-11-08 * libbfd.c (bfd_put_8): Add parens around reference to "val"Jeff Law1-0/+5
argument.
1993-11-06correct mach3 valuesDavid MacKenzie1-0/+5
1993-11-06more doc cleanupsDavid MacKenzie2-14/+14
1993-11-05coffcode.h change.Ian Lance Taylor1-0/+4
1993-11-05fix mistakes in last changeDavid MacKenzie3-99/+96
1993-11-05doc cleanupDavid MacKenzie19-1137/+1517
1993-11-05Check in version built from changed bfd-in.h.John Gilmore1-1/+13
1993-11-04* bfd-in.h (bfd_get_cacheable, bfd_set_cacheable): New accessors.John Gilmore3-29/+110
* bfd.c, opncls.c: Improve comments on file descriptor cacheing.
1993-11-04 * From Pete Hoogenboom (hoogen@cs.utah.edu)Jeff Law1-0/+7
* elf32-hppa.c (hppa_elf_get_section_contents): Fix logic error in last change. Always rebuild symbol extension section the first time though if output sections exist (fixes ld -r problems).
1993-11-04Added .PHONY for check and installcheck. both now also echo a message.Jeffrey Wheat2-243/+165
1993-11-02HPUX portability change.Bill Cox1-0/+5
1993-11-02* config.bfd: Use bigmips for mips*-*-bsd*.Jim Kingdon2-1/+5
1993-11-01 * elfcode.h (elf_slurp_reloca_table, elf_slurp_reloc_table):Ian Lance Taylor1-0/+3
Handle symbol number of zero.
1993-11-01 * elf32-mips.c (mips_elf_hi16_reloc, mips_elf_lo16_reloc):Ian Lance Taylor1-0/+10
Rearrange _gp_disp checks slightly.
1993-11-01 * reloc.c (enum bfd_reloc_code_real): AddedIan Lance Taylor1-5/+984
BFD_RELOC_MIPS_LITERAL, BFD_RELOC_MIPS_GOT16, BFD_RELOC_MIPS_CALL16, BFD_RELOC_MIPS_GPREL32. * bfd-in2.h: Rebuilt. * coff-mips.c (mips_bfd_reloc_type_lookup): Handle BFD_RELOC_MIPS_LITERAL. * elf32-mips.c (mips_reloc_map): Handle new relocs.
1993-11-01 * aout-target.h (MY_bfd_debug_info_start, MY_bfd_debug_info_end,Ian Lance Taylor1-0/+21
MY_bfd_debug_info_accumulat [sic]): Remove unused definitions. (MY_bfd_get_relocated_section_contents, MY_bfd_relax_section, MY_bfd_seclet_link): Define. (MY_bfd_reloc_type_lookup): Rename from MY_reloc_howto_type_lookup. (MY_bfd_make_debug_symbol): Rename from MY_make_debug_symbol. (MY(vec)): Use JUMP_TABLE rather than listing functions. * hp300hpux.c (MY_get_symtab, MY_get_symtab_upper_bound, MY_canonicalize_reloc, MY_write_object_contents): Don't define in terms of MY, because that causes a recusive invocation of CAT when expanded within JUMP_TABLE, and ANSI compilers don't expand recursive macros. * mipsbsd.c (MY_bfd_reloc_type_lookup): Rename from MY_reloc_howto_type_lookup, and don't define in terms of MY. (MY_canonicalize_reloc): Don't define in terms of MY. (aout_mips_little_vec, aout_mips_big_vec): Use JUMP_TABLE rather than listing functions.
1993-11-01Keep Lynx filesStan Shebs2-2/+6
1993-11-01* config.bfd: Use m68k-elf for m68*-*-sysv4*.Jim Kingdon2-12/+17
1993-10-31 * targets.c: Move enum target_flavour outside of struct and changeJim Kingdon2-40/+86
the name to enum bfd_flavour. This means bfd clients can use it. * bfd-in.h: Add macro bfd_get_flavour. * bfd-in2.h: Rebuilt.
1993-10-31* som.c: Add comment about how abort() on corrupt executable is evil.Jim Kingdon1-0/+8
1993-10-29testDavid MacKenzie1-1/+1
1993-10-29 * bfd-in.h: Added commands for object file flag values.Ian Lance Taylor2-1/+17
* bfd-in2.h: Rebuilt. * elfcode.h (elf_object_p): If type is ET_DYN, set DYNAMIC flag, not EXEC_P. * bout.c, coff-h8300.c, coff-sh.c: Add BFD_IS_RELAXABLE to object_flags field for target vector. * aix386-core.c, aout-adobe.c, aout-target.h, bout.c, coff-a29k.c, coff-alpha.c, coff-apollo.c, coff-h8300.c, coff-h8500.c, coff-i386.c, coff-i960.c, coff-m68k.c, coff-m88k.c, coff-mips.c, coff-rs6000.c, coff-sh.c, coff-we32k.c, coff-z8k.c, hpux-core.c, ieee.c, mipsbsd.c, nlm-target.h, oasys.c, osf-core.c, som.c, srec.c, tekhex.c, trad-core.c: Remove DYNAMIC from object_flags field for target vector.
1993-10-29initial mach3 386 support (not working yet)David MacKenzie1-0/+5
1993-10-29Minor changes, plus definitions for Sparc Lynx host.Stan Shebs3-6/+48
1993-10-29A number of minor Lynx-related changes, plus basic Sparc Lynx support.Stan Shebs4-6/+38
1993-10-28 gcc -Wall lint:Ian Lance Taylor5-173/+569
* coff-h8300.c (h8300_reloc16_estimate): Declare return type. Remove useless statement probably left by code copy. * cpu-i960.c (compatible): Fully bracket matrix initializer. * elf32-hppa.c (hppa_elf_build_arg_reloc_stub): Use bfd_xmalloc rather than xmalloc. Use realloc and check the return value rather than xrealloc. (hppa_elf_get_section_contents): Add some casts. * elf32-i386.c (elf_i386_reloc_type_lookup): Remove unused variable. Add default case to switch. * hp300hpux.c: Declare aout_32_write_syms. * i386bsd.c, i386linux.c, netbsd386.c (N_SHARED_LIB): Define as 0 (definition from aout/aout64.h is always 0 anyhow). * i386lynx.c (swap_std_reloc_in): Remove unused variable. * ieee.c (ieee_write_id): length can never be negative. (read_id): Likewise. (ieee_archive_p): Remove unused variable. * libcoff-in.h (bfd_perform_slip): Declare. * libcoff.h: Rebuilt. * oasys.c (oasys_write_sections): Remove zero initialization of static structure. * reloc16.c: Indentation change.
1993-10-28 * configure.in, config/i386-mach3.mt: Update for new configurationJim Kingdon3-1/+11
(--with-targets and so on). * hosts/i386mach3.h: Declare errno. * targets.c: Declare i386mach3_vec.
1993-10-27 * nlmcode.h (nlm_swap_auxiliary_headers_in,Ian Lance Taylor1-0/+6
nlm_swap_auxiliary_headers_out): Handle sharedDebugRecordOffset and sharedDebugRecordCount fields.
1993-10-26 * targets.c (target_vector): Remove SCO_CORE. On Sep 11 1993,Jim Kingdon2-11/+16
we started using trad-core.c for SCO instead. * targets.c (target_vector): Re-enable generic ELF and NLM targets.
1993-10-26 * elfcode.h (assign_file_position_for_section): Align sh_offset toIan Lance Taylor2-37/+41
sh_addralign (this is what UnixWare does, and it shouldn't hurt).
1993-10-26From Jeff Law and Pete Hoogenboom at Utah:Ken Raeburn3-137/+200
* elf32-hppa.h (hppa_elf_stub_finish): Add prototype. (ELF32_HPPA_R_ARG_RELOC): Renamed without the ELF32 prefix and moved into libhppa.h. All references changed. (ELF32_HPPA_R_CONSTANT, ELF32_HPPA_R_ADDEND): Likewise. (get_opcode and opcode defines): Move into libhppa.h * elf32-hppa.c (hppa_elf_insn2fmt): Rename and move info libhppa.h. * libhppa.h (HPPA_R_*): Moved here. Reformatted slightly to make for easier reading. (get_opcode): Moved here. FIXME! this really should be a C function inside the opcode library! (bfd_hppa_insn2fmt): Likewise. * targets.c (target_vector): Enable elf32-hppa vector. * elf32-hppa.c (hppa_elf_get_section_contents): Add new comments and clarify existing comments. Do not use DEFUN to declare this function. Fix numerous indention problems. Correctly handle cases where symbol extension section may need to be read from disk, read from memory, or built then read from memory. * elf32-hppa.h: Reformat with gnu-indent and hand fix numerous formatting and indention problems gnu-indent can not handle. Clarify some comments about relocation types. Comment basic relocation "classes". Group PARAM declarations together. (HPPA_SXT_{NULL, SYMNDX, RG_RELOC}): Make members of a new enumerated type rather than #defines.
1993-10-26 * som.c (hppa_object_setup): Set SEC_CODE for .text section soStu Grossman2-191/+568
that GDB can figure out text_start and text_end.
1993-10-25 Fix up warnings from gcc -Wall:Ian Lance Taylor2-11/+17
* coffgen.c (coff_print_symbol): Use %lx and cast n_value to unsigned long. Use %ld for tagndx. Use %lx for offset + vma and cast it to unsigned long. * ecoff.c (ecoff_emit_aggregate): Use %ld. (ecoff_print_symbol): Use %ld, and cast indx and sym_base to long. * coffcode.h (dummy_reloc16_estimate): Specify return type.
1993-10-25 * libbfd.c (bfd_write): If not everything is written out, setIan Lance Taylor3-34/+64
bfd_error to system_call_error. If the return value is non-negative, set errno to ENOSPC (if ENOSPC is defined). (bfd_seek): If the seek fails, set bfd_error to system_call_error. (bfd_generic_set_section_contents): For a bad offset + count, set bfd_error to bad_value. * seclet.c (rel): Don't abort. Instead, return false.
1993-10-25aoutx.h (reloc_type_lookup): Handle BFD_RELOC_SPARC_WDISP22.Ken Raeburn1-0/+9
1993-10-22note TDEFINES setting of FPRINTF_ALREADY_DECLARED.Mark Eichin1-0/+6
1993-10-22 * targets.c (target_vector): Enable MIPS ELF vectors.Ian Lance Taylor1-0/+4