[PATCH v2 12/14] arm64: image: Remove endianness handling for generating image header

Will Deacon will at kernel.org
Wed Sep 9 05:28:20 PDT 2026


On Mon, Sep 07, 2026 at 05:37:23PM +0100, Will Deacon wrote:
> Since big-endian support for arm64 depends on BROKEN, we don't need to
> bother jumping through hoops to generate a little-endian kernel image
> header for a big-endian target. We can just ignore the possibility
> instead.
> 
> Acked-by: Catalin Marinas <catalin.marinas at arm.com>
> Acked-by: Arnd Bergmann <arnd at arndb.de>
> Acked-by: Marc Zyngier <maz at kernel.org>
> Acked-by: Eric Biggers <ebiggers at kernel.org>
> Signed-off-by: Will Deacon <will at kernel.org>
> ---
>  arch/arm64/include/asm/assembler.h | 11 -----------
>  arch/arm64/kernel/head.S           |  4 ++--
>  arch/arm64/kernel/image.h          | 24 ++----------------------
>  3 files changed, 4 insertions(+), 35 deletions(-)

I think this is another patch I should drop from the series.

I was under the wrong impression that we were using two 32-bit words for
symbol addresses because of endianness quirks in the linker, but digging
into the original rationale from Ard [1], this is more fundamental to
the way in which the PIE toolchain handles ABS64 symbol relocations.

Will

[1] https://lore.kernel.org/all/CAKv+Gu8vdk-9N_VVG6XWYLp1SM9ynfcsbxwk2xx1mXYq7qN0Cg@mail.gmail.com/



More information about the linux-arm-kernel mailing list