Commit 489e355b authored by Josh Poimboeuf's avatar Josh Poimboeuf Committed by Peter Zijlstra

objtool: Add HAVE_NOINSTR_VALIDATION

Remove CONFIG_NOINSTR_VALIDATION's dependency on HAVE_OBJTOOL, since
other arches might want to implement objtool without it.
Signed-off-by: default avatarJosh Poimboeuf <jpoimboe@redhat.com>
Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: default avatarMiroslav Benes <mbenes@suse.cz>
Link: https://lkml.kernel.org/r/488e94f69db4df154499bc098573d90e5db1c826.1650300597.git.jpoimboe@redhat.com
parent 0f620cef
...@@ -1038,6 +1038,9 @@ config HAVE_JUMP_LABEL_HACK ...@@ -1038,6 +1038,9 @@ config HAVE_JUMP_LABEL_HACK
config HAVE_NOINSTR_HACK config HAVE_NOINSTR_HACK
bool bool
config HAVE_NOINSTR_VALIDATION
bool
config HAVE_STACK_VALIDATION config HAVE_STACK_VALIDATION
bool bool
help help
......
...@@ -233,6 +233,7 @@ config X86 ...@@ -233,6 +233,7 @@ config X86
select HAVE_MOVE_PUD select HAVE_MOVE_PUD
select HAVE_NOINSTR_HACK if HAVE_OBJTOOL select HAVE_NOINSTR_HACK if HAVE_OBJTOOL
select HAVE_NMI select HAVE_NMI
select HAVE_NOINSTR_VALIDATION if HAVE_OBJTOOL
select HAVE_OBJTOOL if X86_64 select HAVE_OBJTOOL if X86_64
select HAVE_OPTPROBES select HAVE_OPTPROBES
select HAVE_PCSPKR_PLATFORM select HAVE_PCSPKR_PLATFORM
......
...@@ -502,7 +502,7 @@ config STACK_VALIDATION ...@@ -502,7 +502,7 @@ config STACK_VALIDATION
config NOINSTR_VALIDATION config NOINSTR_VALIDATION
bool bool
depends on HAVE_OBJTOOL && DEBUG_ENTRY depends on HAVE_NOINSTR_VALIDATION && DEBUG_ENTRY
select OBJTOOL select OBJTOOL
default y default y
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment