Linux 5.6.12
[linux/fpc-iii.git] / tools / objtool / special.h
blob35061530e46e8dac222d7364b04c93a02e439d17
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3 * Copyright (C) 2015 Josh Poimboeuf <jpoimboe@redhat.com>
4 */
6 #ifndef _SPECIAL_H
7 #define _SPECIAL_H
9 #include <stdbool.h>
10 #include "elf.h"
12 struct special_alt {
13 struct list_head list;
15 bool group;
16 bool skip_orig;
17 bool skip_alt;
18 bool jump_or_nop;
20 struct section *orig_sec;
21 unsigned long orig_off;
23 struct section *new_sec;
24 unsigned long new_off;
26 unsigned int orig_len, new_len; /* group only */
29 int special_get_alts(struct elf *elf, struct list_head *alts);
31 #endif /* _SPECIAL_H */