blob: 10f57bfc33af0baf4c8e98665c90cab5f11990c8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
$NetBSD: patch-bf,v 1.5 2000/01/22 19:57:47 tron Exp $
--- src/s/netbsd.h.orig Sat Apr 11 20:15:19 1998
+++ src/s/netbsd.h Sat Jan 22 20:22:29 2000
@@ -57,7 +57,7 @@
#define N_BSSADDR(x) (N_ALIGN(x, N_DATADDR(x)+x.a_data))
#define N_TRELOFF(x) N_RELOFF(x)
#endif
-#endif /* not NO_SHARED_LIBS */
+#endif /* not NO_SHARED_LIBS and not ELF */
#define HAVE_WAIT_HEADER
#define WAIT_USE_INT
@@ -66,11 +66,15 @@
#define AMPERSAND_FULL_NAME
-#ifdef __ELF__
/* Here is how to find X Windows. LD_SWITCH_X_SITE_AUX gives an -R option
says where to find X windows at run time. We convert it to a -rpath option
which is what OSF1 uses. */
#define LD_SWITCH_SYSTEM `echo LD_SWITCH_X_SITE_AUX | sed -e 's/-R/-Wl,-rpath,/'`
+
+#ifdef __ELF__
+#define HAVE_TEXT_START /* No need to define `start_of_text'. */
+#define UNEXEC unexelf.c
+#define ORDINARY_LINK
#endif /* __ELF__ */
/* On post 1.3 releases of NetBSD, gcc -nostdlib also clears
|