mirror of
https://git.FreeBSD.org/src.git
synced 2024-10-18 02:19:39 +00:00
Bump lld LINKER_FREEBSD_VERSION for reproducibility fix
The upstream fix to make lld output for our EFI loaders reproducible
again was committed in 54521a2ff9
. Bump lld's LINKER_FREEBSD_VERSION
to be able to check this in the EFI loader Makefile.
MFC after: 3 days
This commit is contained in:
parent
54521a2ff9
commit
f97c7fdc59
@ -1,4 +1,4 @@
|
||||
// Local identifier in __FreeBSD_version style
|
||||
#define LLD_FREEBSD_VERSION 1500000
|
||||
#define LLD_FREEBSD_VERSION 1500001
|
||||
|
||||
#define LLD_VERSION_STRING "18.1.6 (FreeBSD llvmorg-18.1.6-0-g1118c2e05e67-" __XSTRING(LLD_FREEBSD_VERSION) ")"
|
||||
|
@ -111,10 +111,14 @@ LDFLAGS+= -Wl,-T${LDSCRIPT},-Bsymbolic,-znotext -pie
|
||||
LDFLAGS+= -Wl,--no-dynamic-linker
|
||||
.endif
|
||||
|
||||
.include <bsd.linker.mk>
|
||||
|
||||
.if ${LINKER_TYPE} == "lld" && ${LINKER_FREEBSD_VERSION} < 1500001
|
||||
# When lld is using multiple threads, which it does by default, it can
|
||||
# result in non-reproducible output with the custom linker script. Work
|
||||
# around this by disabling threading.
|
||||
LDFLAGS.lld+= -Wl,--threads=1
|
||||
LDFLAGS+= -Wl,--threads=1
|
||||
.endif
|
||||
|
||||
CLEANFILES+= ${LOADER}.efi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user