blob: 97e4a8bc873fac91f07f2b3c5db2cf36f8b8822d [file] [log] [blame]
Stefano Babice9a05792012-10-10 21:11:43 +00001/*
2 * (C) Copyright 2002
3 * Gary Jennejohn, DENX Software Engineering, <garyj@denx.de>
4 *
5 * (C) Copyright 2010
6 * Texas Instruments, <www.ti.com>
7 * Aneesh V <aneesh@ti.com>
8 *
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02009 * SPDX-License-Identifier: GPL-2.0+
Stefano Babice9a05792012-10-10 21:11:43 +000010 */
11
12MEMORY { .sram : ORIGIN = CONFIG_SPL_TEXT_BASE,\
13 LENGTH = CONFIG_SPL_MAX_SIZE }
14MEMORY { .sdram : ORIGIN = CONFIG_SPL_BSS_START_ADDR, \
15 LENGTH = CONFIG_SPL_BSS_MAX_SIZE }
16
17OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
18OUTPUT_ARCH(arm)
19ENTRY(_start)
20SECTIONS
21{
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/arm1136/start.o (.text*)
Stefano Babice9a05792012-10-10 21:11:43 +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);
36 __image_copy_end = .;
Albert ARIBAUD9d25fa42014-02-22 17:53:42 +010037
38 .end :
39 {
40 *(.__end)
41 }
Stefano Babice9a05792012-10-10 21:11:43 +000042
43 .bss :
44 {
45 . = ALIGN(4);
46 __bss_start = .;
47 *(.bss*)
48 . = ALIGN(4);
Simon Glassed70c8f2013-03-14 06:54:53 +000049 __bss_end = .;
Stefano Babice9a05792012-10-10 21:11:43 +000050 } >.sdram
51}