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 hack_skylake;
18 	bool ibt;
19 	bool mcount;
20 	bool noinstr;
21 	bool orc;
22 	bool retpoline;
23 	bool rethunk;
24 	bool unret;
25 	bool sls;
26 	bool stackval;
27 	bool static_call;
28 	bool uaccess;
29 	int prefix;
30 	bool cfi;
31 
32 	/* options: */
33 	bool backtrace;
34 	bool backup;
35 	bool dryrun;
36 	bool link;
37 	bool mnop;
38 	bool module;
39 	bool no_unreachable;
40 	bool sec_address;
41 	bool stats;
42 };
43 
44 extern struct opts opts;
45 
46 extern int cmd_parse_options(int argc, const char **argv, const char * const usage[]);
47 
48 extern int objtool_run(int argc, const char **argv);
49 
50 #endif /* _BUILTIN_H */
51