summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCharles Hannum <mycroft@gnu.org>1994-07-22 18:28:20 +0000
committerCharles Hannum <mycroft@gnu.org>1994-07-22 18:28:20 +0000
commitd2d1c35d750a5e552c797993a1d33b5cd796368d (patch)
tree96d59ccfd3cba26de79449f9a12862dea7e583b4 /src
parent8c04464485c27c51631be6e5ed80fc2a8c8f1b3e (diff)
Changes to support NetBSD.
Diffstat (limited to 'src')
-rw-r--r--src/m/ns32000.h6
-rw-r--r--src/m/sparc.h5
2 files changed, 10 insertions, 1 deletions
diff --git a/src/m/ns32000.h b/src/m/ns32000.h
index a05a612b6ab..e45f223211c 100644
--- a/src/m/ns32000.h
+++ b/src/m/ns32000.h
@@ -96,7 +96,9 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
in the file alloca.s should be used. */
/* #define C_ALLOCA */
-/* #define HAVE_ALLOCA */
+#ifdef __NetBSD__
+#define HAVE_ALLOCA
+#endif
/* Define NO_REMAP if memory segmentation makes it not work well
to change the boundary between the text section and data section
@@ -109,8 +111,10 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#define STACK_DIRECTION -1
+#ifndef __NetBSD__
#define EXEC_MAGIC 0410
#define PURESIZE 140000
#define START_FILES pre-crt0.o /lib/crt0.o
+#endif
diff --git a/src/m/sparc.h b/src/m/sparc.h
index 184bdbc4f36..341f37ca971 100644
--- a/src/m/sparc.h
+++ b/src/m/sparc.h
@@ -110,6 +110,9 @@ NOTE-END */
#define PURESIZE 130000
#endif
+#ifndef __NetBSD__
+/* This really belongs in s/sun.h. */
+
/* Say that the text segment of a.out includes the header;
the header actually occupies the first few bytes of the text segment
and is counted in hdr.a_text. */
@@ -119,3 +122,5 @@ NOTE-END */
/* This is the offset of the executable's text, from the start of the file. */
#define A_TEXT_SEEK(HDR) (N_TXTOFF (hdr) + sizeof (hdr))
+
+#endif /* __NetBSD__ */