[PATCH] arm64: Disable LLD linker ASSERT()s for the time being
Arnd Bergmann
arnd at arndb.de
Fri May 30 08:03:29 PDT 2025
On Thu, May 29, 2025, at 09:35, Ard Biesheuvel wrote:
> From: Ard Biesheuvel <ardb at kernel.org>
>
> It turns out that the way LLD handles ASSERT()s in the linker script can
> result in spurious failures, so disable them for the newly introduced
> BSS symbol export checks.
>
> Link: https://github.com/ClangBuiltLinux/linux/issues/2094
> Signed-off-by: Ard Biesheuvel <ardb at kernel.org>
I have lld-21 from apt.llvm.org, though with a slightly
older version at the moment:
1:21~++20250418112422+c609cd2df981-1~exp1~20250418112440.1395
this version still hits the assertions on the bss symbols, but
I guess we don't really have to worry about pre-release builds.
I checked your patch with the latest ld.ldd-21 and an earlier ld.lld-20,
both work fine.
Tested-by: Arnd Bergmann <arnd at arndb.de>
More information about the linux-arm-kernel
mailing list