aboutsummaryrefslogtreecommitdiff
path: root/bfd
AgeCommit message (Collapse)AuthorFilesLines
1993-08-05fix line numbersDavid MacKenzie1-0/+12
1993-08-04 * libnlm.h (nlm_backend_data): Added nlm_mangle_relocs.Ian Lance Taylor4-53/+566
(nlm_mangle_relocs_func): New macro. * nlm32-i386.c (nlm_i386_write_reloc): Rewrote correctly. (nlm_i386_mangle_relocs): New function. * nlmcode.h (nlm_compute_section_file_positions): Move all common symbols into the .bss section. (nlm_set_section_contents): Call the mangle_relocs function. (nlm_write_object_contents): Treat a reloc against any defined symbol as an internal reloc. Fix bug in external reloc counting. Get the offset and debugging type right for .bss symbols. Only output debugging symbols for defined symbols.
1993-08-04 * coff-h8500.c (rtype2howto): Do an fprintf to stderr rather thanIan Lance Taylor4-12/+152
using printf. * coff-z8k.c (rtype2howto): Likewise. * coffcode.h (dummy_reloc16_extra_cases): Likewise. * elf32-i386.c (TRACE): Likewise. * hp300hpux.c (convert_sym_type, swap_std_reloc_in): Likewise. * rs6000-core.c (rs6000coff_get_section_contents): Likewise. * coffgen.c (coff_print_symbol): Do an fprintf to the file argument rather than using printf.
1993-08-04With these changes, the binutils mostly work on the Alpha, except forIan Lance Taylor3-16/+73
objdump -r. * coffswap.h: Added macros used when accessing several fields; default is the same as before. (coff_swap_aouthdr_{in,out}): Handle the Alpha ECOFF fields. * coff-alpha.c: Defined macros to use the right sizes in coffswap.h. * libecoff.h: Backend information is now in target vector, not BFD. Start of backend information is COFF backend information. * coff-alpha.c, coff-mips.c: Changed accordingly. * ecoff.c (ecoff_mkobject): New function. (ARMAP_START): Changed into backend information, since Alpha uses a different name. (ecoff_slurp_armap): Don't overlay archive header. * bfd.c: Include libcoff.h.
1993-08-04fix syntax errorDavid MacKenzie2-10/+9
1993-08-03make a common externDavid MacKenzie1-0/+7
1993-08-03 * nlm_slurp_symbol_table: Don't use '&' on arrays.Fred Fish2-90/+1333
1993-08-03 * ecoff.c: New file for generic ECOFF functions.Ian Lance Taylor9-8867/+4793
* ecoffswap.h: New file for ECOFF swapping functions which differ only slightly for different targets. * libecoff.h: Added prototypes for ecoff.c functions. (ecoff_backend_data): New structure. (ecoff_tdata): Added backend_data field. Changed external data pointers to be PTR rather than to a particular struct. (ecoff_symbol_struct): Moved in from coff-mips.c. * coff-alpha.c, coff-mips.c: Moved common functions into ecoff.c. Added ECOFF backend structures. Include ecoffswap.h. * coff-msym.c: Removed; superseded by ecoffswap.h. * bfd.c: Include coff/internal.h. * Makefile.in (BFD_LIBS): Removed coff-mips.o and coff-msym.o. Added ecoff.o. (BFD64_BACKENDS): Added coff-alpha.o. (CFILES): Removed coff-msym.c. Added ecoff.c. (bfd.o): Added dependency on $(INCDIR)/coff/sym.h. (coff-mips.o): Added dependency on ecoffswap.h and coff/ecoff.h. (ecoff.o, coff-alpha.o): New targets. (coff-msym.o): Removed target.
1993-08-03* elf32-hppa.h, hosts/*: Remove (one more time) all occurrancesJohn Gilmore18-162/+171
of EXFUN in the BFD sources. Heave ho!
1993-08-02Remove '.Sanitize' from explicit list of Things-to-lose. It is now implicitlyFred Fish3-3/+0
added to the list by Sanitize, unless Sanitize knows it needs to keep it.
1993-08-02remove some conflicting declsDavid D. Zuhn2-2/+4
1993-08-02Mon Aug 2 11:48:23 1993 Stu Grossman (grossman at cygnus.com)Stu Grossman1-0/+5
* i386lynx.c: Remove unnecessary def of N_HEADER_IN_TEXT, redefine TEXT_START_ADDR to be 0.
1993-08-02Add i386lynx.h.Stu Grossman1-0/+1
1993-08-02Sun Aug 1 22:54:08 1993 Stu Grossman (grossman at cygnus.com)Stu Grossman2-0/+35
* configure.host, configure.in, hosts/i386lynx.h: Lynx/386 host and target info.
1993-07-30common section fixDavid MacKenzie1-0/+49
1993-07-30First cut at i386 specific NLM backend.Ian Lance Taylor1-0/+1
1993-07-30 * nlm32-i386.c: New file. First cut at i386 NLM code.Ian Lance Taylor2-158/+2
* libnlm.h: Added some more prototypes. (struct nlm_relent): New structure. (nlmNAME(symbol_type)): Added rcnt and relocs fields. (struct nlm_obj_tdata): Added new fields: nlm_symbols, nlm_text_low, nlm_data_low, nlm_reloc_fixups, nlm_reloc_fixup_secs. (struct nlm_backend_data): New structure, with accessor macros. * nlmcode.h: Use NLM_HIBIT rather than MSB. (nlm_object_p): Set SEC_RELOC for .text and .data. Don't set SEC_DATA for .bss. Set HAS_RELOC and HAS_SYMS for abfd. Set the architecture. (nlm_swap_fixed_header_out, nlm_swap_variable_header_out, find_nonzero, nlm_swap_auxiliary_headers_out): New outbound swapping functions. (nlm_get_symtab_upper_bound, nlm_slurp_symbol_table): Include external references in symbol table as undefined symbols. (nlm_get_symtab, nlm_slurp_symbol_table): Fill in alocation argument in get_symtab rather than in slurp_symbol_table. (nlm_slurp_symbol_table): Save symbol information in tdata. (nlm_print_symbol): New function. (nlm_slurp_reloc_fixups, nlm_get_reloc_upper_bound, nlm_canonicalize_reloc): New functions to read relocs. (nlm_compute_section_file_positions, nlm_set_section_contents, nlm_external_reloc_compare, nlm_write_object_contents): New functions to create NLM files. * nlm-target.h: Define all the nlm functions here either as default values or in terms of nlmNAME. Use JUMP_TABLE(nlm). Set the backend_data field to TARGET_BACKEND_DATA. * nlm32-gen.c, nlm64-gen.c: Don't define function macros here; they are now in nlm-target.h. (TARGET_BACKEND_DATA): Define as NULL. * nlm.c (nlm_mkobject): Do allocate the tdata field. (nlm_set_arch_mach): New function. * targets.c: Added nlm32_i386_vec. * Makefile.in (BFD32_BACKENDS): Added nlm32-i386.o. (CFILES): Added nlm32-i386.c. (nlm32-gen.o, nlm64-gen.o): Depend on nlm-target.h. (nlm32-i386.o): New target.
1993-07-30dSteve Chamberlain15-5/+15
Make sure ansidecl.h is included where needed.
1993-07-30Add .Sanitize to Things-to-lose list.Fred Fish3-0/+6
1993-07-30Add esix.h to Things-to-lose list.Fred Fish1-0/+2
1993-07-30remove some sun3 function declsDavid D. Zuhn2-7/+11
1993-07-27 * nlm{32,64}-gen.c (JUMP_TABLE_PREFIX): Delete.Fred Fish3-2/+11
* nlm{32,64}-gen.c (JUMP_TABLE_INIT): New macro that works with older cpp's, that don't do additional replacement on the JUMP_TABLE macro's argument. * nlm-target.h (JUMP_TABLE_INIT): Use new macro in place of JUMP_TABLE macro.
1993-07-26 Yet another trad-core variant:Jim Kingdon2-0/+12
* config/esix.mh, hosts/esix.h: New files. * configure.hosts: Use them.
1993-07-26new for esixJim Kingdon1-0/+0
1993-07-26 * reloc.c (bfd_perform_relocation): Handle the case ofIan Lance Taylor1-0/+6
complain_overflow_bitfield, rightshift > bitpos, and a negative number.
1993-07-26Lots o' elf changesKen Raeburn1-0/+42
1993-07-26Reimplement segment writing.Ken Raeburn1-118/+345
(elf_write_phdrs): Use precomputed e_phoff rather than making assumptions. (elf_build_phdrs): Disabled, for now. (assign_file_position_for_section): Don't change file offset for SHT_NOBITS. (assign_file_positions_for_symtab_and_strtabs): New function. (struct seg_info): New type. (map_program_segments): New function. (assign_file_positions_except_relocs): For executables, leave section headers &c for last, and properly align all sections with flag SHF_ALLOC set. (prep_headers): No longer abort when EXEC_P is set. (write_shdrs_and_ehdr): Deleted all code relating to program segments. (various): Deleted some unused code, and debugging "malloc(0)" calls. (write_relocs): Cache value of last symbol looked up, to save time if the symbol is referred to repeatedly. (elf_fake_sections): Check only SEC_RELOC flag, not number of relocs. (assign_section_numbers): Likewise.
1993-07-26(elfXX_bed): Initialize maxpagesize from ELF_MAXPAGESIZE.Ken Raeburn2-4/+18
(ELF_MAXPAGESIZE): Default to 1.
1993-07-26 * libelf.h (struct elf_backend_data): New field, maxpagesize.Ken Raeburn1-0/+2
(struct elf_obj_tdata): New field, phdr.
1993-07-26(bfd_perform_relocation): Handle 64-bit relocs.Ken Raeburn1-39/+68
1993-07-26 * configure.in: Don't look in ${srcdir} for ${target_makefile_frag};Ian Lance Taylor1-0/+5
the top level script has already adjusted for it.
1993-07-26 * srec.c (srec_write_symbols): Get CR LF in the right order.Steve Chamberlain1-0/+4
1993-07-26* hosts/vaxbsd.h: Include std-host.h. Don't include <machine/param.h>.Jim Kingdon1-0/+9
1993-07-23* bfd.c (bfd_nonrepresentable_section, bfd_undefined_symbol,David Edelsohn1-0/+6
bfd_reloc_value_truncated, bfd_reloc_is_dangerous, bfd_assert): Send error messages to stderr.
1993-07-22 * nlm{32,64}-target.h: Remove.Fred Fish6-362/+193
* nlm-target.h: New file, merged from nlm{32,64}-target.h * libnlm.h (NLM_ARCH_SIZE): Define to ARCH_SIZE. * nlm.c (ARCH_SIZE): Remove define to zero. * nlm32-gen.c (ARCH_SIZE): Define to 32. * nlm32-gen.c (JUMP_TABLE_PREFIX): Define to nlm32. * nlm{32,64}-gen.c (nlm-target.h): Include. * targets.c, libnlm.h, nlm.c, nlm{32,64}-gen.c, nlm{32,64}.c, nlmcode.h: Convert prefixes from bfd_nlm<size> to just nlm<size>, and use macros select size.
1993-07-22 * Makefile.in (Makefile): add configure.in, drop redundantK. Richard Pixley1-0/+5
$(srcdir), drop redundant ./
1993-07-22Generic HP/UX core file support.Ian Lance Taylor1-0/+1
1993-07-22 * hpux-core.c: New file; backend for HP/UX style core files.Ian Lance Taylor6-135/+45
* bfd.c (struct _bfd): Renamed hppa_core_data field to hpux_core_data. * bfd-in2.h: Updated. * hppa.c (make_bfd_asection, hppa_core_file_p, hppa_core_file_failing_command, hppa_core_file_failing_signal, hppa_core_file_matches_executable_p): Moved into hpux-core.c. Removed from target vector. * libhppa.h (struct hppa_core_struct and accessor macros): Moved into hpux-core.c. * targets.c: If HPUX_CORE is defined, add hpux_core_vec to target list. * config/hp300.mh (HDEFINES): Set to -DHPUX_CORE. (HDEPFILES): Set to hpux-core.o. * config/hppabsd.mh, config/hppahpux.mh: Likewise. * hosts/hp300.h (HOST_HP300HPUX): Define. * Makefile.in (OPTIONAL_BACKENDS): Added sco-core.o, aix386-core.o, hpux-core.o. (sco-core.o, aix386-core.o, hpux-core.o): New dependencies.
1993-07-22 * reloc.c (enum complain_overflow): New enumeration with theIan Lance Taylor4-41/+128
various flavours of overflow checking. (srtuct reloc_howto_struct): Changed complain_on_overflow field from boolean to emum complain_overflow. Removed obsolete absolute field. (HOWTO): Removed absolute argument. (bfd_perform_relocation): Do overflow checking on all types of fields. * bfd-in2.h: Updated accordingly. * all targets: Updated initialization of reloc howto tables.
1993-07-22don't use 'template' in C code, so it'll be friendlier to C++Ken Raeburn2-1/+6
1993-07-20 * coff-m68k.c (m68k_howto2rtype): Make arg CONST to match callers.Fred Fish2-2/+4
1993-07-20 * elfcode.h: Fix several illegal pointer combination warnings forFred Fish1-0/+3
usages of bfd_alloc and alloca.
1993-07-20 * libnlm.h (nlm_obj_tdata): Rename hidden struct members to avoidFred Fish3-16/+22
apparent Sun C preprocessor recursion. Fix access macros. * nlmcode.h: Remove spurious '&' before several array references.
1993-07-20 * Rename for DOS uniqueness: coff-m68k-un.c -> coff-u68k.cJim Kingdon5-4/+10
config/m68k-coffun.mt -> u68k-coff.mt. * Makefile.in, configure.in: Corresponding changes.
1993-07-20* elf32-sparc.c (elf_sparc_howto_table): Don't use "^&" beforeKen Raeburn3-62/+68
function name; it's valid without, and some compilers give warnings with it there.
1993-07-20Reflect symmetry changesJim Kingdon2-2/+3
1993-07-20 * bfd.c (union tdata): Add nlm_obj_data;Fred Fish3-0/+4
* targets.c (enum target_flavour): Add bfd_target_nlm_flavour.
1993-07-20 * bfd-in.h: Apply some of the changes that were made to bfd-in2.h.Fred Fish1-0/+4
1993-07-20 * configure.in (*-*-netware, i[34]86-*-netware): New configs.Fred Fish18-60/+1579
* Makefile.in (BFD32_BACKENDS): Add nlm.o, nlm32.o, nlm32-gen.o. * Makefile.in (BFD64_BACKENDS): Add nlm64.o, nlm64-gen.o. * Makefile.in (CFILES): Add nlm{32,64}.c, nlm{32,64}-gen.c. * Makefile.in (nlm.o, nlm{32,64}.o, nlm{32,64}-gen.o: New targets. * bfd-in2.h (INLINE): Defines moved here. * {aoutx.h, elf.c, elfcode.h}: Move INLINE defines to bfd-in2.h. * libelf.h (CAT4): Move define to bfd-in2.h. * bfd-in2.h (CAT4): Merge CAT4 macro with other CAT macros. * bfd-in2.h (union tdata): Add nlm_obj_data. * bfd-in2.h (enum target_flavour): Add bfd_target_nlm_flavour. * targets.c (bfd_nlm{32,64}_{big,little}_vec): Add prototypes. * targets.c (target_vector): Add bfd_nlm{32,64}_{big,little}_vec. * (libnlm.h, nlm.c, nlmcode.h, nlm{32,64}-gen.c, nlm{32,64}-target.h, nlm{32,64}.c, config/i386-nlm.mt): New files for NLM support.
1993-07-19fix stupid typoDavid D. Zuhn1-1/+1