On Mon, Aug 17, 2026 at 03:04:31PM +0530, Aswin Murugan wrote:
> CONFIG_REMAKE_ELF_LDSCRIPT alone leaves u-boot.elf linked with the
> toolchain's default page-size flags. Set LDFLAGS_u-boot-elf to the
> same 4K granule flags used for u-boot.bin, for any ARCH_SNAPDRAGON
> board, not just nord.
> 
> Signed-off-by: Aswin Murugan <[email protected]>
> ---
>  arch/arm/config.mk | 7 +++++++
>  1 file changed, 7 insertions(+)
> 
> diff --git a/arch/arm/config.mk b/arch/arm/config.mk
> index bce9a31e966..a609d90225b 100644
> --- a/arch/arm/config.mk
> +++ b/arch/arm/config.mk
> @@ -120,6 +120,13 @@ ifeq ($(CONFIG_ARM64),y)
>  LDFLAGS_u-boot += -z common-page-size=0x1000 -z max-page-size=0x1000
>  endif
>  
> +ifeq ($(CONFIG_ARCH_SNAPDRAGON),y)
> +# The CONFIG_REMAKE_ELF u-boot.elf link step doesn't pick up the
> +# 4K page-size flags used for u-boot.bin above, so wire them in here
> +# too. TME's IMGAUTH requires 4K-aligned ELF segments.
> +LDFLAGS_u-boot-elf += -z common-page-size=0x1000 -z max-page-size=0x1000
> +endif

This seems like a generic problem and should be in the same case as
the LDFLAGS_u-boot above, with the comment further expanded.

-- 
Tom

Attachment: signature.asc
Description: PGP signature

Reply via email to