Re: [PATCH v1 14/14] arm64: qcom: define LDFLAGS_u-boot-elf for 4K ELF granules

Tom Rini <[email protected]>
Newsgroups gmane.comp.boot-loaders.u-boot.general,gmane.comp.boot-loaders.u-boot
Message-ID <20260817190209.GS3297518@bill-the-cat>
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
signature.asc (application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE-----

iHUEABYKAB0WIQTzzqh0PWDgGS+bTHor4qD1Cr/kCgUCaoNasQAKCRAr4qD1Cr/k
ClmbAPkBEibH8xp8BPoTXZhj2mqmia6EE/kXf+qb53aTsUyPlQD+Je7m4vppiZOz
4G8Pp3o1+/Ps+SF3c6ddoNkKk7Ab2gM=
=GlEE
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.