[U-Boot] [PATCH] zynq: spl: Add vectors section to linker script
Michal Simek
michal.simek at xilinx.com
Tue Aug 5 09:57:15 CEST 2014
On 08/04/2014 12:51 PM, Peter Crosthwaite wrote:
> The vectors section contains the _start symbol which is used as the
> program entry point. Add it to the linker script in same fasion as done
fashion
> 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
> 9e5f80d823e3fd2a685b10ecf02009e34b86cff9.
"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 at gmail.com>
> ---
> arch/arm/cpu/armv7/zynq/u-boot-spl.lds | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/arch/arm/cpu/armv7/zynq/u-boot-spl.lds b/arch/arm/cpu/armv7/zynq/u-boot-spl.lds
> index 0c4501e..0f2f756 100644
> --- a/arch/arm/cpu/armv7/zynq/u-boot-spl.lds
> +++ b/arch/arm/cpu/armv7/zynq/u-boot-spl.lds
> @@ -22,6 +22,7 @@ SECTIONS
> .text :
> {
> __image_copy_start = .;
> + *(.vectors)
> CPUDIR/start.o (.text*)
> *(.text*)
> } > .sram
>
Just two issues in commit message but
Tested-by: Michal Simek <michal.simek at xilinx.com>
If there is no issue from others I will apply it to zynq branch.
Thanks,
Michal
More information about the U-Boot
mailing list