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 insn_list
;
20 DECLARE_HASHTABLE(insn_hash
, 20);
21 struct list_head retpoline_call_list
;
22 struct list_head static_call_list
;
23 struct list_head mcount_loc_list
;
24 bool ignore_unreachables
, c_file
, hints
, rodata
;
27 struct objtool_file
*objtool_open_read(const char *_objname
);
29 int check(struct objtool_file
*file
);
30 int orc_dump(const char *objname
);
31 int orc_create(struct objtool_file
*file
);
33 #endif /* _OBJTOOL_H */