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		arch/arm/cpu/armv7/start.o	(.text)
31		*(.text*)
32	} > .sram
33
34	. = ALIGN(4);
35	.rodata : { *(SORT_BY_ALIGNMENT(.rodata*)) } >.sram
36
37	. = ALIGN(4);
38	.data : { *(SORT_BY_ALIGNMENT(.data*)) } >.sram
39
40	. = ALIGN(4);
41	__image_copy_end = .;
42	_end = .;
43
44	.bss :
45	{
46		. = ALIGN(4);
47		__bss_start = .;
48		*(.bss*)
49		. = ALIGN(4);
50		__bss_end = .;
51	} > .sdram
52}
53