Re: [RFC PATCH v3 2/4] objtool: x86 instruction decoder and big endian cross compiles

From: Josh Poimboeuf
Date: Fri Oct 02 2020 - 11:19:01 EST


On Thu, Oct 01, 2020 at 12:17:25AM +0200, Vasily Gorbik wrote:
> From: Martin Schwidefsky <schwidefsky@xxxxxxxxxx>
>
> Currently objtool seems to be the only tool from build tools needed
> which breaks x86 cross compilation on big endian systems. Make the x86
> instruction decoder of the objtool usable on big endian machines.
>
> Signed-off-by: Martin Schwidefsky <schwidefsky@xxxxxxxxxx>
> Co-developed-by: Vasily Gorbik <gor@xxxxxxxxxxxxx>
> Signed-off-by: Vasily Gorbik <gor@xxxxxxxxxxxxx>

Since this changes the decoder (which is shared with the kernel), please
prefix the subject with "x86/insn:" instead of "objtool".

This patch is a bit ugly, but I don't necessarily have a better idea.

Masami?

--
Josh