1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * Copyright (C) 2020 Matt Helsley <mhelsley@vmware.com>
10 #include <linux/list.h>
11 #include <linux/hashtable.h>
13 #include <objtool/elf.h>
15 #define __weak __attribute__((weak))
19 struct list_head targets;
24 struct list_head insn_list;
25 DECLARE_HASHTABLE(insn_hash, 20);
26 struct list_head retpoline_call_list;
27 struct list_head return_thunk_list;
28 struct list_head static_call_list;
29 struct list_head mcount_loc_list;
30 struct list_head endbr_list;
31 bool ignore_unreachables, hints, rodata;
33 unsigned int nr_endbr;
34 unsigned int nr_endbr_int;
36 unsigned long jl_short, jl_long;
37 unsigned long jl_nop_short, jl_nop_long;
39 struct pv_state *pv_ops;
42 struct objtool_file *objtool_open_read(const char *_objname);
44 void objtool_pv_add(struct objtool_file *file, int idx, struct symbol *func);
46 int check(struct objtool_file *file);
47 int orc_dump(const char *objname);
48 int orc_create(struct objtool_file *file);
50 #endif /* _OBJTOOL_H */