blob: 0d1b0c499304f2472bd340c9449e54a3a159639f [file] [log] [blame]
Scott Woodb2d5ac52015-03-24 13:25:02 -07001/*
2 * (C) Copyright 2013
3 * David Feng <fenghua@phytium.com.cn>
4 *
5 * (C) Copyright 2002
6 * Gary Jennejohn, DENX Software Engineering, <garyj@denx.de>
7 *
8 * (C) Copyright 2010
9 * Texas Instruments, <www.ti.com>
10 * Aneesh V <aneesh@ti.com>
11 *
12 * SPDX-License-Identifier: GPL-2.0+
13 */
14
15MEMORY { .sram : ORIGIN = CONFIG_SPL_TEXT_BASE,
16 LENGTH = CONFIG_SPL_MAX_SIZE }
17MEMORY { .sdram : ORIGIN = CONFIG_SPL_BSS_START_ADDR,
18 LENGTH = CONFIG_SPL_BSS_MAX_SIZE }
19
20OUTPUT_FORMAT("elf64-littleaarch64", "elf64-littleaarch64", "elf64-littleaarch64")
21OUTPUT_ARCH(aarch64)
22ENTRY(_start)
23SECTIONS
24{
25 .text : {
26 . = ALIGN(8);
27 *(.__image_copy_start)
28 CPUDIR/start.o (.text*)
29 *(.text*)
30 } >.sram
31
32 .rodata : {
33 . = ALIGN(8);
34 *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
35 } >.sram
36
37 .data : {
38 . = ALIGN(8);
39 *(.data*)
40 } >.sram
41
42 .u_boot_list : {
43 . = ALIGN(8);
44 KEEP(*(SORT(.u_boot_list*)));
45 } >.sram
46
47 .image_copy_end : {
48 . = ALIGN(8);
49 *(.__image_copy_end)
50 } >.sram
51
52 .end : {
53 . = ALIGN(8);
54 *(.__end)
55 } >.sram
56
Masahiro Yamada0ea6cc12016-03-08 20:34:44 +090057 _image_binary_end = .;
58
Michal Simek439edf62017-05-29 10:26:53 +020059 .bss_start (NOLOAD) : {
Scott Woodb2d5ac52015-03-24 13:25:02 -070060 . = ALIGN(8);
61 KEEP(*(.__bss_start));
62 } >.sdram
63
Michal Simek439edf62017-05-29 10:26:53 +020064 .bss (NOLOAD) : {
Scott Woodb2d5ac52015-03-24 13:25:02 -070065 *(.bss*)
66 . = ALIGN(8);
67 } >.sdram
68
Michal Simek439edf62017-05-29 10:26:53 +020069 .bss_end (NOLOAD) : {
Scott Woodb2d5ac52015-03-24 13:25:02 -070070 KEEP(*(.__bss_end));
71 } >.sdram
72
73 /DISCARD/ : { *(.dynsym) }
74 /DISCARD/ : { *(.dynstr*) }
75 /DISCARD/ : { *(.dynamic*) }
76 /DISCARD/ : { *(.plt*) }
77 /DISCARD/ : { *(.interp*) }
78 /DISCARD/ : { *(.gnu*) }
79}