Re: [PATCH] scripts/sorttable: Fix ORC unwind table sorting on big endian

From: Vasily Gorbik
Date: Tue Nov 24 2020 - 08:35:01 EST


On Sat, Nov 14, 2020 at 01:53:10PM +0100, Vasily Gorbik wrote:
> Currently when x86_64 kernel is cross compiled on big endian hardware
> ORC unwind table is not sorted correctly. Due to missing byte swaps and
> treating size as 4-byte value ORC sections sizes end up as 0 and the
> problem is silently ignored.
>
> Make ORC unwind table sorting endianness aware.
>
> Signed-off-by: Vasily Gorbik <gor@xxxxxxxxxxxxx>
> ---
> This goes on top of the patch series:
> http://lkml.kernel.org/r/cover.thread-1e2854.your-ad-here.call-01605220128-ext-6070@work.hours
>
> scripts/sorttable.h | 20 +++++++++++---------
> 1 file changed, 11 insertions(+), 9 deletions(-)

Friendly ping...