|
@@ -29,7 +29,7 @@
|
|
|
#include "builtin.h"
|
|
|
#include "check.h"
|
|
|
|
|
|
-bool no_fp, no_unreachable, retpoline;
|
|
|
+bool no_fp, no_unreachable, retpoline, module;
|
|
|
|
|
|
static const char * const check_usage[] = {
|
|
|
"objtool check [<options>] file.o",
|
|
@@ -40,6 +40,7 @@ const struct option check_options[] = {
|
|
|
OPT_BOOLEAN('f', "no-fp", &no_fp, "Skip frame pointer validation"),
|
|
|
OPT_BOOLEAN('u', "no-unreachable", &no_unreachable, "Skip 'unreachable instruction' warnings"),
|
|
|
OPT_BOOLEAN('r', "retpoline", &retpoline, "Validate retpoline assumptions"),
|
|
|
+ OPT_BOOLEAN('m', "module", &module, "Indicates the object will be part of a kernel module"),
|
|
|
OPT_END(),
|
|
|
};
|
|
|
|