blob: 85a6be90c59b857a32e0d9a3443915cde26b6733 [file] [log] [blame]
Christian Riesch3d2c8e62011-12-09 09:47:37 +00001/*
2 * (C) Copyright 2002
3 * Gary Jennejohn, DENX Software Engineering, <garyj@denx.de>
4 *
5 * (C) Copyright 2008
6 * Guennadi Liakhovetki, DENX Software Engineering, <lg@denx.de>
7 *
Wolfgang Denk1a459662013-07-08 09:37:19 +02008 * SPDX-License-Identifier: GPL-2.0+
Christian Riesch3d2c8e62011-12-09 09:47:37 +00009 */
10
11MEMORY { .sram : ORIGIN = CONFIG_SPL_TEXT_BASE,\
Albert ARIBAUDb7b5f1a2013-04-12 05:14:32 +000012 LENGTH = CONFIG_SPL_MAX_FOOTPRINT }
Christian Riesch3d2c8e62011-12-09 09:47:37 +000013
14OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
15OUTPUT_ARCH(arm)
16ENTRY(_start)
17SECTIONS
18{
19 . = 0x00000000;
20
21 . = ALIGN(4);
22 .text :
23 {
24 __start = .;
Benoît Thébaudeaueeadd3f2014-08-21 15:43:11 +020025 *(.vectors)
Benoît Thébaudeau1a9a91d2013-04-11 09:36:03 +000026 arch/arm/cpu/arm926ejs/start.o (.text*)
Christian Riesch3d2c8e62011-12-09 09:47:37 +000027 *(.text*)
28 } >.sram
29
30 . = ALIGN(4);
31 .rodata : { *(SORT_BY_ALIGNMENT(.rodata*)) } >.sram
32
33 . = ALIGN(4);
34 .data : { *(SORT_BY_ALIGNMENT(.data*)) } >.sram
Marek Vasut55675142012-10-12 10:27:03 +000035
36 . = ALIGN(4);
Fabien Parent5d7cdf32016-11-29 14:23:40 +010037 .u_boot_list : { KEEP(*(SORT(.u_boot_list*))); } >.sram
38
39 . = ALIGN(4);
Christian Riesch3d2c8e62011-12-09 09:47:37 +000040 .rel.dyn : {
41 __rel_dyn_start = .;
42 *(.rel*)
43 __rel_dyn_end = .;
44 } >.sram
45
Christian Riesch3d2c8e62011-12-09 09:47:37 +000046 .bss :
47 {
48 . = ALIGN(4);
49 __bss_start = .;
50 *(.bss*)
51 . = ALIGN(4);
Simon Glass3929fb02013-03-14 06:54:53 +000052 __bss_end = .;
Christian Riesch3d2c8e62011-12-09 09:47:37 +000053 } >.sram
54
55 __image_copy_end = .;
Albert ARIBAUDd0b5d9d2014-02-22 17:53:42 +010056
57 .end :
58 {
59 *(.__end)
60 }
Christian Riesch3d2c8e62011-12-09 09:47:37 +000061}