objtool,x86: Rewrite LEA decode
authorPeter Zijlstra <peterz@infradead.org>
Tue, 9 Feb 2021 20:29:16 +0000 (21:29 +0100)
committerIngo Molnar <mingo@kernel.org>
Sat, 6 Mar 2021 11:44:23 +0000 (12:44 +0100)
commit2ee0c363492f1acc1082125218e6a80c0d7d502b
tree23473e8d60089209ec750310462806c2b4fe2304
parentd473b18b2ef62563fb874f9cae6e123f99129e3f
objtool,x86: Rewrite LEA decode

Current LEA decoding is a bunch of special cases, properly decode the
instruction, with exception of full SIB and RIP-relative modes.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Acked-by: Josh Poimboeuf <jpoimboe@redhat.com>
Tested-by: Nick Desaulniers <ndesaulniers@google.com>
Link: https://lkml.kernel.org/r/20210211173627.143250641@infradead.org
tools/objtool/arch/x86/decode.c