Skip to content

Commit 876a4bc

Browse files
jpoimboeingomolnar
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 <jpoimboe@kernel.org> Signed-off-by: Ingo Molnar <mingo@kernel.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Link: https://lore.kernel.org/r/05414246a0124db2f21b0d071b652aa9043d039d.1742852847.git.jpoimboe@kernel.org
1 parent 24fe172 commit 876a4bc

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

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)