u-boot/arch/arm
Simon Glass dde3b70dcf arm: add a common .lds link script
Most ARM CPUs use a very similar link script. This adds a basic
script that can be used by most CPUs.

Two new symbols are introduced which are intended to eventually be
defined on all architectures to make things easier for generic relocation
and reduce special-case code for each architecture:

__image_copy_start is the start of the text area (equivalent to the
existing _start on ARM). It marks the start of the region which must be
copied to a new location during relocation. This symbol is called
__text_start on x86 and microblaze.

__image_copy_end is the end of the region which must be copied to a new
location during relocation. It is normally equal to the start of the BSS
region, but this can vary in some cases (SPL?). Making this an explicit
symbol on its own removes any ambiguity and permits common code to always
do the right thing.

This new script makes use of CPUDIR, now defined by both Makefile and
spl/Makefile, to find the directory containing the start.o object file,
which is always placed first in the image.

To permit MMU setup prior to relocation (as used by pxa) we add an area
to the link script which contains space for this. This is taken
from commit 7f4cfcf. CPUs can put the contents in there using their
start.S file. BTW, shouldn't that area be 16KB-aligned?

Signed-off-by: Simon Glass <sjg@chromium.org>
2012-03-30 07:43:44 +02:00
..
cpu arm: add a common .lds link script 2012-03-30 07:43:44 +02:00
dts tegra: fdt: i2c: Add extra I2C bindings for U-Boot 2012-03-29 08:12:50 +02:00
include/asm tegra: i2c: Add I2C driver 2012-03-29 08:12:50 +02:00
lib arm: Check for valid FDT after console is up 2012-03-29 08:12:49 +02:00
config.mk arm: Remove unneeded setting of LDCSRIPT 2012-03-30 07:43:40 +02:00