u-boot/arch
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
..
arm ARM: enhance u-boot.lds to detect over-sized SPL 2012-10-29 09:07:05 -07:00
avr32 common: Discard the __u_boot_cmd section 2012-10-22 08:29:42 -07:00
blackfin common: Discard the __u_boot_cmd section 2012-10-22 08:29:42 -07:00
m68k ColdFire: Add MCF5441x CPU support 2012-10-24 22:27:46 +08:00
microblaze common: Discard the __u_boot_cmd section 2012-10-22 08:29:42 -07:00
mips common: Convert the U-Boot commands to LG-arrays 2012-10-22 08:29:42 -07:00
nds32 common: Discard the __u_boot_cmd section 2012-10-22 08:29:42 -07:00
nios2 common: Discard the __u_boot_cmd section 2012-10-22 08:29:42 -07:00
openrisc openrisc: Change bi_baudrate and global data baudrate to int 2012-10-19 15:25:45 -07:00
powerpc mpc83xx: add support for mpc8309 2012-10-23 15:23:26 -05:00
sandbox common: Discard the __u_boot_cmd section 2012-10-22 08:29:42 -07:00
sh common: Discard the __u_boot_cmd section 2012-10-22 08:29:42 -07:00
sparc common: Convert the U-Boot commands to LG-arrays 2012-10-22 08:29:42 -07:00
x86 common: Discard the __u_boot_cmd section 2012-10-22 08:29:42 -07:00
.gitignore update include/asm/ gitignore after move 2010-05-07 00:17:30 +02:00