Re: [PATCH] objtool: fix bytes check of lea's rex_prefix

From: Josh Poimboeuf
Date: Mon Dec 05 2016 - 15:25:15 EST


On Mon, Dec 05, 2016 at 11:55:51AM +0100, Jiri Slaby wrote:
> For the "lea %(rsp), %rbp" case, we check if there is a rex_prefix. But
> we check "bytes" which is insn_byte_t[4] in rex_prefix (insn_field
> structure). Therefore, the check is always true.
>
> Instead, check nbytes which is the right one.
>
> Signed-off-by: Jiri Slaby <jslaby@xxxxxxx>
> Cc: Josh Poimboeuf <jpoimboe@xxxxxxxxxx>

Acked-by: Josh Poimboeuf <jpoimboe@xxxxxxxxxx>