summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2010-04-23 02:10:01 +0000
committerchristos <christos@NetBSD.org>2010-04-23 02:10:01 +0000
commite1c0dee238fecdd77083eebf55e5e96d9c42d2b7 (patch)
tree59eafdecd8255f3674600d422bc17f441d06b1d7 /usr.sbin
parent24157036cd94c9b9d866d9c7a309136d74e6bb63 (diff)
workaround for MKPIE=yes until binutils-2.20.1 is imported. From Piotr Meyer
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/crash/Makefile4
-rw-r--r--usr.sbin/crash/ldscript.crash9
2 files changed, 11 insertions, 2 deletions
diff --git a/usr.sbin/crash/Makefile b/usr.sbin/crash/Makefile
index 914106dfbc1..b3088144b05 100644
--- a/usr.sbin/crash/Makefile
+++ b/usr.sbin/crash/Makefile
@@ -1,10 +1,10 @@
-# $NetBSD: Makefile,v 1.4 2010/02/03 15:34:46 roy Exp $
+# $NetBSD: Makefile,v 1.5 2010/04/23 02:10:01 christos Exp $
PROG= crash
MAN= crash.8
RUMPKERNEL= yes # XXX: Avoid -mcmodel=kernel
-LDADD+= -lkvm -ledit -lterminfo
+LDADD+= -lkvm -ledit -lterminfo -T${.CURDIR}/ldscript.crash
DPADD+= ${LIBKVM} ${LIBEDIT} ${LIBTERMINFO}
# some ddb kernel components need limited modifications. for now,
diff --git a/usr.sbin/crash/ldscript.crash b/usr.sbin/crash/ldscript.crash
new file mode 100644
index 00000000000..131fda4a7ac
--- /dev/null
+++ b/usr.sbin/crash/ldscript.crash
@@ -0,0 +1,9 @@
+
+SECTIONS
+{
+ .note.netbsd.ident :
+ {
+ KEEP(*(.note.netbsd.ident));
+ }
+}
+INSERT AFTER .gnu.version_r;