Remove redundant -Wl uses from the kernel's LDFLAGS.

No functional change intended.

MFC after:	3 days
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Mark Johnston 2019-05-14 18:10:32 +00:00
parent 7355a02bdd
commit b5155bc919
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=347569
2 changed files with 5 additions and 5 deletions

View File

@ -144,7 +144,7 @@ CFLAGS+= ${GCOV_CFLAGS}
CFLAGS+= ${CONF_CFLAGS}
.if defined(LINKER_FEATURES) && ${LINKER_FEATURES:Mbuild-id}
LDFLAGS+= -Wl,--build-id=sha1
LDFLAGS+= --build-id=sha1
.endif
.if (${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64" || \
@ -153,11 +153,11 @@ LDFLAGS+= -Wl,--build-id=sha1
.error amd64/arm64/i386 kernel requires linker ifunc support
.endif
.if ${MACHINE_CPUARCH} == "amd64"
LDFLAGS+= -Wl,-z max-page-size=2097152
LDFLAGS+= -z max-page-size=2097152
.if ${LINKER_TYPE} != "lld"
LDFLAGS+= -Wl,-z common-page-size=4096
LDFLAGS+= -z common-page-size=4096
.else
LDFLAGS+= -Wl,-z -Wl,ifunc-noplt
LDFLAGS+= -z ifunc-noplt
.endif
.endif

View File

@ -138,7 +138,7 @@ CFLAGS+= -fno-common
LDFLAGS+= -d -warn-common
.if defined(LINKER_FEATURES) && ${LINKER_FEATURES:Mbuild-id}
LDFLAGS+= -Wl,--build-id=sha1
LDFLAGS+= --build-id=sha1
.endif
CFLAGS+= ${DEBUG_FLAGS}