Skip to content

Commit 876a4bc

Browse files
jpoimboeIngo Molnar
authored andcommitted
objtool: Remove --no-unreachable for noinstr-only vmlinux.o runs
For (!X86_KERNEL_IBT && !LTO_CLANG && NOINSTR_VALIDATION), objtool runs on both translation units and vmlinux.o. The vmlinux.o run only does noinstr/noret validation. In that case --no-unreachable has no effect. Remove it. Note that for ((X86_KERNEL_IBT || LTO_CLANG) && KCOV), --no-unreachable still gets set in objtool-args-y by scripts/Makefile.lib. Signed-off-by: Josh Poimboeuf <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Cc: Linus Torvalds <[email protected]> Link: https://lore.kernel.org/r/05414246a0124db2f21b0d071b652aa9043d039d.1742852847.git.jpoimboe@kernel.org
1 parent 24fe172 commit 876a4bc

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

scripts/Makefile.vmlinux_o

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ else
4444
vmlinux-objtool-args-$(CONFIG_OBJTOOL_WERROR) += --Werror
4545
endif
4646

47-
vmlinux-objtool-args-$(CONFIG_GCOV_KERNEL) += --no-unreachable
4847
vmlinux-objtool-args-$(CONFIG_NOINSTR_VALIDATION) += --noinstr \
4948
$(if $(or $(CONFIG_MITIGATION_UNRET_ENTRY),$(CONFIG_MITIGATION_SRSO)), --unret)
5049

0 commit comments

Comments
 (0)