blob: 5480d1f276cae881922f2e4b61460bb18fd7a345 [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ébaudeau1a9a91d2013-04-11 09:36:03 +000025 arch/arm/cpu/arm926ejs/start.o (.text*)
Christian Riesch3d2c8e62011-12-09 09:47:37 +000026 *(.text*)
27 } >.sram
28
29 . = ALIGN(4);
30 .rodata : { *(SORT_BY_ALIGNMENT(.rodata*)) } >.sram
31
32 . = ALIGN(4);
33 .data : { *(SORT_BY_ALIGNMENT(.data*)) } >.sram
Marek Vasut55675142012-10-12 10:27:03 +000034
35 . = ALIGN(4);
Christian Riesch3d2c8e62011-12-09 09:47:37 +000036 .rel.dyn : {
37 __rel_dyn_start = .;
38 *(.rel*)
39 __rel_dyn_end = .;
40 } >.sram
41
Christian Riesch3d2c8e62011-12-09 09:47:37 +000042 .bss :
43 {
44 . = ALIGN(4);
45 __bss_start = .;
46 *(.bss*)
47 . = ALIGN(4);
Simon Glass3929fb02013-03-14 06:54:53 +000048 __bss_end = .;
Christian Riesch3d2c8e62011-12-09 09:47:37 +000049 } >.sram
50
51 __image_copy_end = .;
52 _end = .;
53}