summaryrefslogtreecommitdiff
path: root/share/mk
diff options
context:
space:
mode:
authorMike Belopuhov <mikeb@cvs.openbsd.org>2013-03-14 12:56:59 +0000
committerMike Belopuhov <mikeb@cvs.openbsd.org>2013-03-14 12:56:59 +0000
commit0b2225d839022730ee0069835579e69a7f825fae (patch)
tree293dc92289d5794248ec82108b2742fd48789724 /share/mk
parent5a18c7a9fe3fc2c4b094c4b4dfb5aafee50542ad (diff)
disable pie for kernel modules; from dinar talypov, ok deraadt, pascal
Diffstat (limited to 'share/mk')
-rw-r--r--share/mk/bsd.lkm.mk6
1 files changed, 5 insertions, 1 deletions
diff --git a/share/mk/bsd.lkm.mk b/share/mk/bsd.lkm.mk
index 6a07f8f1e4d..77bbf984ad0 100644
--- a/share/mk/bsd.lkm.mk
+++ b/share/mk/bsd.lkm.mk
@@ -1,4 +1,4 @@
-# $OpenBSD: bsd.lkm.mk,v 1.23 2012/04/08 15:56:28 jsg Exp $
+# $OpenBSD: bsd.lkm.mk,v 1.24 2013/03/14 12:56:58 mikeb Exp $
.if exists(${.CURDIR}/../Makefile.inc)
.include "${.CURDIR}/../Makefile.inc"
@@ -24,6 +24,10 @@ CFLAGS+= ${CDIAGFLAGS}
CFLAGS+= -mcmodel=kernel
.endif
+CFLAGS+= ${NOPIE_FLAGS}
+AFLAGS+= ${NOPIE_FLAGS}
+LDFLAGS+= ${NOPIE_LDFLAGS}
+
LDFLAGS+= -r
.if defined(LKM)
SRCS?= ${LKM}.c