Commit Graph

262 Commits

Author SHA1 Message Date
John Gilmore 6803d8186f Now update it in the *right* place... 1992-10-15 11:39:56 +00:00
John Gilmore 4a8db3300d Insert copyright notices in all BFD files that need them.
Update copyrights on recently changed files to 1992.
Regularize first-line comments somewhat.
1992-10-15 10:59:13 +00:00
John Gilmore b1b819bdc7 * bfd-in.h (file_ptr): Update comments, make FIXME re off_t. 1992-10-15 10:34:13 +00:00
John Gilmore 5f9ca96038 * aout-adobe.c, aoutf1.h, aoutx.h, bout.c coff-m68k.c, coff-z8k.c,
coffcode.h, elf.c, libaout.h, libbfd.h, srec.c:  Lint.
1992-10-15 09:44:59 +00:00
John Gilmore f8e0194018 * aout-adobe.c, aoutf1.h, archive.c, bout.c, coff-rs6000.c,
coffcode.h, elf.c, ieee.c, libaout.h, libbfd.c, oasys.c,
sco-core.c:  Lint:  Second argument of bfd_seek is always file_ptr.
Third argument is SEEK_SET or SEEK_CUR.  Result is always 0 or -1.
1992-10-15 09:00:09 +00:00
John Gilmore 5a5fa3688c * configure.host: New file, contains mapping of host configs
to host support file names for bfd, binutils, opcodes.
* configure.in:  Use it.
* i386aout.c:  Cleanup, dump TARGET_IS_LITTLE_ENDIAN_P.
* i386bsd.c:  Cleanup, reformat.
* config/i386-bsd.mt:  Comment changes.
* config/i386bsd.mh:  New file for core file support.
* hosts/i386bsd.h:  Merge changes from Peter Schauer.
* bout.c (ALIGN):  Rename to ALIGNER, since system header files
on BSD 4.4 define ALIGN (sigh!).
1992-10-09 11:38:30 +00:00
John Gilmore 366dfd0c6f * bout.c (ALIGN): Rename to ALIGNER, since system header files
on BSD 4.4 define ALIGN (sigh!).
1992-10-09 10:47:32 +00:00
John Gilmore 439a4936c3 * configure.in: Reformat the target section, test many configs. 1992-10-09 02:42:29 +00:00
Mark Eichin 7f90aa8b18 Linker now works for go32; other changes keep it from breaking the other
platforms (new backend_data "exec_header_not_counted") (from p3.)
1992-10-09 02:41:30 +00:00
Ken Raeburn 214f8f2392 * aout-target.h (callback): Don't define this function if it won't be used.
* aoutx.h (some_aout_object_p): Restore old aout_data value if this type
doesn't match.  Don't lose if file sections have already been created.
(set_arch_mach): Set reloc_entry_size.
(slurp_symbol_table): Use bfd_h_get_{16,8} for reaeding symbol data.

* hosts/i386bsd.h: New file.
* configure.in: Recognize i[34]86-*-bsd host.

* aout-target.h (callback, write_object_contents): Delete unused variables.

* aoutx.h (reloc_type_lookup): New function.
* aout-target.h (MY_reloc_howto_type_lookup): Use it as default.
* aoutf1.h (sunos4_reloc_type_lookup): Deleted.
(MY_reloc_howto_type_lookup): Don't define it.

* aoutx.h (adjust_sizes_and_vmas): Don't bother with padding for OMAGIC files.
(slurp_symbol_table): Use header byte order, not target byte order, for reading
symbol data.
1992-10-09 01:39:06 +00:00
John Gilmore d047d16af7 * configure.in: Undo some brain damage in the host section.
* Makefile.in (make):  Remove obsolete `make make'.
	* aoutx.h (some_aout_object_p):  Make defines line up.
1992-10-09 01:34:32 +00:00
Steve Chamberlain 294eaca479 Some of these are guesses, if you know different, just yell.
Thu Oct  8 08:52:48 1992  Steve Chamberlain  (sac@thepub.cygnus.com)

	 Now a bfd knows whether underscores are normally prepended
	 to symbols in its file format. Helps with error messages.

	* aout-adobe.c, aout-target.h, bout.c, coff-a29k.c, coff-h8300.c,
	coff-z8k.c: targets set so they have leading underscore
	* coff-i386.c, coff-i960.c, coff-m68k.c, coff-mips.c, coff-m88k.c,
	coff-rs6000.c, coff-we32k.c, elf.c, ieee.c, srec.c: targets set
	without leading underscore flag
	* targets.c: add symbol leading char to xvec description
	* bfd-in.h (bfd_get_symbol_leading_char): new macro.
1992-10-08 16:02:09 +00:00
Per Bothner 446c5af7c2 Tweak previous change (only assume malformed_archive if errno == 0). 1992-10-05 22:03:13 +00:00
Per Bothner 286fd2f9e5 * archive.c (_bfd_write_archive_contents): If read fails,
set bfd_error to malformed_archive (since this probably
	indicates a truncated archive), rather than system_call_error.
(Handles PRMS 1624.)
1992-10-05 21:36:56 +00:00
Mark Eichin fbee357154 added i386-*-bsd, from p3 1992-10-05 08:20:22 +00:00
David D. Zuhn 2652a49c49 avoid compiler warnings 1992-10-02 00:52:49 +00:00
Ken Raeburn 4e55c0f2d3 bout.c: Removed some unused variables 1992-09-29 20:30:25 +00:00
Ken Raeburn 8d909e996e coffcode.h (coff_section_symbol): Create section if it doesn't exist. 1992-09-29 20:26:01 +00:00
Ian Lance Taylor acc7c4933d Tue Sep 29 08:30:21 1992 Ian Lance Taylor (ian@cygnus.com)
* Portability fixes from p3:
	coffcode.h (coff_write_relocs): removed sanity check until it
	works on all targets (per advice from sac).
	config/hp9000.mh: new file to define USG.
	hppa.c: #undef hppa before the JUMP_TABLE.
	hosts/hppahpux.h: #define NATIVE_HPPAHPUX_COMPILER if not
	__STDC__.
	targets.c (bfd_target_list): if NATIVE_HPPAHPUX_COMPILER, make
	local variable target volatile to avoid mysterious bug in
	HP9000/700 cc.
1992-09-29 15:47:03 +00:00
John Gilmore b85bd0c182 * config/hppabsd.mh, config.hppahpux.mh: Remove various bogosity.
* hosts/hppahpux.h:  Remove bcopy and index circumventions.
1992-09-26 11:00:36 +00:00
John Gilmore df4d92f60f Lint; remove bcopy/bzero. 1992-09-26 05:39:13 +00:00
John Gilmore 218ce93030 Add Adobe a.out support.
* aout-adobe.c:  New file.  So far, only reads a.out.adobe.  FIXME.
* config/adobe.mt:  Add.
* configure.in (*-adobe-* target):  Add.
* targets.c (a_out_adobe_vec):  Add.
* Makefile.in:  add aout-adobe.c.

* configure.in:  Put two dashes in all entries to be matched.
Add comments to remind people to do this.
Reorder all entries that match manufacturer names, to occur
last, so they will only be matched if no more specific match
occurs.  Remove manufacturers `aout', `bout', `coff', and `elf'.
1992-09-26 02:20:05 +00:00
Brendan Kehoe 13ff13438b * elf.c (section_from_elf_index): Return bfd_abs_section, not 0,
since we should never have a NULL section.
	(elf_slurp_symbol_table): If st_shndx doesn't match any of our
	tests, set the section to bfd_abs_section.
1992-09-25 22:05:15 +00:00
Steve Chamberlain 8ad2a31dd8 Fri Sep 25 11:11:57 1992 Steve Chamberlain (sac@thepub.cygnus.com)
* coff-z8k.c: getting closer
	* coffcode.h (coff_get_relocated_section_contents): allow
	EXTRA_CASES hooks for different arches to provide different reloc
	types.
	* seclet.h: #ifndef around it to allow multiple inclusion
	* srec.c: minor doc fix
1992-09-25 18:14:29 +00:00
Fred Fish 88a29612cc * configure.in: Use i386-elf for all i386/i486 sysv4 hosts, not
just ncr.
1992-09-20 15:50:12 +00:00
Ken Raeburn 292dc23953 fix uninitialized pointer when reading relocs 1992-09-18 16:33:16 +00:00
Ian Lance Taylor dc999ad933 Fri Sep 11 15:37:06 1992 Ian Lance Taylor (ian@cygnus.com)
* coffcode.h (coff_renumber_symbols): set the last renumbered
	symbol pointer to NULL, as expected by coff_write_linenumbers.
	(coff_write_relocs): apparently a non-zero addend is OK for reloc
	type R_IHCONST used on the 29k.
1992-09-11 22:43:53 +00:00
John Gilmore c00bab93f0 * opncls.c (bfd_fdopenr): Determine whether to fdopen for
update, based on how the underlying file was opened.  Obsoletes
FASCIST_FDOPEN.
* hosts/rs6000.h, hosts/tahoe.h, hosts/vaxbsd.h:  Remove
all FASCIST_FDOPEN config defines.
1992-09-10 20:31:10 +00:00
Ken Raeburn 54a9da01d3 move out sparc-opc.c 1992-09-09 01:48:41 +00:00
Ian Lance Taylor 45441dd5a2 Found by IBM-France. gcc can warn about this sort of thing....
Tue Sep  8 10:10:34 1992  Ian Lance Taylor  (ian@cygnus.com)

	* aoutx.h: adjust_sizes_and_vmas did not return anything.
1992-09-08 17:13:53 +00:00
Jim Wilson c409bc28dc Remove extraneous, but harmless, backslash from last change. 1992-09-03 23:17:41 +00:00
Per Bothner cf25833989 Bump to version 2.0. 1992-09-03 21:18:04 +00:00
Stu Grossman 4e5ff049bc * bout.c, cpu-z8k.c: Use enums when initializing structs to keep
braindamaged HP/Apollo compiler happy.
1992-09-03 16:10:13 +00:00
Per Bothner ef2810d07e * Makefile.in: Added mostlyclean/clean/distclean rules. 1992-09-02 07:27:31 +00:00
Per Bothner 66945e8a30 Note previous change (removing oasys from target_vector). 1992-09-01 20:42:42 +00:00
Jim Wilson 71703b0735 Update to SPARC Version 9 Draft 1.0.4. 1992-08-31 17:14:50 +00:00
Steve Chamberlain 2768b3f763 * aoutx.h (aout<n>swap_ext_reloc_out), bout.c
(b_out_squirt_out_relocs): fix bug 1506 where abs symbols attached
	to the built-in abs_section were not written out correctly.
1992-08-31 15:10:34 +00:00
Ian Lance Taylor 0a62e9bd9f Fri Aug 28 16:29:15 1992 Ian Lance Taylor (ian@cygnus.com)
* archive.c (bfd_slurp_bsd_armap): if the symdef_count is too
	large, assume we're using a swapped byte order and fail with
	wrong_format rather than dumping core.
1992-08-29 00:17:55 +00:00
Ken Raeburn cf24f26c84 Missed one... 1992-08-28 22:44:19 +00:00
Ken Raeburn 71c1f4043f Renamed opc-sparc.c to sparc-opc.c for more significant characters in cpu
name under losing file systems ("sparc-op" rather than "opc-spar").
1992-08-28 22:42:58 +00:00
Ian Lance Taylor 8e3d11580a Thu Aug 27 17:01:04 1992 Ian Lance Taylor (ian@cygnus.com)
* targets.c, config/i960-bout.mt, hosts/*: added
	HOST_BIG_ENDIAN_DEFAULT_VECTOR and
	HOST_LITTLE_ENDIAN_DEFAULT_VECTOR because bout archive format
	depends on the endianness of the host.  Added #define
	HOST_BIG_ENDIAN_P and #undef HOST_BIG_ENDIAN_P to a number of
	configuration files in hosts/ (it was already in some).
1992-08-28 00:08:13 +00:00
Brendan Kehoe 9990f965a2 Add preliminary support for the we32k (AT&T 3b2 and family). 1992-08-27 22:08:01 +00:00
Steve Chamberlain 3be5606231 * bout.c: added support for relaxable alignment relocs.
* seclet.c (rel, seclet_dump_seclet, seclet_dump): get the app to
	pass down pointer to play area rather than use alloca
1992-08-27 00:35:09 +00:00
Steve Chamberlain f21798cad0 * cpu-z8k.c (compatible): made static to reduce name space
polution.
1992-08-26 21:21:20 +00:00
Steve Chamberlain b5d20c939d Move a patch which got put in the wrong place. 1992-08-25 15:40:52 +00:00
Steve Chamberlain 2677d4b576 * ieee.c (ieee_get_symtab): always null terminate the symbol list,
lint.
1992-08-24 21:53:04 +00:00
Steve Chamberlain 9465d03ed5 * coffcode.h (coff_add_missing_symbols): if symbols don't come
from a coff file (csym is null), dont deref them

	* ieee.c (parse_expression): get the answer right when adding an
	abs+(sec+off), (ieee_generic_stat_arch_elt): call ieee_object_p
	on elts so that filename is filled in.
1992-08-24 19:10:06 +00:00
Ken Raeburn 1412425734 enough align-reloc support for "objdump -r", not enough for linking 1992-08-20 23:13:33 +00:00
Ian Lance Taylor 967d40ca76 Moved in from p3:
Tue Aug 18 12:57:45 1992  Ian Lance Taylor  (ian@cygnus.com)

 	* Makefile.in: added FLAGS_TO_PASS, and used it for all recursive
	invocations of make.  Also, always create installation
	directories.

	* config/apollov68.mh: removed -g from CC definition.
1992-08-18 20:24:22 +00:00
Ken Raeburn 9425505486 * config/decstation.mh (HDEFINES): Specify "-G 4" to avoid
overflowing gp-offset range.
1992-08-17 20:42:16 +00:00