1/*
2 * (C) Copyright 2002
3 *
4 * SPDX-License-Identifier:	GPL-2.0+
5 */
6
7MEMORY
8{
9	flash : ORIGIN = CONFIG_SPL_TEXT_BASE,
10		LENGTH = CONFIG_SPL_MAX_SIZE
11	sdram : ORIGIN = CONFIG_SPL_BSS_START_ADDR,
12		LENGTH = CONFIG_SPL_BSS_MAX_SIZE
13}
14
15OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
16OUTPUT_ARCH(arm)
17ENTRY(_start)
18SECTIONS
19{
20	. = ALIGN(4);
21	.text :
22	{
23		__image_copy_start = .;
24		*(.vectors)
25		CPUDIR/start.o (.text*)
26		*(.text*)
27	} > flash
28
29	. = ALIGN(4);
30	.data : { *(SORT_BY_ALIGNMENT(.data*)) } > flash
31
32	. = ALIGN(4);
33	.rodata : { *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) } > flash
34
35	. = ALIGN(4);
36
37	.u_boot_list : {
38		KEEP(*(SORT(.u_boot_list*)));
39	} > flash
40
41	. = ALIGN(4);
42
43	.end_align : { *(.end_align*) } > flash
44	__spl_flash_end = .;
45
46	_image_binary_end = .;
47
48	.bss : {
49		. = ALIGN(4);
50		__bss_start = .;
51		*(.bss*)
52		. = ALIGN(4);
53		__bss_end = .;
54	} > sdram
55}
56