u-boot/arch/arm
Stephen Warren 2b7818d49f ARM: enhance u-boot.lds to detect over-sized SPL
Add an ASSERT() to u-boot.lds to detect an SPL that doesn't fit within
SPL_TEXT_BASE..SPL_MAX_SIZE.

Different .lds files implement this check in two possible ways:
1) An ASSERT() like this
2) Defining a MEMORY region of size SPL_MAX_SIZE, and re-directing all
   linker output into that region. Since u-boot.lds is used for both
   SPL and main U-Boot, this would entail only sometimes defining a
   MEMORY region, and only sometimes performing that redirection, and
   hence option (1) was deemed much simpler, and hence implemented.

Note that this causes build failures at least for NVIDIA Tegra Seaboard
and Ventana. However, these are legitimate; the SPL doesn't fit within
the required space, and this does cause runtime issues.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Simon Glass <sjg@chromium.org>
Acked-by: Allen Martin <amartin@nvidia.com>
Acked-by: Tom Rini <trini@ti.com>
Tested-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Tom Warren <twarren@nvidia.com>
2012-10-29 09:07:05 -07:00
..
cpu ARM: enhance u-boot.lds to detect over-sized SPL 2012-10-29 09:07:05 -07:00
dts tegra: fdt: Add NAND controller binding and definitions 2012-09-07 13:54:30 -07:00
imx-common Merge remote-tracking branch 'u-boot-imx/master' 2012-10-27 11:43:17 +02:00
include/asm Merge remote-tracking branch 'u-boot-imx/master' 2012-10-27 11:43:17 +02:00
lib ARM : Remove unused CONFIG_DRIVER_SMC91111, CONFIG_DRIVER_LAN91C96 2012-10-22 08:33:52 -07:00
config.mk arm: work around assembler bug 2012-10-04 14:19:04 +02:00