On 1/18/24 16:06, Fabio Estevam wrote:
From: Fabio Estevam <[email protected]>

In an attempt to select ARMV8_SPL_EXCEPTION_VECTORS, the SPL size
could not fit into the internal SRAM of some imx8m targets:

    aarch64:  +   imx8mm_phg
+aarch64-linux-ld.bfd: u-boot-spl section `__u_boot_list' will not fit in 
region `.sram'
+aarch64-linux-ld.bfd: region `.sram' overflowed by 1824 bytes

Select LTO to prevent that.

Signed-off-by: Fabio Estevam <[email protected]>

Reviewed-by: Marek Vasut <[email protected]>

I wouldn't mind seeing LTO enabled for all of ARM64 eventually, but that's for another patch.

Reply via email to