Source-Changes-HG archive

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

[src/trunk]: src/share/mk mk: Enable MKRELRO on aarch64 to match x86.



details:   https://anonhg.NetBSD.org/src/rev/98fc9d0a446c
branches:  trunk
changeset: 1024251:98fc9d0a446c
user:      nia <nia%NetBSD.org@localhost>
date:      Thu Oct 14 11:46:45 2021 +0000

description:
mk: Enable MKRELRO on aarch64 to match x86.

diffstat:

 share/mk/bsd.own.mk |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (24 lines):

diff -r 07cf6ff7a963 -r 98fc9d0a446c share/mk/bsd.own.mk
--- a/share/mk/bsd.own.mk       Thu Oct 14 11:45:46 2021 +0000
+++ b/share/mk/bsd.own.mk       Thu Oct 14 11:46:45 2021 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: bsd.own.mk,v 1.1264 2021/10/14 11:45:46 nia Exp $
+#      $NetBSD: bsd.own.mk,v 1.1265 2021/10/14 11:46:45 nia Exp $
 
 # This needs to be before bsd.init.mk
 .if defined(BSD_MK_COMPAT_FILE)
@@ -1121,10 +1121,12 @@
 .endif
 
 #
-# RELRO is enabled on i386 and amd64 by default
+# RELRO is enabled on i386, amd64, and aarch64 by default
 #
 .if ${MACHINE_ARCH} == "i386" || \
-    ${MACHINE_ARCH} == "x86_64"
+    ${MACHINE_ARCH} == "x86_64" || \
+    ${MACHINE_ARCH} == "aarch64" || \
+    ${MACHINE_ARCH} == "aarch64eb"
 MKRELRO?=      partial
 .else
 MKRELRO?=      no



Home | Main Index | Thread Index | Old Index