diff options
| author | christos <christos@NetBSD.org> | 2010-04-23 02:10:01 +0000 |
|---|---|---|
| committer | christos <christos@NetBSD.org> | 2010-04-23 02:10:01 +0000 |
| commit | e1c0dee238fecdd77083eebf55e5e96d9c42d2b7 (patch) | |
| tree | 59eafdecd8255f3674600d422bc17f441d06b1d7 | |
| parent | 24157036cd94c9b9d866d9c7a309136d74e6bb63 (diff) | |
workaround for MKPIE=yes until binutils-2.20.1 is imported. From Piotr Meyer
| -rw-r--r-- | usr.sbin/crash/Makefile | 4 | ||||
| -rw-r--r-- | usr.sbin/crash/ldscript.crash | 9 |
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; |
