blob: a7c9c9d281a276ba8e7b65460b1073c2ebc30f1b [file] [log] [blame]
Dinh Nguyen77754402012-10-04 06:46:02 +00001/*
2 * Copyright (C) 2012 Altera Corporation <www.altera.com>
3 *
Wolfgang Denk1a459662013-07-08 09:37:19 +02004 * SPDX-License-Identifier: GPL-2.0+
Dinh Nguyen77754402012-10-04 06:46:02 +00005 */
6
7MEMORY { .sdram : ORIGIN = (0), LENGTH = (0xffffffff) }
8
9OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
10OUTPUT_ARCH(arm)
11ENTRY(_start)
12SECTIONS
13{
14 . = 0x00000000;
15
16 . = ALIGN(4);
17 .text :
18 {
Benoît Thébaudeau1a9a91d2013-04-11 09:36:03 +000019 arch/arm/cpu/armv7/start.o (.text*)
Dinh Nguyen77754402012-10-04 06:46:02 +000020 *(.text*)
21 } >.sdram
22
23 . = ALIGN(4);
24 .rodata : { *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) } >.sdram
25
26 . = ALIGN(4);
27 .data : { *(SORT_BY_ALIGNMENT(.data*)) } >.sdram
28
29 . = ALIGN(4);
30 __image_copy_end = .;
31 _end = .;
32
33 .bss : {
34 . = ALIGN(4);
35 __bss_start = .;
36 *(.bss*)
37 . = ALIGN(4);
Simon Glass3929fb02013-03-14 06:54:53 +000038 __bss_end = .;
Dinh Nguyen77754402012-10-04 06:46:02 +000039 } >.sdram
40
41 . = ALIGN(8);
42 __malloc_start = .;
43 . = . + CONFIG_SPL_MALLOC_SIZE;
44 __malloc_end = .;
45
46 . = . + CONFIG_SPL_STACK_SIZE;
47 . = ALIGN(8);
48 __stack_start = .;
49}