1/* SPDX-License-Identifier: GPL-2.0+ */
2/*
3 * Copyright (C) 2015 Stefan Roese <sr@denx.de>
4 *
5 * Copyright (C) 2011 Marek Vasut <marek.vasut@gmail.com>
6 * on behalf of DENX Software Engineering GmbH
7 *
8 * January 2004 - Changed to support H4 device
9 * Copyright (c) 2004-2008 Texas Instruments
10 *
11 * (C) Copyright 2002
12 * Gary Jennejohn, DENX Software Engineering, <garyj@denx.de>
13 */
14
15MEMORY { .sram : ORIGIN = CONFIG_SPL_TEXT_BASE,\
16		LENGTH = CONFIG_SPL_MAX_SIZE }
17
18OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
19OUTPUT_ARCH(arm)
20ENTRY(_start)
21SECTIONS
22{
23	.text      :
24	{
25		__start = .;
26		*(.vectors)
27		CPUDIR/spear/start.o	(.text*)
28		*(.text*)
29	} > .sram
30
31	. = ALIGN(4);
32	.rodata : { *(SORT_BY_ALIGNMENT(.rodata*)) } >.sram
33
34	. = ALIGN(4);
35	.data : { *(SORT_BY_ALIGNMENT(.data*)) } >.sram
36
37	. = ALIGN(4);
38	.u_boot_list : {
39		KEEP(*(SORT(.u_boot_list*)));
40	} > .sram
41
42	. = ALIGN(4);
43	__image_copy_end = .;
44	_end = .;
45
46	.bss :
47	{
48		. = ALIGN(4);
49		__bss_start = .;
50		*(.bss*)
51		. = ALIGN(4);
52		__bss_end = .;
53	} > .sram
54}
55