aboutsummaryrefslogtreecommitdiffstats
path: root/tools/objtool/elf.h
diff options
context:
space:
mode:
authorMiroslav Benes <mbenes@suse.cz>2020-04-24 16:30:42 +0200
committerPeter Zijlstra <peterz@infradead.org>2020-04-30 20:14:33 +0200
commitb490f45362002fef57996388e395efc974b013f4 (patch)
tree2c436e0e83e3c8af5ebaac541352fd0b8ed494db /tools/objtool/elf.h
parentobjtool: Remove INSN_STACK (diff)
downloadlinux-dev-b490f45362002fef57996388e395efc974b013f4.tar.xz
linux-dev-b490f45362002fef57996388e395efc974b013f4.zip
objtool: Move the IRET hack into the arch decoder
Quoting Julien: "And the other suggestion is my other email was that you don't even need to add INSN_EXCEPTION_RETURN. You can keep IRET as INSN_CONTEXT_SWITCH by default and x86 decoder lookups the symbol conaining an iret. If it's a function symbol, it can just set the type to INSN_OTHER so that it caries on to the next instruction after having handled the stack_op." Suggested-by: Julien Thierry <jthierry@redhat.com> Signed-off-by: Miroslav Benes <mbenes@suse.cz> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Reviewed-by: Miroslav Benes <mbenes@suse.cz> Acked-by: Josh Poimboeuf <jpoimboe@redhat.com> Link: https://lkml.kernel.org/r/20200428191659.913283807@infradead.org
Diffstat (limited to 'tools/objtool/elf.h')
-rw-r--r--tools/objtool/elf.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/objtool/elf.h b/tools/objtool/elf.h
index 5e76ac38cf99..9d6bb072849c 100644
--- a/tools/objtool/elf.h
+++ b/tools/objtool/elf.h
@@ -124,7 +124,7 @@ struct section *find_section_by_name(const struct elf *elf, const char *name);
struct symbol *find_func_by_offset(struct section *sec, unsigned long offset);
struct symbol *find_symbol_by_offset(struct section *sec, unsigned long offset);
struct symbol *find_symbol_by_name(const struct elf *elf, const char *name);
-struct symbol *find_symbol_containing(struct section *sec, unsigned long offset);
+struct symbol *find_symbol_containing(const struct section *sec, unsigned long offset);
struct rela *find_rela_by_dest(const struct elf *elf, struct section *sec, unsigned long offset);
struct rela *find_rela_by_dest_range(const struct elf *elf, struct section *sec,
unsigned long offset, unsigned int len);