blob: 569fa418f465683a1d40d553d3921728b99b2b77 [file] [log] [blame]
Dinh Nguyenad51f7c2012-10-04 06:46:02 +00001/*
2 * Copyright (C) 2012 Altera Corporation <www.altera.com>
3 *
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02004 * SPDX-License-Identifier: GPL-2.0+
Dinh Nguyenad51f7c2012-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ébaudeau3f7740f2014-08-21 15:43:11 +020019 *(.vectors)
Benoît Thébaudeau3954db82013-04-11 09:36:03 +000020 arch/arm/cpu/armv7/start.o (.text*)
Dinh Nguyenad51f7c2012-10-04 06:46:02 +000021 *(.text*)
22 } >.sdram
23
24 . = ALIGN(4);
25 .rodata : { *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) } >.sdram
26
27 . = ALIGN(4);
28 .data : { *(SORT_BY_ALIGNMENT(.data*)) } >.sdram
29
30 . = ALIGN(4);
31 __image_copy_end = .;
Albert ARIBAUD9d25fa42014-02-22 17:53:42 +010032
33 .end :
34 {
35 *(.__end)
36 }
Dinh Nguyenad51f7c2012-10-04 06:46:02 +000037
38 .bss : {
39 . = ALIGN(4);
40 __bss_start = .;
41 *(.bss*)
42 . = ALIGN(4);
Simon Glassed70c8f2013-03-14 06:54:53 +000043 __bss_end = .;
Dinh Nguyenad51f7c2012-10-04 06:46:02 +000044 } >.sdram
Dinh Nguyenad51f7c2012-10-04 06:46:02 +000045}