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