ld.lld: error: .btf.vmlinux.bin.o: unknown file type #1995
Labels
[BUG] linux
A bug that should be fixed in the mainline kernel.
[FIXED][LINUX] 6.8
This bug was fixed in Linux 6.8
[TOOL] lld
The issue is relevant to LLD linker
When attempting to build
ARCH=s390 defconfig
plusCONFIG_DEBUG_INFO_BTF=y
withld.lld
(available after llvm/llvm-project@fe3406e) after applying the patches for #1991, #1992, #1993, and #1994, there is an error when linking the BTF object into vmlinux:This is not actually s390 specific, it is just that we have not tested a big endian arch with
CONFIG_DEBUG_INFO_BTF=y
andLD=ld.lld
until now.Patch submitted: https://lore.kernel.org/20240212-fix-elf-type-btf-vmlinux-bin-o-big-endian-v2-1-22c0a6352069@kernel.org/
Masahiro has accepted it but I don't see in
linux-kbuild/fixes
yet, so I'll leave this as "Submitted" for now.https://lore.kernel.org/CAK7LNATZAh9fa8rd6jLwdEGUBHkAs9e4hZh=WvKeNLkGs2=8Aw@mail.gmail.com/
https://git.kernel.org/masahiroy/linux-kbuild/l/fixes
The text was updated successfully, but these errors were encountered: