1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * Copyright (C) 2015 Josh Poimboeuf <jpoimboe@redhat.com>
13 #define C_JUMP_TABLE_SECTION ".rodata..c_jump_table"
16 struct list_head list
;
23 struct section
*orig_sec
;
24 unsigned long orig_off
;
26 struct section
*new_sec
;
27 unsigned long new_off
;
29 unsigned int orig_len
, new_len
; /* group only */
32 int special_get_alts(struct elf
*elf
, struct list_head
*alts
);
34 void arch_handle_alternative(unsigned short feature
, struct special_alt
*alt
);
36 bool arch_support_alt_relocation(struct special_alt
*special_alt
,
37 struct instruction
*insn
,
39 struct reloc
*arch_find_switch_table(struct objtool_file
*file
,
40 struct instruction
*insn
);
41 #endif /* _SPECIAL_H */