From a40fe908ce5d4366286cebcff3317b59c3ce5e25 Mon Sep 17 00:00:00 2001 From: Jim Kingdon Date: Fri, 9 Jul 1993 05:47:07 +0000 Subject: * aoutf1.h: Add definition of MACHTYPE_OK. --- bfd/aoutf1.h | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'bfd/aoutf1.h') diff --git a/bfd/aoutf1.h b/bfd/aoutf1.h index 5f22b59..076b0f2 100644 --- a/bfd/aoutf1.h +++ b/bfd/aoutf1.h @@ -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; -- cgit v1.1