]> git.baikalelectronics.ru Git - kernel.git/commit
kbuild: merge vmlinux_link() between the ordinary link and Clang LTO
authorMasahiro Yamada <masahiroy@kernel.org>
Thu, 19 Aug 2021 00:57:37 +0000 (09:57 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Thu, 2 Sep 2021 23:17:20 +0000 (08:17 +0900)
commit18ba5187895738160a9ad598e2603ebc143a0e0c
treeedc931cae96df457c7af9a6d53f22436e4bab1a6
parent102e67917d01562d99546b7b2a07a33dfd6f1818
kbuild: merge vmlinux_link() between the ordinary link and Clang LTO

When Clang LTO is enabled, vmlinux_link() reuses vmlinux.o instead of
re-linking ${KBUILD_VMLINUX_OBJS} and ${KBUILD_VMLINUX_LIBS}.

That is the only difference here, so merge the similar code.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Kees Cook <keescook@chromium.org>
scripts/link-vmlinux.sh