blob: f5c19df0d31cd8ae9ba91112e566b00ba6b03166 [file] [log] [blame]
Heiko Schocher6c1b1192011-11-01 20:00:35 +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 Denkd79de1d2013-07-08 09:37:19 +02008 * SPDX-License-Identifier: GPL-2.0+
Heiko Schocher6c1b1192011-11-01 20:00:35 +00009 */
10
11MEMORY { .sram : ORIGIN = CONFIG_SPL_TEXT_BASE,\
Albert ARIBAUDfd2c9812013-04-12 05:14:31 +000012 LENGTH = CONFIG_SPL_MAX_FOOTPRINT }
Heiko Schocher6c1b1192011-11-01 20:00:35 +000013
14OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
15OUTPUT_ARCH(arm)
16ENTRY(_start)
17SECTIONS
18{
Heiko Schocherb22c74b2012-03-07 04:10:00 +000019 . = CONFIG_SPL_TEXT_BASE;
Heiko Schocher6c1b1192011-11-01 20:00:35 +000020
21 . = ALIGN(4);
22 .text :
23 {
24 __start = .;
Benoît Thébaudeau3f7740f2014-08-21 15:43:11 +020025 *(.vectors)
Benoît Thébaudeau3954db82013-04-11 09:36:03 +000026 arch/arm/cpu/arm926ejs/start.o (.text*)
Heiko Schocher6c1b1192011-11-01 20:00:35 +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
35 . = ALIGN(4);
Heiko Schocher6c1b1192011-11-01 20:00:35 +000036 .rel.dyn : {
37 __rel_dyn_start = .;
38 *(.rel*)
39 __rel_dyn_end = .;
40 } >.sram
41
Heiko Schocher6c1b1192011-11-01 20:00:35 +000042 .bss :
43 {
44 . = ALIGN(4);
45 __bss_start = .;
46 *(.bss*)
47 . = ALIGN(4);
Simon Glassed70c8f2013-03-14 06:54:53 +000048 __bss_end = .;
Heiko Schocher6c1b1192011-11-01 20:00:35 +000049 } >.sram
50
51 __image_copy_end = .;
Albert ARIBAUD9d25fa42014-02-22 17:53:42 +010052
53 .end :
54 {
55 *(.__end)
56 }
Heiko Schocher6c1b1192011-11-01 20:00:35 +000057}