Skip to content
Commit 695ed93b authored by Masahiro Yamada's avatar Masahiro Yamada
Browse files

kbuild: fix Clang LTO with CONFIG_OBJTOOL=n



Since commit bede1696 ("kbuild: enable objtool for *.mod.o and
additional kernel objects"), Clang LTO builds do not perform any
optimizations when CONFIG_OBJTOOL is disabled (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: bede1696 ("kbuild: enable objtool for *.mod.o and additional kernel objects")
Reported-by: default avatarYonghong Song <yonghong.song@linux.dev>
Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
Tested-by: default avatarYonghong Song <yonghong.song@linux.dev>
parent 71d815bf
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment