diff options
author | Jim Kingdon <jkingdon@engr.sgi.com> | 1993-07-09 05:47:07 +0000 |
---|---|---|
committer | Jim Kingdon <jkingdon@engr.sgi.com> | 1993-07-09 05:47:07 +0000 |
commit | a40fe908ce5d4366286cebcff3317b59c3ce5e25 (patch) | |
tree | db183af9f5f4e7bb23392c2bf651c04d1a925b44 | |
parent | 075aa449df266de71621d2e3896f7d18d22b6aab (diff) | |
download | gdb-a40fe908ce5d4366286cebcff3317b59c3ce5e25.zip gdb-a40fe908ce5d4366286cebcff3317b59c3ce5e25.tar.gz gdb-a40fe908ce5d4366286cebcff3317b59c3ce5e25.tar.bz2 |
* aoutf1.h: Add definition of MACHTYPE_OK.
-rw-r--r-- | bfd/ChangeLog | 4 | ||||
-rw-r--r-- | bfd/aoutf1.h | 19 |
2 files changed, 21 insertions, 2 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 181b472..e51b048 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -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__. 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; |