Matt Helsley | d37c90d | 2020-05-19 13:55:32 -0700 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
| 2 | /* |
| 3 | * Copyright (C) 2020 Matt Helsley <mhelsley@vmware.com> |
| 4 | */ |
| 5 | |
| 6 | #ifndef _OBJTOOL_H |
| 7 | #define _OBJTOOL_H |
| 8 | |
| 9 | #include <stdbool.h> |
| 10 | #include <linux/list.h> |
| 11 | #include <linux/hashtable.h> |
| 12 | |
| 13 | #include "elf.h" |
| 14 | |
| 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; |
| 20 | }; |
| 21 | |
Matt Helsley | 0decf1f | 2020-05-19 13:55:33 -0700 | [diff] [blame] | 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); |
| 26 | |
Matt Helsley | d37c90d | 2020-05-19 13:55:32 -0700 | [diff] [blame] | 27 | #endif /* _OBJTOOL_H */ |