u-boot/arch/arm/cpu
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
..
arm720t arm720: Remove CONFIG_ARM7_REVD 2012-10-26 22:39:03 +02:00
arm920t arm: ks8695: use defined constants for UART 2012-10-26 23:32:11 +02:00
arm925t arm: Fixed the offset for the no relocation. 2012-10-04 16:41:15 +02:00
arm926ejs Merge remote-tracking branch 'u-boot-atmel/master' 2012-10-26 07:54:25 +02:00
arm946es arm: Fixed the offset for the no relocation. 2012-10-04 16:41:15 +02:00
arm1136 mx35: Fix eSDHC clocks 2012-10-16 12:35:10 +02:00
arm1176 dm: wdt: arm: Move tnetv107x into drivers/watchdog/ 2012-10-18 06:52:02 +02:00
arm_intcm arm: Fixed the offset for the no relocation. 2012-10-04 16:41:15 +02:00
armv7 Merge remote-tracking branch 'u-boot-imx/master' 2012-10-27 11:43:17 +02:00
ixp common: Discard the __u_boot_cmd section 2012-10-22 08:29:42 -07:00
pxa pxa: Add code to examine cpu model and revision 2012-10-15 11:54:07 -07:00
s3c44b0 arm: Fixed the offset for the no relocation. 2012-10-04 16:41:15 +02:00
sa1100 arm: Fixed the offset for the no relocation. 2012-10-04 16:41:15 +02:00
tegra-common tegra: clean up board include hell 2012-10-15 11:54:07 -07:00
tegra20-common tegra: add funcmux entry for NAND attached to KBC 2012-10-15 11:54:07 -07:00
u-boot.lds ARM: enhance u-boot.lds to detect over-sized SPL 2012-10-29 09:07:05 -07:00