blob: 745603d0fe7aa4302db5f2f22cbd5e4ea9948d53 [file] [log] [blame]
Aneesh Vb8e60b92011-07-21 09:10:21 -04001/*
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+
Aneesh Vb8e60b92011-07-21 09:10:21 -040010 */
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 {
Pavel Machek63c37f12012-08-30 19:20:22 +020024 __start = .;
Benoît Thébaudeau3954db82013-04-11 09:36:03 +000025 arch/arm/cpu/armv7/start.o (.text*)
Pavel Machek63c37f12012-08-30 19:20:22 +020026 *(.text*)
Aneesh Vb8e60b92011-07-21 09:10:21 -040027 } >.sram
28
29 . = ALIGN(4);
30 .rodata : { *(SORT_BY_ALIGNMENT(.rodata*)) } >.sram
31
32 . = ALIGN(4);
33 .data : { *(SORT_BY_ALIGNMENT(.data*)) } >.sram
Marek Vasut607092a2012-10-12 10:27:03 +000034
Aneesh Vb8e60b92011-07-21 09:10:21 -040035 . = ALIGN(4);
Heiko Schocherf53f2b82013-10-22 11:03:18 +020036 .u_boot_list : {
Tom Rini14d643b2013-11-15 12:20:33 -050037 KEEP(*(SORT(.u_boot_list*_i2c_*)));
Heiko Schocherf53f2b82013-10-22 11:03:18 +020038 } >.sram
Tom Rini14d643b2013-11-15 12:20:33 -050039
Heiko Schocherf53f2b82013-10-22 11:03:18 +020040 . = ALIGN(4);
Aneesh Vb8e60b92011-07-21 09:10:21 -040041 __image_copy_end = .;
Albert ARIBAUD9d25fa42014-02-22 17:53:42 +010042
43 .end :
44 {
45 *(.__end)
46 }
Aneesh Vb8e60b92011-07-21 09:10:21 -040047
48 .bss :
49 {
50 . = ALIGN(4);
51 __bss_start = .;
52 *(.bss*)
53 . = ALIGN(4);
Simon Glassed70c8f2013-03-14 06:54:53 +000054 __bss_end = .;
Aneesh Vb8e60b92011-07-21 09:10:21 -040055 } >.sdram
56}