pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk/compiler mk: Set the default page size when compili...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/62fe77bd9135
branches:  trunk
changeset: 771668:62fe77bd9135
user:      nia <nia%pkgsrc.org@localhost>
date:      Wed Dec 22 10:14:27 2021 +0000

description:
mk: Set the default page size when compiling with RELRO with GCC on
NetBSD/mips.

PR pkg/56559

diffstat:

 mk/compiler/gcc.mk |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r d93be045fc48 -r 62fe77bd9135 mk/compiler/gcc.mk
--- a/mk/compiler/gcc.mk        Wed Dec 22 09:40:55 2021 +0000
+++ b/mk/compiler/gcc.mk        Wed Dec 22 10:14:27 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: gcc.mk,v 1.233 2021/12/19 11:55:29 nia Exp $
+# $NetBSD: gcc.mk,v 1.234 2021/12/22 10:14:27 nia Exp $
 #
 # This is the compiler definition for the GNU Compiler Collection.
 #
@@ -393,6 +393,10 @@
 _RELRO_LDFLAGS=                -Wl,-zrelro
 .endif
 
+.if !empty(_RELRO_LDFLAGS) && !empty(MACHINE_PLATFORM:MNetBSD-*-*mips*)
+_RELRO_LDFLAGS+=       -Wl,-z,common-page-size=0x10000
+.endif
+
 _STACK_CHECK_CFLAGS=   -fstack-check
 
 .if ${_PKGSRC_USE_STACK_CHECK} == "yes"



Home | Main Index | Thread Index | Old Index