]> Git Repo - u-boot.git/commitdiff
imx8m: Enable LTO by default
authorFabio Estevam <[email protected]>
Thu, 18 Jan 2024 15:06:39 +0000 (12:06 -0300)
committerFabio Estevam <[email protected]>
Mon, 22 Jan 2024 11:38:32 +0000 (08:38 -0300)
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]>
arch/arm/mach-imx/imx8m/Kconfig

index b1937198402fae7357a7b4fc3047a498504d8bc4..328c3e38805144a2cc108731fc0780eeccaca562 100644 (file)
@@ -5,6 +5,7 @@ config IMX8M
        select BINMAN
        select GICV3 if ARMV8_PSCI
        select HAS_CAAM
+       select LTO
        select ROM_UNIFIED_SECTIONS
        select ARMV8_CRYPTO
 
This page took 0.033978 seconds and 4 git commands to generate.