blob: a537fe02954bbb9a862a209d74b7d37ed9eee7d4 [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Albert ARIBAUD9608e7d2015-01-31 22:55:38 +01002/*
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>
Albert ARIBAUD9608e7d2015-01-31 22:55:38 +010018 */
Tom Rini2f41ade2019-01-22 17:09:26 -050019MEMORY { .nor : ORIGIN = IMAGE_TEXT_BASE,\
20 LENGTH = IMAGE_MAX_SIZE }
Albert ARIBAUD9608e7d2015-01-31 22:55:38 +010021MEMORY { .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}