# HG changeset patch # User Charles Hannum # Date 774901700 0 # Node ID 298b54cff974bb43ef19fc74dff239e66db8698f # Parent 2291bfe1417032522d3a6df81a55c6b7918b626c Changes to support NetBSD. diff -r 2291bfe14170 -r 298b54cff974 src/m/ns32000.h --- 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 diff -r 2291bfe14170 -r 298b54cff974 src/m/sparc.h --- 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__ */