aboutsummaryrefslogtreecommitdiff
path: root/bfd/aoutf1.h
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1993-07-09 05:47:07 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1993-07-09 05:47:07 +0000
commita40fe908ce5d4366286cebcff3317b59c3ce5e25 (patch)
treedb183af9f5f4e7bb23392c2bf651c04d1a925b44 /bfd/aoutf1.h
parent075aa449df266de71621d2e3896f7d18d22b6aab (diff)
downloadgdb-a40fe908ce5d4366286cebcff3317b59c3ce5e25.zip
gdb-a40fe908ce5d4366286cebcff3317b59c3ce5e25.tar.gz
gdb-a40fe908ce5d4366286cebcff3317b59c3ce5e25.tar.bz2
* aoutf1.h: Add definition of MACHTYPE_OK.
Diffstat (limited to 'bfd/aoutf1.h')
-rw-r--r--bfd/aoutf1.h19
1 files changed, 17 insertions, 2 deletions
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;