Merge tag 'for-5.8/dm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/device...
[linux/fpc-iii.git] / tools / objtool / objtool.h
blob528028a668165e89947b0b719c5d0739a8e85963
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 struct objtool_file {
16 struct elf *elf;
17 struct list_head insn_list;
18 DECLARE_HASHTABLE(insn_hash, 20);
19 bool ignore_unreachables, c_file, hints, rodata;
22 int check(const char *objname, bool orc);
23 int orc_dump(const char *objname);
24 int create_orc(struct objtool_file *file);
25 int create_orc_sections(struct objtool_file *file);
27 #endif /* _OBJTOOL_H */