Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-9]: src/share/mk Pull up following revision(s) (requested by kami...
details: https://anonhg.NetBSD.org/src/rev/cd19e0b5fc1a
branches: netbsd-9
changeset: 962845:cd19e0b5fc1a
user: martin <martin%NetBSD.org@localhost>
date: Mon Aug 19 15:53:40 2019 +0000
description:
Pull up following revision(s) (requested by kamil in ticket #93):
share/mk/bsd.prog.mk: revision 1.322
Add PAXCTL_FLAG rules for MKSANITIZER
Add per-program rules to disable ASLR for ASan, TSan and MSan in all
sanitized programs. This flag is not needed for other supported sanitizers.
Without this change, sanitized init(8) dies early on startup.
Approach originally suggested by <joerg>
diffstat:
share/mk/bsd.prog.mk | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diffs (28 lines):
diff -r 71becd97cc2e -r cd19e0b5fc1a share/mk/bsd.prog.mk
--- a/share/mk/bsd.prog.mk Mon Aug 19 15:49:52 2019 +0000
+++ b/share/mk/bsd.prog.mk Mon Aug 19 15:53:40 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.prog.mk,v 1.319.2.1 2019/08/16 19:22:08 martin Exp $
+# $NetBSD: bsd.prog.mk,v 1.319.2.2 2019/08/19 15:53:40 martin Exp $
# @(#)bsd.prog.mk 8.2 (Berkeley) 4/2/94
.ifndef HOSTPROG
@@ -482,10 +482,18 @@
_PROGDEBUG.${_P}:= ${PROGNAME.${_P}}.debug
.endif
+# paxctl specific arguments
+
.if defined(PAXCTL_FLAGS)
PAXCTL_FLAGS.${_P}?= ${PAXCTL_FLAGS}
.endif
+.if ${MKSANITIZER:Uno} == "yes" && \
+ (${USE_SANITIZER} == "address" || ${USE_SANITIZER} == "thread" || \
+ ${USE_SANITIZER} == "memory")
+PAXCTL_FLAGS.${_P}= +a
+.endif
+
##### PROG specific flags.
_DPADD.${_P}= ${DPADD} ${DPADD.${_P}}
Home |
Main Index |
Thread Index |
Old Index