On Fri, Jan 31, 2025 at 6:04 AM Masahiro Yamada <masahiroy@xxxxxxxxxx> wrote: > > Since commit bede169618c6 ("kbuild: enable objtool for *.mod.o and > additional kernel objects"), Clang LTO builds do not perform any > optimizations when CONFIG_OBJTOOL is disable (e.g., for ARCH=arm64). > This is because every LLVM bitcode file is immediately converted to > ELF format before the object files are linked together. > > This commit fixes the breakage. > > Fixes: bede169618c6 ("kbuild: enable objtool for *.mod.o and additional kernel objects") > Reported-by: Yonghong Song <yonghong.song@xxxxxxxxx> > Signed-off-by: Masahiro Yamada <masahiroy@xxxxxxxxxx> Tested-by: Song Liu <song@xxxxxxxxxx>