Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

authored by

Josh Poimboeuf and committed by
Ingo Molnar
876a4bce 24fe172b

-1
-1
scripts/Makefile.vmlinux_o
··· 44 44 vmlinux-objtool-args-$(CONFIG_OBJTOOL_WERROR) += --Werror 45 45 endif 46 46 47 - vmlinux-objtool-args-$(CONFIG_GCOV_KERNEL) += --no-unreachable 48 47 vmlinux-objtool-args-$(CONFIG_NOINSTR_VALIDATION) += --noinstr \ 49 48 $(if $(or $(CONFIG_MITIGATION_UNRET_ENTRY),$(CONFIG_MITIGATION_SRSO)), --unret) 50 49