aboutsummaryrefslogtreecommitdiffstats
path: root/src/m
diff options
context:
space:
mode:
authorCharles Hannum1994-07-22 18:28:20 +0000
committerCharles Hannum1994-07-22 18:28:20 +0000
commitd2d1c35d750a5e552c797993a1d33b5cd796368d (patch)
tree96d59ccfd3cba26de79449f9a12862dea7e583b4 /src/m
parent8c04464485c27c51631be6e5ed80fc2a8c8f1b3e (diff)
downloademacs-d2d1c35d750a5e552c797993a1d33b5cd796368d.tar.gz
emacs-d2d1c35d750a5e552c797993a1d33b5cd796368d.zip
Changes to support NetBSD.
Diffstat (limited to 'src/m')
-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. */
96 in the file alloca.s should be used. */ 96 in the file alloca.s should be used. */
97 97
98/* #define C_ALLOCA */ 98/* #define C_ALLOCA */
99/* #define HAVE_ALLOCA */ 99#ifdef __NetBSD__
100#define HAVE_ALLOCA
101#endif
100 102
101/* Define NO_REMAP if memory segmentation makes it not work well 103/* Define NO_REMAP if memory segmentation makes it not work well
102 to change the boundary between the text section and data section 104 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. */
109 111
110#define STACK_DIRECTION -1 112#define STACK_DIRECTION -1
111 113
114#ifndef __NetBSD__
112#define EXEC_MAGIC 0410 115#define EXEC_MAGIC 0410
113 116
114#define PURESIZE 140000 117#define PURESIZE 140000
115 118
116#define START_FILES pre-crt0.o /lib/crt0.o 119#define START_FILES pre-crt0.o /lib/crt0.o
120#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 */
110#define PURESIZE 130000 110#define PURESIZE 130000
111#endif 111#endif
112 112
113#ifndef __NetBSD__
114/* This really belongs in s/sun.h. */
115
113/* Say that the text segment of a.out includes the header; 116/* Say that the text segment of a.out includes the header;
114 the header actually occupies the first few bytes of the text segment 117 the header actually occupies the first few bytes of the text segment
115 and is counted in hdr.a_text. */ 118 and is counted in hdr.a_text. */
@@ -119,3 +122,5 @@ NOTE-END */
119/* This is the offset of the executable's text, from the start of the file. */ 122/* This is the offset of the executable's text, from the start of the file. */
120 123
121#define A_TEXT_SEEK(HDR) (N_TXTOFF (hdr) + sizeof (hdr)) 124#define A_TEXT_SEEK(HDR) (N_TXTOFF (hdr) + sizeof (hdr))
125
126#endif /* __NetBSD__ */