Commit Graph

814 Commits

Author SHA1 Message Date
Per Bothner 76b527fa83 * Makefile.in: Add *clean rules. 1993-03-16 20:16:31 +00:00
Ken Raeburn b47ca13f2a elf32.c, elf32-sparc.c changes 1993-03-16 18:37:51 +00:00
David D. Zuhn 663a55364b consistent use of -solaris2* 1993-03-13 02:59:38 +00:00
Jim Kingdon 2e0e34505d * rs6000-core.c: Add .ldinfo section. 1993-03-12 23:05:12 +00:00
Ian Lance Taylor 204ae00cc1 * Makefile.in (MAKEOVERRIDES): Define to be empty. 1993-03-12 19:58:54 +00:00
Steve Chamberlain ad7009aa91 * section.c (bfd_set_section_contents): whitespacs
* seclet.c (seclet_dump_seclet): Don't try and fill sections with
	no contents.
1993-03-12 16:33:59 +00:00
David D. Zuhn b3df94565a don't define POSIX_UTIME for go32, makes ar & ranlib happy again 1993-03-12 03:32:47 +00:00
Fred Fish 286a4427e5 * elf32.c (elf_object_p): Use ELF_ARCH stored in xvec to match
against machine architecture stored in the ELF header, to resolve
	ambiguities.
	* elf32.c (bfd_section_from_shdr):  Bfd_make_section can return
	NULL, so only use results when non-NULL.
	* targets.c (elf32_m68k_vec, elf32_i860_vec):  Add extern decls
	and add to vector of targets.
1993-03-09 18:59:58 +00:00
Ian Lance Taylor 16788ca9fd Removed obsolete Makefile.dos. 1993-03-09 18:16:38 +00:00
Ken Raeburn 0093d9e67f hppa.c: don't require DL_MAGIC, SHL_MAGIC, if they're not defined (hpux 7.0) 1993-03-08 21:30:29 +00:00
Ken Raeburn 59415c56b3 hppa and aix386-core changes 1993-03-08 20:58:34 +00:00
Ken Raeburn 155171dee5 from Noah Friedman: define some needed macros if hpux version < 8 1993-03-08 20:42:00 +00:00
Ian Lance Taylor f68d8549cc * coff-mips.c (ecoff_bfd_reloc_type_lookup): New function.
(ecoff_write_object_contents): Added BFD_ASSERT calls to ensure
	relocs are reasonable.
	* coff-msym.c: Eliminated uses of DEFUN.
	(ecoff_swap_tir_out): New function.
1993-03-04 22:48:46 +00:00
Fred Fish b84d84d7a6 (Ultrix 2.2 support from Michael Rendell <michael@mercury.cs.mun.ca>)
* configure.host (vax-*-ultrix2*):  Add triplet.
	* hosts/vaxult2.h:  New file.
	* config/vaxult2.mh:  New file.
1993-03-03 05:56:52 +00:00
Fred Fish 312bef9d21 * aoutx.h (string.h): Include for strchr and friends.
* archive.c (string.h):  Include for memchr and friends.
	* elf32.c (string.h):  Include for strrchr and friends.
1993-03-03 01:54:42 +00:00
Ken Raeburn 4743848f07 keep new elf files 1993-03-02 17:36:08 +00:00
Ken Raeburn 14c5897713 Document damage^H^H^H^H^H^Hwork done so far tonight.
Mostly playing with elves.
1993-02-27 07:34:47 +00:00
Ken Raeburn 81187b5475 revised elf support 1993-02-27 07:05:09 +00:00
Steve Chamberlain 2ebd09764b symbol srec stuff 1993-02-27 01:43:10 +00:00
Ken Raeburn 539a840f7b * elf.c (elf_write_object_contents): Section ".shstrtab" should be
type SHT_STRTAB.  Don't alter file offset for section 0.
	(reloc_type_names): Now an array instead of a macro.  Still inside
	"#if 0", since it's used only in debugging code also in "#if 0".
	(struct elf_reloc_map_elt, struct elf_reloc_map): New types.
	(sort_reloc_map): New function.
	(sparc_reloc_map): New variable.
	(elf_bfd_reloc_type_lookup): New function.

Now bfd-gas can create valid empty object files for sun4sol2.
1993-02-25 14:28:02 +00:00
Ian Lance Taylor c0f6093b0c * Minor cleanups provoked by gcc warnings:
* aoutx.h (NAME(aout, reloc_type_lookup)),
	cpu-h8300.c (local_bfd_reloc_type_lookup),
	cpu-z8k.c (local_bfd_reloc_type_lookup): Added default case to
	switches.
	* archive.c (do_slurp_bsd_armap, do_slurp_coff_armap),
	ieee.c (ieee_slurp_section_data),
	elf.c (elf_make_sections, elf_fake_sections,
	elf_compute_section_file_positions, elf_write_object_contents):
	Removed unused variables.
	* archures.c: Removed /* from within comment.
	* bout.c (b_out_squirt_out_relocs): Initialize r_extern.
	* oasys.c (oasys_write_data): Initialize i.
1993-02-23 21:08:32 +00:00
Ian Lance Taylor 8feff71726 * bfd-in.h (JUMP_TABLE): Added bfd_reloc_type_lookup and
bfd_make_debug_symbol; they were already in the target structure.
	* Adjusted all uses of JUMP_TABLE.
	* coffgen.c, libcoff-in.h (coff_bfd_make_debug_symbol): Renamed
	from coff_make_debug_symbol.
	* libcoff.h: Updated accordingly.
1993-02-23 20:24:06 +00:00
Per Bothner 85fe7cfff3 * libcoff.h (obj_raw_syment_coun): New macro.
* coffgen.c (coff_get_normalized_symtab):  Initialize
	raw_syment_count.
	* coffgen.c (coff_find_nearest_line):  Numerous little fixes.
1993-02-23 06:50:49 +00:00
Ian Lance Taylor 20f10b59ff * coff-mips.c (ecoff_set_symbol_info): stBlock symbols are always
debugging symbols.
	(ecoff_get_debug): Offset the fdr adr by the adr of the first pdr,
	for compatibility with tools from MIPS.

	* config/bigmips.mt: New file; default vector is ecoff_big_vec.
	* config/irix3.mt, config/irix4.mt: Removed.
	* configure.in (mips-*-ecoff): New target; uses bigmips.mt.
	(mips-sgi-*, mips-big-*): Use bigmips rather than irix3.
1993-02-22 23:17:45 +00:00
K. Richard Pixley 2338f9c4dd * trad-core.c (trad_unix_make_empty_symbol): wrap PARAMS around an
ansi definition which otherwise confuses non-ansi compilers.
1993-02-17 21:02:01 +00:00
K. Richard Pixley ec69652fc5 aout-adobe.c (aout_adobe_object_p): eliminate a warning from vax
ultrix cc by forward declaring getenv as is done in bfd_find_target.
1993-02-17 20:30:19 +00:00
K. Richard Pixley b40a3bf26f cast an enum into unsigned char avoiding a fatal error in vax ultrix 4.2 cc. 1993-02-17 01:58:47 +00:00
Ian Lance Taylor 0dc1bc8b3f Added 1993 copyrights to files that I have changed in 1993. Some were
missing 1992 copyrights, although they changed in 1992.
1993-02-16 16:54:20 +00:00
John Gilmore ec30dfba17 Roll to version 2.1. 1993-02-16 08:49:29 +00:00
John Gilmore 3039e8eeaf * oasys.c (oasys_write_object_contents): Lint.
* srec.c:  Whitespace cleanup.
1993-02-16 04:44:28 +00:00
David D. Zuhn 372c8dcf81 no more v9 code in aoutx.h 1993-02-13 08:56:24 +00:00
Ian Lance Taylor e61cfdf820 Fri Feb 12 14:23:07 1993 Ian Lance Taylor (ian@cygnus.com)
* coffgen.c (coff_print_symbol): Print correct tagndx value;
	cleaned up output formatting a bit.
1993-02-12 22:24:47 +00:00
Steve Chamberlain 142ce43edd * coffcode.h (coff_set_arch_mach_hook): *FIXME* the H8/300 is always
relaxable.  Should be moved somewhere else.
1993-02-12 16:32:32 +00:00
Ken Raeburn 98e1c9e572 Eliminated uses of DEFUN. Added seclet_link element to vectors. 1993-02-11 19:26:40 +00:00
Steve Chamberlain ff975a2c4c H8/500 support 1993-02-04 20:59:55 +00:00
Ian Lance Taylor a3b3dbdda5 Thu Feb 4 12:35:02 1993 Ian Lance Taylor (ian@cygnus.com)
* libecoff.h: New file.  Defines ECOFF backend data for gdb.
	* coff-mips.c: Now includes libecoff.h.
	(ecoff_data_type): Moved to libecoff.h.
	(ecoff_slurp_symbolic_info): Made globally visible so that gdb can
	call it.  If there is ever another ECOFF target, this and the
	swapping functions should be accessed via an ECOFF specific target
	vector.
	Makefile.in (coff-mips.o): Depends on libecoff.h.
1993-02-04 20:47:10 +00:00
Ian Lance Taylor 1a8c6d5b92 Wed Feb 3 09:14:36 1993 Ian Lance Taylor (ian@cygnus.com)
* coffcode.h: Removed MIPS specific information, since coff-mips.c
	no longer includes this file.
1993-02-03 20:08:22 +00:00
Ian Lance Taylor 63fd1097f5 Wed Feb 3 09:14:36 1993 Ian Lance Taylor (ian@cygnus.com)
* coff-msym.c (ecoff_swap_fdr_in, ecoff_swap_ext_in): Set reserved
	bits to 0 to make comparison test useful.

	* config/irix3.mh, config/irix4.mh (HDEFINES): Set to -G 4 to
	avoid overflowing GP accessible sections in binutils/objdump.
1993-02-03 17:17:34 +00:00
Ian Lance Taylor 6d18a99d25 Fix some minor bugs, make work on big endian machines, remember
text_start and text_end for future use by gdb and current use by
find_nearest_line.  Still covered by last ChangeLog entry, I think.
1993-02-03 17:14:11 +00:00
John Gilmore 4bdbc8d68d Keep mipsbsd.h. 1993-02-03 07:42:00 +00:00
John Gilmore 3480cc3eb4 Remove "done in pwd" msg. 1993-02-03 07:41:32 +00:00
John Gilmore c4fa327144 Eliminate extraneous messages and RCS log. 1993-02-03 07:41:07 +00:00
John Gilmore 2f15ee07dd Remove "done in" message. 1993-02-03 07:39:55 +00:00
John Gilmore 9dec3920f0 Add aout-mipsbsd.c 1993-02-03 05:24:02 +00:00
Per Bothner 96f03b0f0d * aoutx.h (NAME(aout,slurp_symbol_table)): Made symbol
reading more robust:  Fail if string index is out of string
	table range.
1993-02-02 23:38:38 +00:00
Ian Lance Taylor f6409552c7 General cleanup--added prototypes, removed a few unused variables,
fixed up comments a bit.  Also set version stamp in a.out header to
0x20a rather than 0, to keep the Ultrix linker happy.
1993-02-02 22:17:27 +00:00
Ian Lance Taylor 5e462ed938 Create a .scommon section for each input BFD so the linker has
something to attach small common symbols to.  Then avoid writing out
the (empty) .scommon section for the output BFD.

Tue Feb  2 11:41:06 1993  Ian Lance Taylor  (ian@cygnus.com)

	* coff-mips.c: Completed support for linker and binutils.
1993-02-02 19:43:44 +00:00
Ken Raeburn 5cd3dcffba from ralphc: mips-aout support 1993-02-01 21:42:59 +00:00
Ken Raeburn 71c0bae098 from ralphc: recognize some mips variants 1993-02-01 21:40:53 +00:00
Ken Raeburn 7a35367ceb accept mips-dec-bsd* and i?86-*-elf 1993-02-01 21:36:59 +00:00