ARM: Align image end to 8 bytes to fit DT alignment
authorMarek Vasut <marek.vasut@mailbox.org>
Sun, 18 May 2025 16:02:58 +0000 (18:02 +0200)
committerTom Rini <trini@konsulko.com>
Mon, 2 Jun 2025 23:25:35 +0000 (17:25 -0600)
commit52caad0d14a3d6de34d69929c6e795f62c623a00
tree6bce57acde77541f1a2b7f9b8cc61010c86545db
parentd45b1d4ac94710f88902adc2173d7930700e2869
ARM: Align image end to 8 bytes to fit DT alignment

Align U-Boot image end to 8 bytes to make sure DT alignment requirement
is fulfilled. This fixes a possible failure in fdt_find_separate() in
case the U-Boot image is aligned to 4 Bytes and DT is appended at the
end at already 8 Byte aligned offset.

Link: https://source.denx.de/u-boot/u-boot/-/issues/30
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
Signed-off-by: Marek Vasut <marek.vasut@mailbox.org>
arch/arm/cpu/u-boot-spl.lds
arch/arm/cpu/u-boot.lds