Merge tag 'powerpc-5.11-3' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc...
[linux/fpc-iii.git] / tools / objtool / objtool.h
blob4125d4578b23ba092bc03a6f2de5bee16b3fcf27
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3 * Copyright (C) 2020 Matt Helsley <mhelsley@vmware.com>
4 */
6 #ifndef _OBJTOOL_H
7 #define _OBJTOOL_H
9 #include <stdbool.h>
10 #include <linux/list.h>
11 #include <linux/hashtable.h>
13 #include "elf.h"
15 #define __weak __attribute__((weak))
17 struct objtool_file {
18 struct elf *elf;
19 struct list_head insn_list;
20 DECLARE_HASHTABLE(insn_hash, 20);
21 struct list_head static_call_list;
22 bool ignore_unreachables, c_file, hints, rodata;
25 struct objtool_file *objtool_open_read(const char *_objname);
27 int check(struct objtool_file *file);
28 int orc_dump(const char *objname);
29 int create_orc(struct objtool_file *file);
30 int create_orc_sections(struct objtool_file *file);
32 #endif /* _OBJTOOL_H */