blob: bd218c07da5a214c3f3337b7420d19b9075519d6 [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 *
9 * See file CREDITS for list of people who contributed to this
10 * project.
11 *
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License as
14 * published by the Free Software Foundation; either version 2 of
15 * the License, or (at your option) any later version.
16 *
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
21 *
22 * You should have received a copy of the GNU General Public License
23 * along with this program; if not, write to the Free Software
24 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
25 * MA 02111-1307 USA
26 */
27
28MEMORY { .sram : ORIGIN = CONFIG_SPL_TEXT_BASE,\
29 LENGTH = CONFIG_SPL_MAX_SIZE }
30MEMORY { .sdram : ORIGIN = CONFIG_SPL_BSS_START_ADDR, \
31 LENGTH = CONFIG_SPL_BSS_MAX_SIZE }
32
33OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
34OUTPUT_ARCH(arm)
35ENTRY(_start)
36SECTIONS
37{
38 .text :
39 {
Pavel Machek63c37f12012-08-30 19:20:22 +020040 __start = .;
Benoît Thébaudeau3954db82013-04-11 09:36:03 +000041 arch/arm/cpu/armv7/start.o (.text*)
Pavel Machek63c37f12012-08-30 19:20:22 +020042 *(.text*)
Aneesh Vb8e60b92011-07-21 09:10:21 -040043 } >.sram
44
45 . = ALIGN(4);
46 .rodata : { *(SORT_BY_ALIGNMENT(.rodata*)) } >.sram
47
48 . = ALIGN(4);
49 .data : { *(SORT_BY_ALIGNMENT(.data*)) } >.sram
Marek Vasut607092a2012-10-12 10:27:03 +000050
Aneesh Vb8e60b92011-07-21 09:10:21 -040051 . = ALIGN(4);
52 __image_copy_end = .;
53 _end = .;
54
55 .bss :
56 {
57 . = ALIGN(4);
58 __bss_start = .;
59 *(.bss*)
60 . = ALIGN(4);
Simon Glassed70c8f2013-03-14 06:54:53 +000061 __bss_end = .;
Aneesh Vb8e60b92011-07-21 09:10:21 -040062 } >.sdram
63}