1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3  * Copyright (C) 2015 Josh Poimboeuf <jpoimboe@redhat.com>
4  */
5 #ifndef _BUILTIN_H
6 #define _BUILTIN_H
7 
8 #include <subcmd/parse-options.h>
9 
10 extern const struct option check_options[];
11 
12 struct opts {
13 	/* actions: */
14 	bool dump_orc;
15 	bool hack_jump_label;
16 	bool hack_noinstr;
17 	bool ibt;
18 	bool mcount;
19 	bool noinstr;
20 	bool orc;
21 	bool retpoline;
22 	bool rethunk;
23 	bool unret;
24 	bool sls;
25 	bool stackval;
26 	bool static_call;
27 	bool uaccess;
28 
29 	/* options: */
30 	bool backtrace;
31 	bool backup;
32 	bool dryrun;
33 	bool link;
34 	bool module;
35 	bool no_unreachable;
36 	bool sec_address;
37 	bool stats;
38 };
39 
40 extern struct opts opts;
41 
42 extern int cmd_parse_options(int argc, const char **argv, const char * const usage[]);
43 
44 extern int objtool_run(int argc, const char **argv);
45 
46 #endif /* _BUILTIN_H */
47