Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/share/mk Turn on PIE for sparc64 so we can use ASLR effectiv...



details:   https://anonhg.NetBSD.org/src/rev/eefaa6378eaa
branches:  trunk
changeset: 345331:eefaa6378eaa
user:      christos <christos%NetBSD.org@localhost>
date:      Thu May 19 15:38:13 2016 +0000

description:
Turn on PIE for sparc64 so we can use ASLR effectively.

diffstat:

 share/mk/bsd.own.mk |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r bbc787518cf1 -r eefaa6378eaa share/mk/bsd.own.mk
--- a/share/mk/bsd.own.mk       Thu May 19 15:37:06 2016 +0000
+++ b/share/mk/bsd.own.mk       Thu May 19 15:38:13 2016 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: bsd.own.mk,v 1.923 2016/05/11 13:41:56 martin Exp $
+#      $NetBSD: bsd.own.mk,v 1.924 2016/05/19 15:38:13 christos Exp $
 
 # This needs to be before bsd.init.mk
 .if defined(BSD_MK_COMPAT_FILE)
@@ -1049,7 +1049,7 @@
 #
 # PIE is enabled on amd64 by default
 #
-.if ${MACHINE_ARCH} == "x86_64"
+.if ${MACHINE_ARCH} == "x86_64" || ${MACHINE} == "sparc64"
 MKPIE?=                yes
 .else
 MKPIE?=                no



Home | Main Index | Thread Index | Old Index