changeset 8307:298b54cff974

Changes to support NetBSD.
author Charles Hannum <mycroft@gnu.org>
date Fri, 22 Jul 1994 18:28:20 +0000
parents 2291bfe14170
children 9c9cbb121c37
files src/m/ns32000.h src/m/sparc.h
diffstat 2 files changed, 10 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/m/ns32000.h	Fri Jul 22 18:22:36 1994 +0000
+++ b/src/m/ns32000.h	Fri Jul 22 18:28:20 1994 +0000
@@ -96,7 +96,9 @@
    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 @@
 
 #define STACK_DIRECTION -1
 
+#ifndef __NetBSD__
 #define EXEC_MAGIC 0410
 
 #define PURESIZE 140000
 
 #define START_FILES pre-crt0.o /lib/crt0.o
+#endif
--- a/src/m/sparc.h	Fri Jul 22 18:22:36 1994 +0000
+++ b/src/m/sparc.h	Fri Jul 22 18:28:20 1994 +0000
@@ -110,6 +110,9 @@
 #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 @@
 /* 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__ */