summaryrefslogtreecommitdiff
path: root/compat
diff options
context:
space:
mode:
authorriastradh <riastradh@NetBSD.org>2023-05-13 10:56:54 +0000
committerriastradh <riastradh@NetBSD.org>2023-05-13 10:56:54 +0000
commite6cbd2fb52a1b37e618ed0b6cddb52afa0a42fda (patch)
treea627e185f8cfe973c5cbb3358f4aaeecf6ad3f9c /compat
parentf147c0558f2047bcf6c602468d89cd798d43fbb3 (diff)
compat: Disable relro in 32-bit arm compat.
Not supported by binutils: ld: warning: -z relro ignored PR toolchain/57405
Diffstat (limited to 'compat')
-rw-r--r--compat/arm/eabi/bsd.eabi.mk5
-rw-r--r--compat/arm/eabihf/bsd.eabihf.mk5
2 files changed, 8 insertions, 2 deletions
diff --git a/compat/arm/eabi/bsd.eabi.mk b/compat/arm/eabi/bsd.eabi.mk
index 44b5b5c305d..f0c9ea875c6 100644
--- a/compat/arm/eabi/bsd.eabi.mk
+++ b/compat/arm/eabi/bsd.eabi.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.eabi.mk,v 1.6 2023/05/13 10:56:08 riastradh Exp $
+# $NetBSD: bsd.eabi.mk,v 1.7 2023/05/13 10:56:54 riastradh Exp $
.if !defined(MLIBDIR)
@@ -62,6 +62,9 @@ LDADD+= ${EARM_COMPAT_FLAGS}
LDFLAGS+= ${EARM_COMPAT_FLAGS}
MKDEPFLAGS+= ${EARM_COMPAT_FLAGS}
+# sync with MKRELRO in bsd.own.mk
+NORELRO= # defined
+
.include "${.PARSEDIR}/../../Makefile.compat"
.endif
diff --git a/compat/arm/eabihf/bsd.eabihf.mk b/compat/arm/eabihf/bsd.eabihf.mk
index b6386fcd58a..917e2b56d75 100644
--- a/compat/arm/eabihf/bsd.eabihf.mk
+++ b/compat/arm/eabihf/bsd.eabihf.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.eabihf.mk,v 1.4 2023/05/13 10:56:08 riastradh Exp $
+# $NetBSD: bsd.eabihf.mk,v 1.5 2023/05/13 10:56:55 riastradh Exp $
.if !defined(MLIBDIR)
@@ -62,6 +62,9 @@ LDADD+= ${EARM_COMPAT_FLAGS}
LDFLAGS+= ${EARM_COMPAT_FLAGS}
MKDEPFLAGS+= ${EARM_COMPAT_FLAGS}
+# sync with MKRELRO in bsd.own.mk
+NORELRO= # defined
+
.include "${.PARSEDIR}/../../Makefile.compat"
.endif