]> git.ipfire.org Git - thirdparty/u-boot.git/commit - arch/arm/mach-imx/imx8m/Kconfig
imx8m: Enable LTO by default
authorFabio Estevam <festevam@denx.de>
Thu, 18 Jan 2024 15:06:39 +0000 (12:06 -0300)
committerFabio Estevam <festevam@gmail.com>
Mon, 22 Jan 2024 11:38:32 +0000 (08:38 -0300)
commitf8cebb4f789c9950caf55a0b73e88049e7a1c3a3
tree17e56359c69ad791b3d8cc2cad3e595d48b2ed51
parent3c04fcf3137d5f694d52b8f355373e4baabe5f78
imx8m: Enable LTO by default

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 <festevam@denx.de>
Reviewed-by: Marek Vasut <marex@denx.de>
arch/arm/mach-imx/imx8m/Kconfig