]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
zynq: spl: Add vectors section to linker script
authorPeter Crosthwaite <crosthwaitepeter@gmail.com>
Mon, 4 Aug 2014 10:51:09 +0000 (20:51 +1000)
committerMichal Simek <michal.simek@xilinx.com>
Tue, 5 Aug 2014 07:57:20 +0000 (09:57 +0200)
The vectors section contains the _start symbol which is used as the
program entry point. Add it to the linker script in same fashion as done
for regular u-boot. This allows for correct generation of an spl elf
with a non-zero entry point.

Similar change was applied to sunxi platform in
"sunxi: Fix u-boot-spl.lds to refer to .vectors"
(sha1: 9e5f80d823e3fd2a685b10ecf02009e34b86cff9).

This also allows for placement of the vector table at the hivecs
location by setting the TEXT_BASE to 0xffff0000.

Signed-off-by: Peter Crosthwaite <crosthwaite.peter@gmail.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
arch/arm/cpu/armv7/zynq/u-boot-spl.lds

index c0963e6c1471275f00c9cbd5cfb6edbf1ff61f9a..a78969129d44b3128650972f03e5e9109642df15 100644 (file)
@@ -19,6 +19,7 @@ SECTIONS
        .text :
        {
                __image_copy_start = .;
+               *(.vectors)
                CPUDIR/start.o (.text*)
                *(.text*)
        }