compat: Disable relro in 32-bit arm compat.
Not supported by binutils: ld: warning: -z relro ignored PR toolchain/57405
This commit is contained in:
parent
af3f411dce
commit
57f1bae4e0
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: bsd.own.mk,v 1.1318 2023/05/12 11:49:47 ryoon Exp $
|
||||
# $NetBSD: bsd.own.mk,v 1.1319 2023/05/13 10:56:55 riastradh Exp $
|
||||
|
||||
# This needs to be before bsd.init.mk
|
||||
.if defined(BSD_MK_COMPAT_FILE)
|
||||
|
@ -1137,6 +1137,9 @@ MKPIE?= no
|
|||
#
|
||||
# RELRO is enabled on i386, amd64, and aarch64 by default
|
||||
#
|
||||
# sync with NORELRO in compat/*/*/bsd.*.mk for the relro-enabled 64-bit
|
||||
# platforms with relro-disabled 32-bit compat
|
||||
#
|
||||
.if ${MACHINE} == "i386" || \
|
||||
${MACHINE} == "amd64" || \
|
||||
${MACHINE_ARCH:Maarch64*}
|
||||
|
|
Loading…
Reference in New Issue