xref: /openbmc/u-boot/arch/arm/cpu/arm1136/u-boot-spl.lds (revision 2f41ade79e5969ebea03a7dcadbeae8e03787d7e)
183d290c5STom Rini/* SPDX-License-Identifier: GPL-2.0+ */
2d41924a2SStefano Babic/*
3d41924a2SStefano Babic * (C) Copyright 2002
4d41924a2SStefano Babic * Gary Jennejohn, DENX Software Engineering, <garyj@denx.de>
5d41924a2SStefano Babic *
6d41924a2SStefano Babic * (C) Copyright 2010
7d41924a2SStefano Babic * Texas Instruments, <www.ti.com>
8d41924a2SStefano Babic *	Aneesh V <aneesh@ti.com>
9d41924a2SStefano Babic */
10d41924a2SStefano Babic
11*2f41ade7STom RiniMEMORY { .sram : ORIGIN = IMAGE_TEXT_BASE,\
12*2f41ade7STom Rini		LENGTH = IMAGE_MAX_SIZE }
13d41924a2SStefano BabicMEMORY { .sdram : ORIGIN = CONFIG_SPL_BSS_START_ADDR, \
14d41924a2SStefano Babic		LENGTH = CONFIG_SPL_BSS_MAX_SIZE }
15d41924a2SStefano Babic
16d41924a2SStefano BabicOUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
17d41924a2SStefano BabicOUTPUT_ARCH(arm)
18d41924a2SStefano BabicENTRY(_start)
19d41924a2SStefano BabicSECTIONS
20d41924a2SStefano Babic{
21d41924a2SStefano Babic	.text      :
22d41924a2SStefano Babic	{
23d41924a2SStefano Babic	__start = .;
24eeadd3feSBenoît Thébaudeau	  *(.vectors)
251a9a91dcSBenoît Thébaudeau	  arch/arm/cpu/arm1136/start.o	(.text*)
26d41924a2SStefano Babic	  *(.text*)
27d41924a2SStefano Babic	} >.sram
28d41924a2SStefano Babic
29d41924a2SStefano Babic	. = ALIGN(4);
30d41924a2SStefano Babic	.rodata : { *(SORT_BY_ALIGNMENT(.rodata*)) } >.sram
31d41924a2SStefano Babic
32d41924a2SStefano Babic	. = ALIGN(4);
33d41924a2SStefano Babic	.data : { *(SORT_BY_ALIGNMENT(.data*)) } >.sram
34d41924a2SStefano Babic	. = ALIGN(4);
35d41924a2SStefano Babic	__image_copy_end = .;
36d0b5d9daSAlbert ARIBAUD
37d0b5d9daSAlbert ARIBAUD	.end :
38d0b5d9daSAlbert ARIBAUD	{
39d0b5d9daSAlbert ARIBAUD		*(.__end)
40d0b5d9daSAlbert ARIBAUD	}
41d41924a2SStefano Babic
42d41924a2SStefano Babic	.bss :
43d41924a2SStefano Babic	{
44d41924a2SStefano Babic		. = ALIGN(4);
45d41924a2SStefano Babic		__bss_start = .;
46d41924a2SStefano Babic		*(.bss*)
47d41924a2SStefano Babic		. = ALIGN(4);
483929fb0aSSimon Glass		__bss_end = .;
49d41924a2SStefano Babic	} >.sdram
50d41924a2SStefano Babic}
51