aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/m/mips.h21
1 files changed, 11 insertions, 10 deletions
diff --git a/src/m/mips.h b/src/m/mips.h
index dc45a99d06b..9ae74178143 100644
--- a/src/m/mips.h
+++ b/src/m/mips.h
@@ -112,10 +112,10 @@ NOTE-END */
112/* This machine requires completely different unexec code 112/* This machine requires completely different unexec code
113 which lives in a separate file. Specify the file name. */ 113 which lives in a separate file. Specify the file name. */
114 114
115#ifndef __linux__ 115#if !defined(__linux__) && !defined(__NetBSD__)
116#undef UNEXEC 116#undef UNEXEC
117#define UNEXEC unexmips.o 117#define UNEXEC unexmips.o
118#endif /* not __linux__ */ 118#endif /* not __linux__ && not __NetBSD__ */
119 119
120/* Describe layout of the address space in an executing process. */ 120/* Describe layout of the address space in an executing process. */
121 121
@@ -142,14 +142,6 @@ NOTE-END */
142#if defined (__NetBSD__) || defined (__OpenBSD__) 142#if defined (__NetBSD__) || defined (__OpenBSD__)
143#else /* bsd with elf */ 143#else /* bsd with elf */
144#define LINKER /bsd43/bin/ld 144#define LINKER /bsd43/bin/ld
145#endif /* bsd with elf */
146#else /* not BSD_SYSTEM */
147
148#if defined(__GNUC__) && defined(_ABIN32)
149#define LIBS_MACHINE
150#else
151#define LIBS_MACHINE -lmld
152#endif
153 145
154#define LD_SWITCH_MACHINE -D 800000 -g3 146#define LD_SWITCH_MACHINE -D 800000 -g3
155#define START_FILES pre-crt0.o /usr/lib/crt1.o 147#define START_FILES pre-crt0.o /usr/lib/crt1.o
@@ -159,6 +151,15 @@ NOTE-END */
159#define C_SWITCH_MACHINE -I/usr/include/bsd 151#define C_SWITCH_MACHINE -I/usr/include/bsd
160#define C_DEBUG_SWITCH -O -g3 152#define C_DEBUG_SWITCH -O -g3
161 153
154#endif /* bsd with elf */
155#else /* not BSD_SYSTEM */
156
157#if defined(__GNUC__) && defined(_ABIN32)
158#define LIBS_MACHINE
159#else
160#define LIBS_MACHINE -lmld
161#endif
162
162#endif /* not BSD_SYSTEM */ 163#endif /* not BSD_SYSTEM */
163#endif /* not NEWSOS5 && not __linux__ */ 164#endif /* not NEWSOS5 && not __linux__ */
164 165