* aoutf1.h: Add definition of MACHTYPE_OK.

This commit is contained in:
Jim Kingdon 1993-07-09 05:47:07 +00:00
parent 075aa449df
commit a40fe908ce
2 changed files with 21 additions and 2 deletions

View File

@ -1,3 +1,7 @@
Fri Jul 9 00:43:06 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
* aoutf1.h: Add definition of MACHTYPE_OK.
Thu Jul 8 13:43:52 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
* hosts/i386bsd.h: Conditionalize HOST_STACK_END_ADDR on __bsdi__.

View File

@ -29,6 +29,11 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "aout/stab_gnu.h"
#include "aout/ar.h"
/* This is needed to reject a NewsOS file, e.g. in
gdb/testsuite/gdb.t10/crossload.exp. */
#define MACHTYPE_OK(mtype) ((mtype) == M_68010 || (mtype) == M_68020 \
|| (mtype) == M_SPARC)
/*
The file @code{aoutf1.h} contains the code for BFD's
a.out back end. Control over the generated back end is given by these
@ -172,9 +177,21 @@ DEFUN(NAME(aout,sunos4_write_object_contents),
choose_reloc_size(abfd);
#if 0
/* Some tools want this to be 0, some tools want this to be one.
Today, it seems that 0 is the most important setting (PR1927) */
N_SET_FLAGS (*execp, 0x0);
#else
/* Fri Jun 11 14:23:31 PDT 1993
FIXME
Today's optimal setting is 1. This is a pain, since it
reopens 1927. This should be readdressed by creating a new
target for each each supported, giving perhaps sun3/m68k
and sun4/sparc a.out formats.
*/
N_SET_FLAGS (*execp, 1);
#endif
WRITE_HEADERS(abfd, execp);
@ -395,8 +412,6 @@ DEFUN(sunos4_core_file_p,(abfd),
char external_core[1];
} *mergem;
bfd_error = system_call_error;
if (bfd_read ((PTR)longbuf, 1, sizeof (longbuf), abfd) !=
sizeof (longbuf))
return 0;