From b490f45362002fef57996388e395efc974b013f4 Mon Sep 17 00:00:00 2001 From: Miroslav Benes Date: Fri, 24 Apr 2020 16:30:42 +0200 Subject: 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 Signed-off-by: Miroslav Benes Signed-off-by: Peter Zijlstra (Intel) Reviewed-by: Miroslav Benes Acked-by: Josh Poimboeuf Link: https://lkml.kernel.org/r/20200428191659.913283807@infradead.org --- tools/objtool/arch.h | 1 - 1 file changed, 1 deletion(-) (limited to 'tools/objtool/arch.h') diff --git a/tools/objtool/arch.h b/tools/objtool/arch.h index 25dd4a9b38b2..cd118eb4248a 100644 --- a/tools/objtool/arch.h +++ b/tools/objtool/arch.h @@ -19,7 +19,6 @@ enum insn_type { INSN_CALL, INSN_CALL_DYNAMIC, INSN_RETURN, - INSN_EXCEPTION_RETURN, INSN_CONTEXT_SWITCH, INSN_BUG, INSN_NOP, -- cgit v1.2.3