Commit Graph

184 Commits

Author SHA1 Message Date
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
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
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 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
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
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 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
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
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 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
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
Fred Fish 5868184b8d Pass on MINUS_G to recursive makes. Recognize ncr3000 config. 1992-04-11 05:38:40 +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
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
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 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
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
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
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
Steve Chamberlain e7b4046cbf Don't core dump if no output section available for a symbol 1992-02-27 19:22:41 +00:00
Steve Chamberlain 6db82ea7e5 * aoutx.h (translate_from_native_sym_flags): when creating an alias symbol, fill in the section as undefined, rather than leaving it blank 1992-02-27 17:26:08 +00:00
Steve Chamberlain 1d535e75df Wed Feb 26 19:40:59 1992 Steve Chamberlain (sac at thepub.cygnus.com)
* bfd.c: lint
	* coff-h8300.c: fix stupid reloc subtraction bug
	* coffcode.h (coff_swap_aux_out): only swap a tvndx by 2 bytes,
	since that's how wide it is. (coff_slurp_symbol_table): always zero out
	the symbol.flags and done_lineno fields.
1992-02-27 03:52:15 +00:00
Steve Chamberlain d05511ca57 * coffcode.h (coff_swap_aux_in): lint, (coff_print_symbol): prints
out tagndx too.
	* aoutx.h (swap_std_reloc_out, swap_ext_reloc_out): use the output
	section of a symbol rather than the section of a reffed symbol to
	determine the r_index of an emmitted reloc.
1992-02-21 19:06:34 +00:00
Per Bothner 73afbe2809 * PORTING: New (preliminary) porting guide. 1992-02-21 05:56:57 +00:00
John Gilmore 8b87cbae28 * bout.c (callj_callback), coff-a29k.c (a29k_reloc), coff-m88k.c
(howto_hvrt16):  lint.
1992-02-20 16:31:21 +00:00
Per Bothner 9832e16cc3 * hp300bsd.c (new), config/mt-hp300bsd: Make hp300bsd
a full configuration (with possible cross-development),
	instead of using host-aout.c.
1992-02-17 20:04:21 +00:00
Per Bothner adf441b919 * aout-target.h (MY(write_object_contents):
Set obj_reloc_entry_size (abfd).
	* gen-aout.c:  Change to emit a .c files, not a .h file.
1992-02-16 21:05:54 +00:00
Fred Fish 5b3fb53040 Remove obsolete use of BSF_ABSOLUTE and replace with bfd_abs_section ref. 1992-02-14 04:13:53 +00:00