]> git.baikalelectronics.ru Git - kernel.git/commit
kbuild: rebuild multi-object modules when objtool is updated
authorMasahiro Yamada <masahiroy@kernel.org>
Fri, 27 May 2022 10:01:55 +0000 (19:01 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Wed, 1 Jun 2022 14:07:29 +0000 (23:07 +0900)
commit137d5f5eaa8a3c15c4dc721e67237115c146fe3a
treed2fd6a7785d73c7e4a7f0e4b4e9c58a387facdf7
parent1ac528d7abc5e35fd8539d5e621b914399def651
kbuild: rebuild multi-object modules when objtool is updated

When CONFIG_LTO_CLANG or CONFIG_X86_KERNEL_IBT is enabled, objtool for
multi-object modules is postponed until the objects are linked together.

Make sure to re-run objtool and re-link multi-object modules when
objtool is updated.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Kees Cook <keescook@chromium.org>
Acked-by: Josh Poimboeuf <jpoimboe@redhat.com>
Tested-by: Nathan Chancellor <nathan@kernel.org>
Reviewed-by: Nicolas Schier <n.schier@avm.de>
Tested-by: Sedat Dilek <sedat.dilek@gmail.com> # LLVM-14 (x86-64)
scripts/Makefile.build