blob: 8f04911306bc4127cea744fefcf73f9056e0630e [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Christian Riesch3d2c8e62011-12-09 09:47:37 +00002/*
3 * (C) Copyright 2002
4 * Gary Jennejohn, DENX Software Engineering, <garyj@denx.de>
5 *
6 * (C) Copyright 2008
7 * Guennadi Liakhovetki, DENX Software Engineering, <lg@denx.de>
Christian Riesch3d2c8e62011-12-09 09:47:37 +00008 */
9
Tom Rini2f41ade2019-01-22 17:09:26 -050010MEMORY { .sram : ORIGIN = IMAGE_TEXT_BASE,\
Albert ARIBAUDb7b5f1a2013-04-12 05:14:32 +000011 LENGTH = CONFIG_SPL_MAX_FOOTPRINT }
Christian Riesch3d2c8e62011-12-09 09:47:37 +000012
Adam Ford15b8c752019-02-25 21:53:46 -060013MEMORY { .sdram : ORIGIN = CONFIG_SPL_BSS_START_ADDR, \
14 LENGTH = CONFIG_SPL_BSS_MAX_SIZE }
15
Christian Riesch3d2c8e62011-12-09 09:47:37 +000016OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
17OUTPUT_ARCH(arm)
18ENTRY(_start)
19SECTIONS
20{
21 . = 0x00000000;
22
23 . = ALIGN(4);
24 .text :
25 {
26 __start = .;
Benoît Thébaudeaueeadd3f2014-08-21 15:43:11 +020027 *(.vectors)
Benoît Thébaudeau1a9a91d2013-04-11 09:36:03 +000028 arch/arm/cpu/arm926ejs/start.o (.text*)
Christian Riesch3d2c8e62011-12-09 09:47:37 +000029 *(.text*)
30 } >.sram
31
32 . = ALIGN(4);
33 .rodata : { *(SORT_BY_ALIGNMENT(.rodata*)) } >.sram
34
35 . = ALIGN(4);
36 .data : { *(SORT_BY_ALIGNMENT(.data*)) } >.sram
Marek Vasut55675142012-10-12 10:27:03 +000037
38 . = ALIGN(4);
Fabien Parent5d7cdf32016-11-29 14:23:40 +010039 .u_boot_list : { KEEP(*(SORT(.u_boot_list*))); } >.sram
40
41 . = ALIGN(4);
Christian Riesch3d2c8e62011-12-09 09:47:37 +000042 .rel.dyn : {
43 __rel_dyn_start = .;
44 *(.rel*)
45 __rel_dyn_end = .;
46 } >.sram
47
Adam Ford15b8c752019-02-25 21:53:46 -060048 __image_copy_end = .;
49
50 .end :
51 {
52 *(.__end)
53 }
54
55 _image_binary_end = .;
56
Christian Riesch3d2c8e62011-12-09 09:47:37 +000057 .bss :
58 {
59 . = ALIGN(4);
60 __bss_start = .;
61 *(.bss*)
62 . = ALIGN(4);
Simon Glass3929fb02013-03-14 06:54:53 +000063 __bss_end = .;
Adam Ford15b8c752019-02-25 21:53:46 -060064 } >.sdram
Christian Riesch3d2c8e62011-12-09 09:47:37 +000065}