Commit Graph

247 Commits

Author SHA1 Message Date
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
Steve Chamberlain b15aa5129e * srec.c (srec_set_section_contents): don't write out sections
without the LOAD and ALLOC attributes
1992-08-17 19:29:07 +00:00
Ken Raeburn 2b795743bf * archures.c, cpu-m68k.c, cpu-sparc.c: Undo 16 June changes.
* libaout.h (struct aout_backend_data): New callback "set_sizes".
* aout-target.h (callback): Don't set page/seg sizes.
(mkobject): Ditto.
(set_sizes): New routine.
(backend_data): Point to it.
* aoutf1.h (sunos4_set_sizes): Heed architecture when setting sizes.
(sunos4_aout_backend): Point to it.
* aoutx.h (set_arch_mach): Call set_sizes callback.
1992-08-17 16:04:19 +00:00
Per Bothner 582bc90a63 * aout-target.h: Make _bfd_slurp_extended_name_table be
the default.  Given that we *write* the suckers (for long
	archive member names), we really ought to be able to read them!
	* trad-core.c:  Don't include <machine/reg.h>.  It doesn't
	seem to be needed, and many machines don't have it.
1992-08-15 02:27:58 +00:00
Steve Chamberlain 73f30e4908 * coff-m68k.c (vector): read and write archives in coff format. 1992-08-13 16:54:50 +00:00
Ken Raeburn 6bb4c92322 moved sparc opcode table to bfd 1992-08-11 16:57:29 +00:00
Fred Fish 671450818a * bout.c (bfd_reloc_status_type, callj_callback): Cast void*
pointers to bfd_byte* before performing arithmetic on them.  Such
	use with bare void* pointers is a gcc extension.
	* cache.c (bfd_cache_delete):  Forward decl with prototype form.
	* archive (normalize):  Add to CONST to match actual usages with
	CONST.
1992-08-09 06:16:44 +00:00
Fred Fish eafc6d85c6 * configure.in: Recognize i486 host cpu, and use i386-elf
for i486-ncr-sysv4.
1992-08-03 07:36:45 +00:00
Fred Fish 6030489a3a Back out of ill-considered addition of support for SHT_BEPROGBITS. 1992-08-02 15:48:21 +00:00
Fred Fish 3dfa6cfb66 * config/stratus.mt (CC): Remove definition.
* elf.c (bfd_section_from_shdr, elf_section_from_bfd_section,
	section_from_elf_index):  Add SHT_BEPROGBITS case for i860 in
	big endian mode.
	* elf.c (bfd_section_from_shdr):  Test for the possibility that
	section_from_elf_index returns NULL and don't dereference it.
1992-08-01 20:51:09 +00:00
David Henkel-Wallace 9e2b3581cb HP host support 1992-07-23 19:44:30 +00:00
K. Richard Pixley 5ae97f7d26 removed rcsids 1992-07-18 01:34:19 +00:00
K. Richard Pixley 8df9af77ca merged changes from progressive 1992-07-16 23:49:40 +00:00
Steve Chamberlain 31f333a39f * coff-m68k.c: added R_RELLONG_NEG reloc type, and changed
RTYPE2HOWTO to cope with same.
	* reloc.c (bfd_perform_relocation): added support for size of -2
	(subtract a word reloc type). Updated doc.
1992-07-16 23:44:53 +00:00
K. Richard Pixley 5f1b6dd222 removed rcsid 1992-07-16 23:42:42 +00:00
K. Richard Pixley 542afc7675 removed rcsid 1992-07-16 23:28:40 +00:00