Commit Graph

581 Commits

Author SHA1 Message Date
Per Bothner f74d99418e * i386linux.c, hosts/i386linux.h, config/i386-linux.mt:
New files, for Linux (a free Unix clone for 386 machines).
	* Makefile.in, configure.in, targets.c:  Update accordingly.
1992-06-23 01:05:47 +00:00
Steve Chamberlain 800aef7c5c Lint stuff which didn't make it last time 1992-06-22 16:07:05 +00:00
Steve Chamberlain 3860075f3f Fri Jun 19 20:23:21 1992 Steve Chamberlain (sac@thepub.cygnus.com)
Lints for bfd_reloc_code_type->bfd_reloc_code_real_type, and
	correct calling of howto special functions and fixes from Raeburn
	for gas<>bfdness
	* archures.c: nuke bfd_reloc_code_type
	* bout.c, cpu-h8300.c, coff-i960.c, coff-m88k.c: special function lint
	* coffcode.h (styp_to_sec_flags): STYP_INFO is marked as
	SEC_NEVER_LOAD, various other bfdgas newness
	* reloc.c->libbfd.h: change protype of bfd_default_reloc_type_lookup
	* targets.c: change jump table vector to above
1992-06-22 15:42:38 +00:00
John Gilmore 796aae470c * elf.c (bfd_elf_find_section): Mark as INTERNAL_FUNCTION so
its prototype will be included in libbfd.h.  Change result type
to struct * (rather than equivalent typedef) so it can be used in
the prototype, where they typedef won't be known.
* libbfd.h:  Updated version.
1992-06-20 02:04:20 +00:00
Stu Grossman 76b731f9ae HPPA BS 1992-06-20 01:00:46 +00:00
Stu Grossman 3fd76e5866 HPPA merge. 1992-06-19 22:25:45 +00:00
Stu Grossman e3c01e92af * Makefile.in, archures.c, configure.in, cpu-hppa.c, hppa.c, libhppa.h,
targets.c:  HPPA merge.
1992-06-19 22:24:13 +00:00
John Gilmore cf9395e5f5 * configure.in: Separate Solaris2 from SYSV4 on SPARC.
* config/solaris2.mh:  Kludge around Sun compiler bug.
1992-06-19 19:22:36 +00:00
Stu Grossman 547c0cb55c * libaout.h (aout_backend_data): Change defs of two bitfields to
be unsigned chars instead to get around rs6000 compiler problem.
1992-06-17 21:05:49 +00:00
Fred Fish 91f781ffbb * elf.c (bfd_section_from_shdr, elf_slurp_symbol_table):
Correct misconception that there can be only one symbol table.
	Only call elf_slurp_symbol_table on the full symbol table, not
	the dynamic one which is only a subset of the full one.

	(The bfd library was slurping in the first ELF symbol table it
	found and then ignoring any others.  For dynamically linked
	executables, this happened to be the dynamic symbol table, which
	is a subset of the full symbol table and only contains the
	symbols that need to be used in dynamic linking.)
1992-06-17 20:58:46 +00:00
Ken Raeburn 5e16788678 Don't align sections in I960 coff files.
(I know there's a GDB freeze on, but this only affects writing i960
coff files, and Steve needs it ASAP.)
1992-06-17 20:06:33 +00:00
Stu Grossman 2403c16456 Save scripts. 1992-06-16 21:49:08 +00:00
Ken Raeburn 458c48278a * hosts/sparc.h (abort, exit): Hide these names if compiling with
gcc version 2, to avoid warnings.
1992-06-16 12:05:52 +00:00
Ken Raeburn ce07dd7c0c [time to file a PR on cvs...]
Various changes to get linker working again for a.out:
 * don't set/adjust section file positions or vmas more than once
 * use correct page size and segment size when calculating them
 * deal with some variations in a.out implementations
Tested on sun4 and sun4->sun3 so far, will be testing further but
needed to get wider exposure&testing.  See ChangeLog for details.

Also:
* coffcode.h (coff_write_relocs): Write out swapped reloc, not
pre-swapped version.
* hosts/sparc.h (abort, exit): Hide these names if compiling with
gcc version 2, to avoid warnings.
1992-06-16 12:04:03 +00:00
Ken Raeburn 41729eb4b0 Various changes to get linker working again for a.out:
* don't set/adjust section file positions or vmas more than once
 * use correct page size and segment size when calculating them
 * deal with some variations in a.out implementations
Tested on sun4 and sun4->sun3 so far, will be testing further but
needed to get wider exposure&testing.  See ChangeLog for details.

Also:
* coffcode.h (coff_write_relocs): Write out swapped reloc, not
pre-swapped version.
* hosts/sparc.h (abort, exit): Hide these names if compiling with
gcc version 2, to avoid warnings.
1992-06-16 11:34:07 +00:00
Fred Fish 28d2c686f4 * config/ncr3000.mh (INSTALL, RANLIB): Don't use /usr/ucb/install,
it's broken on ncr 3000's.  Use simple "true" for RANLIB.
1992-06-15 19:27:49 +00:00
John Gilmore 1e730c4b08 * section.c (STD_SECTION): Remove extra semicolon in declarations.
* configure.in:  Rewrite target parsing to use simple format.
Handle sparc-sun-solaris2 configuration.
* aout64.h:  Avoid ANSI C brain death warning.
* elf.c:  Avoid trigraph (???) or /* in comments.
1992-06-13 05:58:49 +00:00
David D. Zuhn a52057f811 change to new solaris naming system, add sysv4 host config 1992-06-13 00:43:08 +00:00
John Gilmore 80bdcb77bd * elf.c (elf_obj_tdata): Merge elf_obj_tdata_struct and
elf_core_tdata_struct into a single common struct.  Core files
wouldn't have worked at all without this.
(bfd_elf_find_section):  New function for GDB's undercover use
to find string sections that BFD hides from it.
(elf_get_str_section):  Avoid multiple alloc&reads for same data; lint.
(elf_object_p, elf_core_file_p):  Allocate internal file header
storage dynamically.
* bfd.c (union {...} tdata):  Remove elf_core_tdata_struct.
* demo64.c:  Prevent "empty translation unit" warnings from idiots.
1992-06-11 08:10:04 +00:00
Fred Fish df03b780f4 * config/{i386v4.mh, ncr3000.mh}: Update RANLIB, add INSTALL. 1992-06-10 02:17:08 +00:00
John Gilmore ab37d4f663 * configure.in: Handle Solaris2 as *-sun-sysv4 or as *-sun-sunos5. 1992-06-07 00:03:50 +00:00
Per Bothner 2a4e0ef292 Add apollo68.h. 1992-05-26 23:59:37 +00:00
Steve Chamberlain ab98fd5dbc * coff-a29k.c: do byte relocs correctly
* coffcode.h (styp_to_sec_flags): never load INFO sections
	* seclet.c (rel): don't relocate INFO sections
1992-05-26 23:53:00 +00:00
Steve Chamberlain 780c477aff 29k const fix 1992-05-26 22:20:09 +00:00
Steve Chamberlain 954d412a06 Fix some typos 1992-05-26 19:08:48 +00:00
Steve Chamberlain 8b046402f5 This is a test to see if the file is still locked. 1992-05-26 14:51:23 +00:00
Ken Raeburn 8070f29df5 Lots of changes from gas-bfd work. Includes:
* working reloc lookup support
 * better support for creation of COFF files from scratch
 * misc doc changes, macro tweaks, "const" additions, typo fixes, etc.
 * one or two ugly kludges that should get cleaned up (but what's one
   or two more, in BFD?)
See ChangeLog for details.
1992-05-26 03:45:31 +00:00
Ken Raeburn 20edaa8e77 Lots of changes from gas-bfd work. Includes:
* working reloc lookup support
 * better support for creation of COFF files from scratch
 * misc doc changes, macro tweaks, "const" additions, typo fixes, etc.
 * one or two ugly kludges that should get cleaned up (but what's one
   or two more, in BFD?)
See ChangeLog for details.
1992-05-26 03:23:53 +00:00
David Henkel-Wallace 10dea9ed17 A couple of things from the net. 1992-05-20 06:47:14 +00:00
Steve Chamberlain de1478e115 Fix various protos so bfd/binutils compile on sun3 with gcc 1992-05-18 22:46:15 +00:00
K. Richard Pixley bec9b33551 fix declaration of free 1992-05-17 00:58:37 +00:00
Steve Chamberlain bbbd93b8e9 Tue May 12 14:08:59 1992 Steve Chamberlain (sac@thepub.cygnus.com)
* coff-a29k.c (perform_reloc): fix bug in jmp/call evaluation
	* coff-h8300.c (reloc_processing): all relocs are relative to
	section start.
	* opncls.c: don't use fdopen on DOS systems

	short patches from Glenn Kasten (glenn@ready.com)
	* target.c: enabled oasys support
	* oasys.c:  Insert . when UNDERSCORE_HACK is enabled,
	fix problem where a relocation which crossed a modification byte
	boundary did not work. Fix problem where a relocation near the end
	of a data record did not work.
1992-05-12 21:42:36 +00:00
Steve Chamberlain f6eaba8395 Add definition of free 1992-05-12 14:55:32 +00:00
Steve Chamberlain cb467682ed Compile with acc 1992-05-08 21:07:40 +00:00
K. Richard Pixley 5a9b659196 fix cc compile failure 1992-05-06 18:11:49 +00:00
Steve Chamberlain 7969cb57d0 Renamed dup other_dup to stop conflict on iris 1992-05-05 21:34:14 +00:00
Per Bothner 641b6d2b30 * bfd-in.h: Increase version number to 1.97, for consistency with ../binutils.
* Makefile.in:  docdir is ./doc, not ${srcdir}/doc.
1992-05-05 21:21:59 +00:00
Per Bothner 892205bc4b Get rid of bogus comment in compiler command rule. 1992-05-05 20:54:18 +00:00
Steve Chamberlain ae6e60b501 Lint 1992-05-05 02:28:56 +00:00
Steve Chamberlain 2cfd05621b * bfd-in.h: bump version to 1.96
Major change; changed calling convention for
	 bfd_get_relocated_section_contents so that caller allocates
	 memory for section data.
	* coffcode.h (bfd_coff_get_relocated_section_contents), reloc.c,
	seclet.c, targets.c, bfd.c: reflect new convention.
	* coffcode.h (styp_to_sec_flags): if styp_flags is not a special
	case, then use reasonable default values for SEC_* flags.
1992-05-04 23:42:03 +00:00
Steve Chamberlain b9b40ee01d * coffcode.h (coff_write_object_contents): use RELSZ to work out
size of output reloc struct.
1992-05-02 01:52:39 +00:00
Steve Chamberlain 54862c89ac * coffcode.h (coff_write_object_contents): use RELSZ to work out
size of output reloc struct.
1992-05-02 01:46:50 +00:00
Steve Chamberlain 9068cbe7b4 new_bfd_contained_in : Inherit target->defaulted from parent 1992-05-02 01:43:21 +00:00
Steve Chamberlain 69e0d34d4d * targets.c, Makefile.in: comment out tekhex for the moment.
* ieee.c: if some places where null pointers were used instead of &bfd_abs_section.
	* configure.in: tandem target is st2000
	* coff-m68k.c: rename static howto_table to global
	m68kcoff_howto_table.
	* bout.c: remove unnecessary abort
1992-05-02 01:41:33 +00:00
Steve Chamberlain 859f11ffd8 * coff-a29k.c: various changes to the way relocations work to cope
with the "new order" and latent bugs.
	* coffcode.h: lint
1992-05-01 20:00:26 +00:00
Michael Tiemann b96a430e09 Fix a typo (missing ||) in b_out_squirt_out_relocs. 1992-04-29 20:45:03 +00:00
Steve Chamberlain 5022aea5df * aoutx.h (aout_swap_ext_reloc_out, aout_swap_std_reloc_out)
bout.c (b_out_squirt_out_relocs): treat abs sumbols the right way.
	* reloc.c (bfd_perform-relocation): don't relocate refs to
	absolute symbols if doing a partial link.
1992-04-29 19:40:35 +00:00
K. Richard Pixley f94dcdb2bd Do the CFLAGS thing. 1992-04-28 17:22:07 +00:00
Stu Grossman 7b42a5d9ff * configure.in: Add a29k-amd-udi. 1992-04-24 14:37:32 +00:00
Fred Fish 55c0061edd aoutx.h (aout_<bits>_swap_exec_header_in): Zero out the internal_exec
structure before initializing the fields that are used, so that the unused
fields are in a known state.  Two of these structures are memcmp'd so
any fields not explicitly initialized must be set to a known state.
1992-04-24 01:42:41 +00:00