[U-Boot] [PATCH 3/4] ARM: tegra: check for SPL size overflow in makefile
Tom Rini
trini at ti.com
Thu Oct 18 18:27:21 CEST 2012
On Tue, Oct 16, 2012 at 03:50:08PM -0600, Stephen Warren wrote:
> From: Stephen Warren <swarren at nvidia.com>
>
> If the SPL extends beyond CONFIG_SYS_TEXT_BASE, then it will likely
> corrupt the main U-Boot binary during execution, causing the main U-Boot
> binary to fail. Check for this situation during the build to avoid
> extremely annoying and hard-to-find bugs. Note that checking the size of
> u-boot-spl.bin is not enough, since BSS size doesn't affect the size of
> u-boot-spl.bin.
>
> Signed-off-by: Stephen Warren <swarren at nvidia.com>
Can't you do this in the linker script like we do for other SPL size
constraints? Or am I just mis-reading how this is unique and that
link-time check can't be used? Thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20121018/44df933b/attachment.pgp>
More information about the U-Boot
mailing list