pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk/platform Register support for RELRO on Linux (limit...
details: https://anonhg.NetBSD.org/pkgsrc/rev/d4875c7bcc7b
branches: trunk
changeset: 363447:d4875c7bcc7b
user: khorben <khorben%pkgsrc.org@localhost>
date: Fri Jun 09 17:21:53 2017 +0000
description:
Register support for RELRO on Linux (limited to x86 first)
Tested on Debian GNU/Linux 8.8 (amd64).
Actual support will depend on the underlying distribution though.
diffstat:
mk/platform/Linux.mk | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diffs (22 lines):
diff -r 2c3a05dceac4 -r d4875c7bcc7b mk/platform/Linux.mk
--- a/mk/platform/Linux.mk Fri Jun 09 17:05:58 2017 +0000
+++ b/mk/platform/Linux.mk Fri Jun 09 17:21:53 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Linux.mk,v 1.74 2017/06/09 17:04:18 khorben Exp $
+# $NetBSD: Linux.mk,v 1.75 2017/06/09 17:21:53 khorben Exp $
#
# Variable definitions for the Linux operating system.
@@ -122,6 +122,12 @@
# Register support for FORTIFY (with GCC)
_OPSYS_SUPPORTS_FORTIFY=yes
+# Register support for RELRO on supported architectures (with GCC)
+.if (${MACHINE_ARCH} == "i386") || \
+ (${MACHINE_ARCH} == "x86_64")
+_OPSYS_SUPPORTS_RELRO= yes
+.endif
+
# Register support for SSP on x86 architectures
.if (${MACHINE_ARCH} == "i386") || \
(${MACHINE_ARCH} == "x86_64")
Home |
Main Index |
Thread Index |
Old Index