Commit graph

635 commits

Author SHA1 Message Date
John Gilmore
c40dbf26ab * hosts/solaris2.h: Configure same as sysv4. 1992-06-25 11:40:36 +00:00
Fred Fish
ec6b2951da * libbfd.h, libbfd-in.h (bfd_seek): Make prototype match definition.
* reloc.c (bfd_default_reloc_type_lookup):  Make cast on return
	type match actual return type.
	* elf_print_symbol (section_name):  Make CONST.
1992-06-24 04:56:01 +00:00
Per Bothner
11be3463ff Add i386linux.h. 1992-06-23 06:20:09 +00:00
Stu Grossman
afff60cd43 Per, guess what you forgot to do...
Hint:  Add i386linux.c to bfd/.Sanitize...
1992-06-23 05:27:14 +00:00
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
Fred Fish
64cebbc53a Finish eradication of MINUS_G per current configuration strategy. 1992-04-22 21:49:56 +00:00
Fred Fish
011612f7f2 Finish MINUS_G eradication per new configure strategy. 1992-04-22 21:48:51 +00:00
Fred Fish
be2d8c134a Convert typedef that typedefs nothing into a normal structure declaration.
Prototype args to function that second arg of pass_over points to.
1992-04-22 16:40:35 +00:00
K. Richard Pixley
6e491a87f9 rework CFLAGS, etc. 1992-04-21 05:27:57 +00:00
Fred Fish
a14b294143 Add tekhex.c 1992-04-18 04:38:26 +00:00
Steve Chamberlain
e59320117e Fri Apr 17 09:15:31 1992 Steve Chamberlain (sac@thepub.cygnus.com)
* bfd.c, Makefile.in: added tekhex
	* aoutx.h (set_section_contents): pages should be padded to the
	size of a page, not the size of a segment.
	* configure.in: added go32 host and i386-aout target.
	* i386aout.c, libaout.h: now works for go32 target
	* ieee.c: fix bit rot.
	* seclet.c: support for padding seclet type.
1992-04-17 16:22:44 +00:00
Steve Chamberlain
267998d84f New definition of padding seclet 1992-04-17 16:14:34 +00:00
K. Richard Pixley
30662ca6a8 Add .NOEXPORT: so that doc directory doesn't inherit a bad definition
for target_makefile_frag.
1992-04-16 01:23:41 +00:00
Fred Fish
e4b9dd935b Ifdef-out debugging code, and ifdef-out code that aborts on unhandled
sections (this was causing needless gdb aborts; gdb doesn't care about
these sections anyway).
1992-04-15 05:32:58 +00:00
Fred Fish
808dfd5aab Fix couple of function args that expect to be passed CONST pointers, and
boolean functions that were returning NULL, which can be "void *" rather
than just bare 0.
1992-04-14 21:41:30 +00:00
Sean Eric Fagan
570556da54 Changed to support Apollo Series 400 under bsd4.3 emulation environment. 1992-04-14 21:28:04 +00:00
Sean Eric Fagan
59ad286d22 New header file for Apollo Series 400 running under BSD4.3 emulation. 1992-04-14 20:25:29 +00:00
Mark Eichin
37ac3b76ec Massive changes. Elf sections are now processed into BFD sections only
if they make sense as independent sections; symbols and relocs are
turned into BFD symbols and relocs; objects are now created.
	objdump and copy mostly work on .o files.
	this check-in will be followed by gdb testing.
	the code has *not* yet been split up the way coff is to
support multiple architectures and bit widths.
	no ChangeLog entries yet; too big... nearly everything changed.
1992-04-13 15:01:54 +00:00
Fred Fish
5868184b8d Pass on MINUS_G to recursive makes. Recognize ncr3000 config. 1992-04-11 05:38:40 +00:00
Fred Fish
ccc76ce9bf New config files for NCR 3000. 1992-04-11 05:31:31 +00:00
John Gilmore
5a3859296d apollo68v.h => apollov68.h (must be for DOS 8.3 names or something) 1992-04-09 07:26:14 +00:00
John Gilmore
aee06af3b4 Remove $Log stuff. 1992-04-09 07:06:54 +00:00
John Gilmore
79a6ce4fa6 * Makefile.in: Now that we have sym.h and symconst.h, compile
coff-msym.c on all systems.
* coff-msym.c:  Update include files and comments; add weakext bit.
1992-04-03 01:47:27 +00:00
John Gilmore
adf5061ceb * archive.c, bfd.c, bout.c, coffcode.h, init.c, reloc.c,
section.c, srec.c, syms.c, coff-h8300.c:  Lint.
1992-04-02 07:26:31 +00:00
Stu Grossman
95e19a8afe Add sysv4.h 1992-03-31 04:49:27 +00:00
Stu Grossman
a11565c970 Add irix4.h 1992-03-31 04:46:53 +00:00
Stu Grossman
9ef1e2da7c Keep PORTING 1992-03-31 04:44:32 +00:00
John Gilmore
be78a1301f * config/sparc-elf.mt, hosts/sysv4.h: New config files. 1992-03-29 18:46:10 +00:00
John Gilmore
c86190dd2a * bout.c, coff-a29k.c, coff-i960.c: Lint.
* configure.in:  Add new host and target configs.
* elf.c (bfd_prstatus, bfd_fpregset):  Avoid typename of register
structs, which vary; just use member name.
(elf_object_p, elf_core_file_p):  Lint, fix comments.
* config/sparc-elf.mt, hosts/sysv4.h:  New config files.
1992-03-29 18:45:43 +00:00
Fred Fish
d4acec2c22 Fix to use a single disposable copy of section header table and program
header table entries.
1992-03-28 21:10:05 +00:00
John Gilmore
17904eeb4d Set MINIMIZE to 0 for a real release. 1992-03-27 01:00:58 +00:00
K. Richard Pixley
fbad27e8b3 add support for irix4 1992-03-24 23:58:58 +00:00
Stu Grossman
2b7eef3c57 * coff-msym.c (ecoff_swap_rfd_in): remove & for array ref. 1992-03-24 06:39:01 +00:00
Per Bothner
afbdd10672 * bout.c (b_out_slurp_reloc_table): Use BFD_ASSERT macro,
not internal bfd_assert function (twice).
1992-03-17 22:14:18 +00:00
Steve Chamberlain
b772312e68 * aout-target.h: change ar_max_namelen to 15 (the right value)
* coff-a29k, coffcode.h: more hangovers from the bfd_abs_section
	change
1992-03-17 18:47:16 +00:00
Steve Chamberlain
0d65ac52cd More bitrot 1992-03-17 00:41:11 +00:00
Steve Chamberlain
fc2f4c758a Remove i960 b.out bitrot. 1992-03-16 22:59:58 +00:00
Fred Fish
009898fddb Convert calls to bare malloc() to bfd_xmalloc(). 1992-03-15 01:33:32 +00:00
K. Richard Pixley
935325ad0f pass MAKEINFO on recursion 1992-03-14 02:54:17 +00:00
Steve Chamberlain
302c8ab121 Fixed the whitespace 1992-03-13 15:57:41 +00:00
Steve Chamberlain
3e312eb07f * config/mt-<foo> now <foo>.mt, config/mh-<foo> now <foo>.mh.
host/h-<foo> now just <foo>.
	* configure.in: reflect changes
1992-03-13 15:43:32 +00:00
Per Bothner
2a274d5d19 * libbfd-in.h (set_tdata): Make change of Feb 27 in the
actual source file, not just the generated libbfd.h.
1992-03-12 19:17:28 +00:00
John Gilmore
77c3feeed1 mips-big-* target 1992-03-12 06:08:56 +00:00
K. Richard Pixley
335413d8ea include ansidecl.h 1992-03-08 07:11:56 +00:00
Steve Chamberlain
d446483b5e * coff-i960.c (icoff_little_vec): add COFF_SWAP_TABLE so we can run gdb on little
endian 960 code.
	* archive.c (compute_and_write_armap): indirect symbols should go
	into the archive header too.
1992-03-07 18:36:38 +00:00
Steve Chamberlain
94f02cf2c2 * chew.c: now has -w switch turn on warnings 1992-03-07 02:54:09 +00:00
Steve Chamberlain
56a56f4c15 Now use EXFUN rather than PROTO, so that things using ansidecl.h and
not bfd.h can use them
1992-03-06 12:14:14 +00:00
John Gilmore
583f79e974 Add rule for coff-msym. 1992-03-06 08:42:41 +00:00
John Gilmore
6dc776918c Add swapping of RFD's. 1992-03-06 08:06:56 +00:00
John Gilmore
5c12fcf521 * coff-msym.c: Move this file from gdb/ecoff.c. It
handles byte-swapping for ECOFF (MIPS symbol) files.
1992-03-06 07:53:38 +00:00
John Gilmore
246ccf5f8f Initial revision 1992-03-06 07:53:37 +00:00