1/*
2 * (C) Copyright 2012
3 * Allwinner Technology Co., Ltd. <www.allwinnertech.com>
4 * Tom Cubie <tangliang@allwinnertech.com>
5 *
6 * Based on omap-common/u-boot-spl.lds:
7 *
8 * (C) Copyright 2002
9 * Gary Jennejohn, DENX Software Engineering, <garyj@denx.de>
10 *
11 * (C) Copyright 2010
12 * Texas Instruments, <www.ti.com>
13 *	Aneesh V <aneesh@ti.com>
14 *
15 * SPDX-License-Identifier:	GPL-2.0+
16 */
17MEMORY { .sram : ORIGIN = CONFIG_SPL_TEXT_BASE,\
18		LENGTH = CONFIG_SPL_MAX_SIZE }
19MEMORY { .sdram : ORIGIN = CONFIG_SPL_BSS_START_ADDR, \
20		LENGTH = CONFIG_SPL_BSS_MAX_SIZE }
21
22OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
23OUTPUT_ARCH(arm)
24ENTRY(_start)
25SECTIONS
26{
27	.text      :
28	{
29		__start = .;
30		*(.vectors)
31		arch/arm/cpu/armv7/start.o	(.text)
32		*(.text*)
33	} > .sram
34
35	. = ALIGN(4);
36	.rodata : { *(SORT_BY_ALIGNMENT(.rodata*)) } >.sram
37
38	. = ALIGN(4);
39	.data : { *(SORT_BY_ALIGNMENT(.data*)) } >.sram
40
41	. = ALIGN(4);
42	.u_boot_list : {
43		KEEP(*(SORT(.u_boot_list*)));
44	} > .sram
45
46	. = ALIGN(4);
47	__image_copy_end = .;
48	_end = .;
49
50	.bss :
51	{
52		. = ALIGN(4);
53		__bss_start = .;
54		*(.bss*)
55		. = ALIGN(4);
56		__bss_end = .;
57	} > .sdram
58}
59