[PATCH] arm64: versal: Fix LTO for mini_ospi/mini_qspi

Tom Rini trini at konsulko.com
Mon Dec 8 19:54:54 CET 2025


On Mon, 08 Dec 2025 14:54:24 +0100, Michal Simek wrote:

> With LTO enabled, mini U-Boot was hanging during reloc_fdt().
> The initial stack pointer was placed too low, and the FDT memcpy
> destination was carved only 4KB above it. This left insufficient
> margin, causing the FDT copy to overwrite the live early stack
> and corrupt execution before relocation.
> 
> To fix this, increase the malloc heap from 8KB to 12KB and raise the
> initial stack pointer by 4KB. Together these adjustments increase
> the separation between the early stack and the FDT region during
> the pre-relocation phase, eliminating the overlap and fixing the
> hang on mini builds (QSPI/OSPI).
> 
> [...]

Applied to u-boot/master, thanks!

[1/1] arm64: versal: Fix LTO for mini_ospi/mini_qspi
      commit: f2c148e0df3a50c74130b4cd0c9bd3d02ba375b2
-- 
Tom




More information about the U-Boot mailing list