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