summaryrefslogtreecommitdiff
path: root/tools/objtool/builtin.h
diff options
context:
space:
mode:
authorSami Tolvanen <samitolvanen@google.com>2020-09-30 14:36:59 -0700
committerKees Cook <keescook@chromium.org>2021-02-23 12:46:57 -0800
commit41425ebe20245c99b44d6ba0f017be9bfc28414f (patch)
tree41ab9f3adf71fb17c56e6975214088e4631bafde /tools/objtool/builtin.h
parent6dafca97803309c3cb5148d449bfa711e41ddef2 (diff)
objtool: Split noinstr validation from --vmlinux
This change adds a --noinstr flag to objtool to allow us to specify that we're processing vmlinux.o without also enabling noinstr validation. This is needed to avoid false positives with LTO when we run objtool on vmlinux.o without CONFIG_DEBUG_ENTRY. Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
Diffstat (limited to 'tools/objtool/builtin.h')
-rw-r--r--tools/objtool/builtin.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/objtool/builtin.h b/tools/objtool/builtin.h
index 94565a72b701..2502bb27de17 100644
--- a/tools/objtool/builtin.h
+++ b/tools/objtool/builtin.h
@@ -8,7 +8,7 @@
#include <subcmd/parse-options.h>
extern const struct option check_options[];
-extern bool no_fp, no_unreachable, retpoline, module, backtrace, uaccess, stats, validate_dup, vmlinux, mcount;
+extern bool no_fp, no_unreachable, retpoline, module, backtrace, uaccess, stats, validate_dup, vmlinux, mcount, noinstr;
extern int cmd_check(int argc, const char **argv);
extern int cmd_orc(int argc, const char **argv);