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)
commit8f1305124ea48943d1dd07683ed4f82c69b232ee
treeedc931cae96df457c7af9a6d53f22436e4bab1a6
parenta8390ba9ddce15242a41ca04d097b75fd54fd63f
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