30 lines
965 B
Text
30 lines
965 B
Text
$NetBSD: patch-bf,v 1.1.1.1 2003/04/11 00:31:45 uebayasi 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.o
|
|
+#define ORDINARY_LINK
|
|
#endif /* __ELF__ */
|
|
|
|
/* On post 1.3 releases of NetBSD, gcc -nostdlib also clears
|