blob: 53f0cbd2b7eac2b6496dfcd27da23226760637b5 [file] [log] [blame]
Ian Campbell140d8322014-05-05 11:52:30 +01001/*
2 * (C) Copyright 2012
3 * Allwinner Technology Co., Ltd. <www.allwinnertech.com>
4 * Tom Cubie <tangliang@allwinnertech.com>
5 *
6 * Based on omap-common/u-boot-spl.lds:
7 *
8 * (C) Copyright 2002
9 * Gary Jennejohn, DENX Software Engineering, <garyj@denx.de>
10 *
11 * (C) Copyright 2010
12 * Texas Instruments, <www.ti.com>
13 * Aneesh V <aneesh@ti.com>
14 *
15 * SPDX-License-Identifier: GPL-2.0+
16 */
17MEMORY { .sram : ORIGIN = CONFIG_SPL_TEXT_BASE,\
18 LENGTH = CONFIG_SPL_MAX_SIZE }
19MEMORY { .sdram : ORIGIN = CONFIG_SPL_BSS_START_ADDR, \
20 LENGTH = CONFIG_SPL_BSS_MAX_SIZE }
21
22OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
23OUTPUT_ARCH(arm)
24ENTRY(_start)
25SECTIONS
26{
27 .text :
28 {
29 __start = .;
Hans de Goede85089a22014-06-09 11:36:54 +020030 *(.vectors)
Ian Campbell140d8322014-05-05 11:52:30 +010031 arch/arm/cpu/armv7/start.o (.text)
32 *(.text*)
33 } > .sram
34
35 . = ALIGN(4);
36 .rodata : { *(SORT_BY_ALIGNMENT(.rodata*)) } >.sram
37
38 . = ALIGN(4);
39 .data : { *(SORT_BY_ALIGNMENT(.data*)) } >.sram
40
41 . = ALIGN(4);
Hans de Goede3352b222014-06-13 22:55:49 +020042 .u_boot_list : {
43 KEEP(*(SORT(.u_boot_list*)));
44 } > .sram
45
46 . = ALIGN(4);
Ian Campbell140d8322014-05-05 11:52:30 +010047 __image_copy_end = .;
48 _end = .;
49
50 .bss :
51 {
52 . = ALIGN(4);
53 __bss_start = .;
54 *(.bss*)
55 . = ALIGN(4);
56 __bss_end = .;
57 } > .sdram
58}