[PATCH v2 2/2] ARM: OMAP2+: Pad SPL binary to 8-byte alignment before DTB
Marek Vasut
marek.vasut at mailbox.org
Thu Jan 15 01:02:41 CET 2026
On 1/14/26 3:17 PM, Tom Rini wrote:
Hello Tom,
>>> OK. And why can't we make that check at $sym rounded up, and ensure our
>>> build targets pad? Going back to the commit message here, it's easy to
>>> tell the linker to place $sym at the right spot, but it's hard to make
>>> sure the output is padded. So having typed all that, maybe we need to
>>> do:
>>> d) Update linker scripts to ALIGN(8) the above symbols and have the make
>>> targets use dd to ensure padding prior to concatenation
>>> ?
>> d) looks like what we should do, yes
>
> Poking at this harder, I'm not actually sure we need to use dd at all,
> but we do need to fix our linker scripts, and then going back to when
> Ilias reworked and cleaned up a bunch of them, get the changes reviewed
> by the toolchain experts he got ahold of :)
I wonder if LD can always guarantee trailing alignment of the binary. If
it can, then yes, dd would only be obscuring alignment problems and
trailing DT look up failures which are hard to debug. It would be nice
to drop the dd part, but I am not sure if we are able to do it reliably.
More information about the U-Boot
mailing list