objtool/LoongArch: Enable objtool to be built
[linux-2.6-block.git] / tools / objtool / arch / loongarch / include / arch / special.h
CommitLineData
e8aff71c
TY
1/* SPDX-License-Identifier: GPL-2.0-or-later */
2#ifndef _OBJTOOL_ARCH_SPECIAL_H
3#define _OBJTOOL_ARCH_SPECIAL_H
4
5/*
6 * See more info about struct exception_table_entry
7 * in arch/loongarch/include/asm/extable.h
8 */
9#define EX_ENTRY_SIZE 12
10#define EX_ORIG_OFFSET 0
11#define EX_NEW_OFFSET 4
12
13/*
14 * See more info about struct jump_entry
15 * in include/linux/jump_label.h
16 */
17#define JUMP_ENTRY_SIZE 16
18#define JUMP_ORIG_OFFSET 0
19#define JUMP_NEW_OFFSET 4
20#define JUMP_KEY_OFFSET 8
21
22/*
23 * See more info about struct alt_instr
24 * in arch/loongarch/include/asm/alternative.h
25 */
26#define ALT_ENTRY_SIZE 12
27#define ALT_ORIG_OFFSET 0
28#define ALT_NEW_OFFSET 4
29#define ALT_FEATURE_OFFSET 8
30#define ALT_ORIG_LEN_OFFSET 10
31#define ALT_NEW_LEN_OFFSET 11
32
33#endif /* _OBJTOOL_ARCH_SPECIAL_H */