]> www.infradead.org Git - users/jedix/linux-maple.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>
Fri, 27 Aug 2021 05:07:07 +0000 (14:07 +0900)
commit11a5376e37c8f56f642b7889b581d802fbf03936
treeb0aa84af55d626a63661231829df1d03cee5442f
parentb1ec6c234aeda8531ccea689e023b77cc23967a8
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