Specify -z notext when building with -z ifunc-noplt.

The upstream implementation of -z ifunc-noplt disallows its combination
with -z text.  The option does not have much significance for kernel
builds, though.

Reviewed by:	kib (previous version)
Discussed with:	emaste
MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D20260
This commit is contained in:
Mark Johnston 2019-05-14 18:26:39 +00:00
parent b5155bc919
commit 367ba2d2a3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=347570

View File

@ -157,7 +157,7 @@ LDFLAGS+= -z max-page-size=2097152
.if ${LINKER_TYPE} != "lld"
LDFLAGS+= -z common-page-size=4096
.else
LDFLAGS+= -z ifunc-noplt
LDFLAGS+= -z notext -z ifunc-noplt
.endif
.endif