diff options
author | Raphael Gault <raphael.gault@arm.com> | 2020-09-04 17:30:24 +0200 |
---|---|---|
committer | Josh Poimboeuf <jpoimboe@redhat.com> | 2020-09-10 17:43:13 +0200 |
commit | d871f7b5a6a2a30f4eba577fd56941fa3657e394 (patch) | |
tree | e5eb59adf65e56f36dbd79dbfbdefa8f32751659 /tools/objtool/check.h | |
parent | objtool: Make relocation in alternative handling arch dependent (diff) | |
download | linux-d871f7b5a6a2a30f4eba577fd56941fa3657e394.tar.xz linux-d871f7b5a6a2a30f4eba577fd56941fa3657e394.zip |
objtool: Refactor jump table code to support other architectures
The way to identify jump tables and retrieve all the data necessary to
handle the different execution branches is not the same on all
architectures. In order to be able to add other architecture support,
define an arch-dependent function to process jump-tables.
Reviewed-by: Miroslav Benes <mbenes@suse.cz>
Signed-off-by: Raphael Gault <raphael.gault@arm.com>
[J.T.: Move arm64 bits out of this patch,
Have only one function to find the start of the jump table,
for now assume that the jump table format will be the same as
x86]
Signed-off-by: Julien Thierry <jthierry@redhat.com>
Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
Diffstat (limited to 'tools/objtool/check.h')
-rw-r--r-- | tools/objtool/check.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/tools/objtool/check.h b/tools/objtool/check.h index 1de1188b23cd..5ec00a4b891b 100644 --- a/tools/objtool/check.h +++ b/tools/objtool/check.h @@ -66,5 +66,4 @@ struct instruction *find_insn(struct objtool_file *file, insn->sec == sec; \ insn = list_next_entry(insn, list)) - #endif /* _CHECK_H */ |