]> git.ipfire.org Git - people/arne_f/kernel.git/blobdiff - tools/objtool/builtin-check.c
objtool: Add retpoline validation
[people/arne_f/kernel.git] / tools / objtool / builtin-check.c
index 57254f5b2779fb02276f00eb82401a05eaaabeb0..dd6bcd6097f5171eaa50330244c52b5600cf012c 100644 (file)
@@ -29,7 +29,7 @@
 #include "builtin.h"
 #include "check.h"
 
-bool no_fp, no_unreachable;
+bool no_fp, no_unreachable, retpoline;
 
 static const char * const check_usage[] = {
        "objtool check [<options>] file.o",
@@ -39,6 +39,7 @@ static const char * const check_usage[] = {
 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_END(),
 };
 
@@ -53,5 +54,5 @@ int cmd_check(int argc, const char **argv)
 
        objname = argv[0];
 
-       return check(objname, no_fp, no_unreachable, false);
+       return check(objname, false);
 }