blob: 15f8c01a9a2d347f4d58dcc1a5d446b5028dca9c [file] [log] [blame]
Dinh Nguyen77754402012-10-04 06:46:02 +00001/*
2 * Copyright (C) 2012 Altera Corporation <www.altera.com>
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18MEMORY { .sdram : ORIGIN = (0), LENGTH = (0xffffffff) }
19
20OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
21OUTPUT_ARCH(arm)
22ENTRY(_start)
23SECTIONS
24{
25 . = 0x00000000;
26
27 . = ALIGN(4);
28 .text :
29 {
Benoît Thébaudeau1a9a91d2013-04-11 09:36:03 +000030 arch/arm/cpu/armv7/start.o (.text*)
Dinh Nguyen77754402012-10-04 06:46:02 +000031 *(.text*)
32 } >.sdram
33
34 . = ALIGN(4);
35 .rodata : { *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) } >.sdram
36
37 . = ALIGN(4);
38 .data : { *(SORT_BY_ALIGNMENT(.data*)) } >.sdram
39
40 . = ALIGN(4);
41 __image_copy_end = .;
42 _end = .;
43
44 .bss : {
45 . = ALIGN(4);
46 __bss_start = .;
47 *(.bss*)
48 . = ALIGN(4);
Simon Glass3929fb02013-03-14 06:54:53 +000049 __bss_end = .;
Dinh Nguyen77754402012-10-04 06:46:02 +000050 } >.sdram
51
52 . = ALIGN(8);
53 __malloc_start = .;
54 . = . + CONFIG_SPL_MALLOC_SIZE;
55 __malloc_end = .;
56
57 . = . + CONFIG_SPL_STACK_SIZE;
58 . = ALIGN(8);
59 __stack_start = .;
60}