aboutsummaryrefslogtreecommitdiff
path: root/bfd
AgeCommit message (Collapse)AuthorFilesLines
1993-08-31* libhppa.h: Restore #undefs of e_fsel and other e_* symbols.Jim Kingdon2-0/+31
1993-08-28regenerated after section.c changesKen Raeburn1-37/+19
1993-08-28section.c, hppa changesKen Raeburn1-0/+76
1993-08-28%$#@ cvs bugsKen Raeburn1-962/+0
1993-08-28More patches from Jeff Law, plus a little cleanup of my own.Ken Raeburn1-3/+2
These changes separate PA-SOM support from PA-ELF support. A sun4-x-hppaosf assembler can now be built. Include <stdlib.h> and <unistd.h>. Do not define malloc or free.
1993-08-28More patches from Jeff Law, plus a little cleanup of my own.Ken Raeburn5-562/+1860
These changes separate PA-SOM support from PA-ELF support. A sun4-x-hppaosf assembler can now be built. * elf32-hppa.c (elf_hppa_howto_table): Now static. (symext_rootP, symext_lastP, global_value, GOT_value, global_symbol, global_sym_defined, symextn_contents, symextn_contents_real_size, elf_hppa_stub_rootP, elf32_hppa_symextn_map, elf32_hppa_symextn_map_size): Rely on default initialization. (hppa_elf_gen_reloc_type): Macro "UNDEFINED" doesn't need a trailing semicolon. (hppa_look_for_stubs_in_section): Introduce temporaries to make code more readable in 80 columns. * libhppa.h (all functions): Now inline under GNU C. * elf32-hppa.c (AR_WARN): Give argument which caused the invalid argument relocation. (AR_UNIMP): Delete unused macro. (hppa_elf_set_section_contents): Always return a value. (elf32_hppa_backend_table_processing): Likewise. (elf32_hppa_backend_section_processing: Likewise. * som.c: New file containing SOM specific code extracted from hppa.c * som.h: New file containing SOM specific code extracted from libhppa.h * hppa.c: Deleted. * libhppa.h: Delete SOM specific code. Add generic PA code which can be shared by both SOM and ELF backends. * Makefile.in: Replace hppa.c with som.c. elf32-hppa.o depends on libhppa.h now. * configure.in (hppa_vec): Needs som.o module instead of hppa.o. * elf32-hppa.c: Include libhppa.h. Do not define BYTES_IN_WORD. * elf32-hppa.h (hppa_reloc_field_selector_type): Delete now lives in libhppa.h. (hppa_reloc_field_selector_type_alt): Likewise. * elf32-hppa.c (hppa_elf_relocate_unwind_table): Delete unused variables. (elf_hppa_reloc_type_lookup): Likewise. (elf_hppa_tc_make_sections): Likewise. (hppa_elf_arg_reloc_needed_p): Likewise. (hppa_elf_build_long_branch_stub): Likewise. (elf_reloc_map): Delete, no longer used. (elf_hppa_reloc_map): Likewise. (elf32_hppa_symextn_map_max_size): Likewise. (elf32_hppa_get_sym_extn): Abort if type is bogus. * elf32-hppa.c (elf32_hppa_backend_fake_sections): Add processing of the .hppa_unwind section.
1993-08-27removed some "#if 0" codeKen Raeburn1-4/+0
1993-08-27(struct sec): Move position of user_set_vma, and document it.Ken Raeburn1-36/+59
(SEC_BALIGN): Disable for now. I don't think it's currently used.
1993-08-27deleted -- no longer accurateKen Raeburn1-18/+0
1993-08-26make config.bfd executableKen Raeburn1-0/+2
1993-08-25Merged in changes from Jeff Law and Pete Hoogenboom at Utah for PA ELFKen Raeburn6-4/+175
support. Compiles, not particularly well tested. See ChangeLog for details.
1993-08-23add ChangeLog entry for sef change to aoutx.hJim Kingdon1-0/+1
1993-08-23config.sub also has v9 codeDavid D. Zuhn1-1/+1
1993-08-23Write (half-assed) ChangeLog entry for sef changes.Jim Kingdon2-1/+10
Change name of target from netbsd-386 to a.out-netbsd-386 so that GDB can recognize it as an a.out variant.
1993-08-23Add support for netbsd386 (almost-but-not-quite 386bsd).Sean Eric Fagan2-0/+112
1993-08-23Don't let netbsd386.c get sanitized out.Sean Eric Fagan1-0/+1
1993-08-21 * config/m88k-elf.mt: New file.Jim Kingdon2-0/+6
* config.bfd: Use it for m88*-*-sysv4*.
1993-08-20* elfcode.h (elf_build_phdrs): Unused function deleted.Ken Raeburn3-431/+237
(bfd_shdr_from_section): Ditto. (write_relocs): Don't change section contents for addend. (elf_locate_sh): Return type is now always elf_internal_shdr, since the other types were really aliases for this type anyways. Don't compile this function, since it is static and doesn't appear to be used in this file. (sym_is_global): Return non-zero for weak symbols. Abort if sec ptr is null. (swap_out_syms): Reorder tests so function symbols can be weak. (elf_slurp_symbol_table): Don't use BSF_EXPORT. (elf_slurp_reloca_table): Make RELOC_PROCESSING section smaller by extracting out some common code. Abort if BFD section symbol has null name. (elf_slurp_reloc_table): Translate ELF section symbols into BFD section symbols. Don't read section contents to fill in addend field. * Merged from OSF: Tue Jun 15 14:38:32 1993 Michael Meissner (meissner@osf.org) * libelf.h (struct Elf_Sym_Extra): New structure to contain ELF specific information for a symbol. Put in elf_sym_num, which gives the external symbol number in the elf object file, since local symbols must come before global symbols. (elf_sym_extra): New macro. (elf_symtab_map): Delete, in favor of using Elf_Sym_Extra. * elfcode.h (elf_map_symbols): Use Elf_Sym_Extra to map internal symbol number to external number. Store the address of the Elf_Sym_Extra field for the symbol in the udata field. (elf_write_object_contents): Use Elf_Sym_Extra to map out symbols. Sun Jun 20 16:30:11 1993 Michael Meissner (meissner@osf.org) * elfcode.h (elf_obj_tdata): Add field to count the size of the array of pointers to section symbols. (elf_map_symbols): Bump the max index of the section symbols so that we don't overwrite memory. Store the max index into the elf_obj_tdata field. Sat Jun 19 10:12:27 1993 Michael Meissner (meissner@osf.org) * elfcode.h (elf_obj_tdata): Add pointer to an array of pointers to the section symbols we created. Remove unused field internal_syms. (elf_map_symbols): Fill in array of pointers to section symbols. Only create section symbols for sections that have SEC_ALLOC set, and have non-zero size. (elf_symbol_from_bfd_symbol): If udata is NULL, and this is a section symbol, look up the section in the list of section symbols, and set the udata pointer appropriately. Otherwise, if udata is still NULL, fail an assertion, and use 0, instead of dropping core.
1993-08-20* elf32-i386.c (elf_howto_table): All partial_inplace fields should be "true".Ken Raeburn1-0/+5
1993-08-20 * config.bfd (mips-*-elfl*, mips-*-elf*): New targets, usingIan Lance Taylor3-1/+13
mipslelf and mipsbelf respectively. * config/mipslelf.mt, config/mipsbelf.mt: New files. * elf32-mips.c: Added some reloc information. * configure.in: Fixed error message.
1993-08-20minor doc tweaksKen Raeburn1-4/+4
1993-08-20 * ecoff.c (ECOFF_LONG_SIZE): Removed. Just use constants.Ian Lance Taylor1-0/+4
1993-08-19 * Makefile.in (BFD_LIBS, ALL_MACHINES, BFD32_BACKENDS, BFD64_BACKENDS,David MacKenzie2-25/+89
OPTIONAL_BACKENDS): Alphabetize entries and add a few missing ones. * archures.c: Alphabetize decls.
1993-08-19add more missing vectorsDavid MacKenzie1-17/+14
1993-08-19targets.c (target_vector): Remove hp300bsd_vec due to clash with sunos_big_vec.David MacKenzie2-0/+3
1993-08-19Thu Aug 19 09:45:51 1993 David J. Mackenzie (djm@thepub.cygnus.com)David MacKenzie3-98/+176
* configure.in, targets.c: Add missing vectors to the tables. * targets.c (target_vector) [!SELECT_VECS]: Add DEFAULT_VECTOR.
1993-08-18 * hosts/i386{mach3,osf1mk}.h: New files, for Mach hosting.Jim Kingdon2-1/+3
* hosts/i386mach.h: removed, replaced by i386osf1mk.h. * config/i386mach3.mt, i386mach3.c: New files, for Mach a.out format. * Makefile.in, configure.host, config.bfd: Corresponding changes. * hosts/decstation.h: Include <sys/param.h> not <machine/param.h>.
1993-08-18 * hosts/i386{mach3,osf1mk}.h: New files, for Mach hosting.Jim Kingdon4-18/+47
* hosts/i386mach.h: removed, replaced by i386osf1mk.h. * config/i386mach3.mt, i386mach3.c: New files, for Mach a.out format. * Makefile.in, configure.host, config.bfd: Corresponding changes. * hosts/decstation.h: Include <sys/param.h> not <machine/param.h>.
1993-08-17replaced by i386mach3.hJim Kingdon1-32/+0
1993-08-17new for machJim Kingdon3-0/+0
1993-08-17 * coffgen.c (coff_section_symbol): If section's output_section isIan Lance Taylor1-0/+4
not yet set, point to itself. This is needed because this is called on the output file, not the input file.
1993-08-17 * coff-rs6000.c (dummy_reloc, RTYPE2HOWTO): Set howto field to aIan Lance Taylor1-0/+3
dummy value, rather than leaving it NULL.
1993-08-17 * archures.c (bfd_default_set_arch_mach): Set bfd_error onIan Lance Taylor3-61/+83
failure. * aoutx.h (NAME(aout,set_arch_mach)): Check return value of bfd_default_set_arch_mach.
1993-08-17Tue Aug 17 09:42:16 1993 David J. Mackenzie (djm@thepub.cygnus.com)David MacKenzie2-0/+115
* config.bfd (cpu): Extract from canonical name with sed. * configure.in: Don't pass it.
1993-08-16* configure.host: Make sure all OS fields end in *.Jim Kingdon1-0/+8
1993-08-13 * nlmcode.h (nlm_write_object_contents): procedure offsets areIan Lance Taylor1-0/+8
from start of code segment, not start of file. * config/i386-nlm.mt (DEFAULT_VECTOR): It's nlm32_i386_vec, not bfd_nlm32_i386_vec. * configure.in (SELECT_VECS switch): Likewise.
1993-08-13 * format.c (bfd_check_format): If the target matches the defaultDavid MacKenzie1-0/+3
target, set match_count to 1, to ignore any previous matches.
1993-08-12Tipo.Ian Lance Taylor1-1/+1
1993-08-12 * coff-aplha.alpha.c (alpha_howto_table, alpha_finish_reloc,Ian Lance Taylor2-521/+20
alpha_ecoff_swap_reloc_{in,out}, alpha_bfd_reloc_type_lookup): Read and write Alpha relocs. Can't process them yet. * ecoff.c (ecoff_slurp_reloc_table): Recognize new reloc sections. If the section does not already exist, create it.
1993-08-12keep config.bfdDavid MacKenzie1-0/+1
1993-08-12 * Makefile.in (BFD32_BACKENDS): Remove srec.o, add reloc16.o.David MacKenzie1-0/+2
1993-08-12 * libecoff.h (ecoff_backend_data): Added constructor_reloc andIan Lance Taylor1-0/+15
finish_reloc fields. * ecoff.c: Move MIPS reloc support from here... * coff-mips.c: to here. * ecoff.c (ecoff_set_symbol_info): Get constructor reloc howto from backend. (ecoff_slurp_reloc_table): Removed MIPS specific stuff. Call finish_reloc backend function. (ecoff_write_object_contents): Removed MIPS specific assertions. * coff-mips.c (mips_finish_reloc): New function. (mips_ecoff_backend_data): Fill in new fields. * coff-alpha.c (alpha_ecoff_backend_data): Use NULL for new fields. * targets.c: Added extern for ecoffalpha_little_vec.
1993-08-12 * configure.in: Add reloc16.o when we addDavid MacKenzie2-1/+6
coff-h8300.o, coff-h8500.o, coff-sh.o, coff-z8k.o. Makefile.in (BFD_LIBS): Remove reloc16.o.
1993-08-12Thu Aug 12 10:32:47 1993 David J. Mackenzie (djm@thepub.cygnus.com)David MacKenzie3-108/+42
* config/u68k-coff.mt: Fix typo, DEFAULT_TARGET for DEFAULT_VECTOR. * config/h8300-coff.mt, h8500-coff.mt, sh-coff.mt, st2000.mt, z8k-coff.mt (DEFAULT_VECTOR): Define. Don't explicitly add S-records via SELECT_VECS. * targets.c (target_vector), Makefile.in (BFD_LIBS): Always support S-records, for convenience. * config.bfd: New file, broken out of configure.in. * configure.in: Use it, and use standard target names for --with-targets, replacing --with-bfd-targets.
1993-08-12Finish the minimizing, the right way (using normal target names).David MacKenzie1-0/+16
Thu Aug 12 10:32:47 1993 David J. Mackenzie (djm@thepub.cygnus.com) * config/u68k-coff.mt: Fix typo, DEFAULT_TARGET for DEFAULT_VECTOR. * config/h8300-coff.mt, h8500-coff.mt, sh-coff.mt, st2000.mt, z8k-coff.mt (DEFAULT_VECTOR): Define. Don't explicitly add S-records via SELECT_VECS. * targets.c (target_vector), Makefile.in (BFD_LIBS): Always support S-records, for convenience. * config.bfd: New file, broken out of configure.in. * configure.in: Use it, and use standard target names for --with-targets, replacing --with-bfd-targets.
1993-08-12 * bfd.c (_bfd_host_big_endian): Removed.Ian Lance Taylor1-0/+7
* bfd-in.h (HOST_BYTE_ORDER_BIG_P, bfd_header_twiddle_required): Removed. * bfd-in2.h: Regenerated.
1993-08-12more cleanupsDavid MacKenzie2-3/+5
1993-08-11really do last changeDavid MacKenzie1-1/+1
1993-08-11 * configure.in: Include coff-m68k.o for m68kcoffun_vec.David MacKenzie2-1/+4
Include nlm32.o and nlm.o for bfd_nlm32_i386_vec.
1993-08-11Make bfd_error_vector extern.David MacKenzie1-0/+2