diff options
author | Peter Zijlstra <peterz@infradead.org> | 2021-03-26 18:12:04 +0300 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2021-04-02 13:43:02 +0300 |
commit | 530b4ddd9dd92b263081f5c7786d39a8129c8b2d (patch) | |
tree | 668abefc52613ad44949bbf1233b098b1e19a0f4 /tools/objtool/arch/x86/decode.c | |
parent | bcb1b6ff39da7e8a6a986eb08126fba2b5e13c32 (diff) | |
download | linux-530b4ddd9dd92b263081f5c7786d39a8129c8b2d.tar.xz |
objtool: Handle per arch retpoline naming
The __x86_indirect_ naming is obviously not generic. Shorten to allow
matching some additional magic names later.
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Miroslav Benes <mbenes@suse.cz>
Link: https://lkml.kernel.org/r/20210326151259.630296706@infradead.org
Diffstat (limited to 'tools/objtool/arch/x86/decode.c')
-rw-r--r-- | tools/objtool/arch/x86/decode.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/objtool/arch/x86/decode.c b/tools/objtool/arch/x86/decode.c index ba9ebff7e8f7..782894eb351a 100644 --- a/tools/objtool/arch/x86/decode.c +++ b/tools/objtool/arch/x86/decode.c @@ -648,3 +648,8 @@ int arch_decode_hint_reg(struct instruction *insn, u8 sp_reg) return 0; } + +bool arch_is_retpoline(struct symbol *sym) +{ + return !strncmp(sym->name, "__x86_indirect_", 15); +} |