blob: 4c12222370576422011882a6b341730b366bf53c [file] [log] [blame]
David Feng85fd5f12013-12-14 11:47:35 +08001/*
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 * SPDX-License-Identifier: GPL-2.0+
9 */
10
11OUTPUT_FORMAT("elf64-littleaarch64", "elf64-littleaarch64", "elf64-littleaarch64")
12OUTPUT_ARCH(aarch64)
13ENTRY(_start)
14SECTIONS
15{
16 . = 0x00000000;
17
18 . = ALIGN(8);
19 .text :
20 {
21 *(.__image_copy_start)
22 CPUDIR/start.o (.text*)
23 *(.text*)
24 }
25
26 . = ALIGN(8);
27 .rodata : { *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) }
28
29 . = ALIGN(8);
30 .data : {
31 *(.data*)
32 }
33
34 . = ALIGN(8);
35
36 . = .;
37
38 . = ALIGN(8);
39 .u_boot_list : {
40 KEEP(*(SORT(.u_boot_list*)));
41 }
42
43 . = ALIGN(8);
44
45 .image_copy_end :
46 {
47 *(.__image_copy_end)
48 }
49
50 . = ALIGN(8);
51
52 .rel_dyn_start :
53 {
54 *(.__rel_dyn_start)
55 }
56
57 .rela.dyn : {
58 *(.rela*)
59 }
60
61 .rel_dyn_end :
62 {
63 *(.__rel_dyn_end)
64 }
65
66 _end = .;
67
68 . = ALIGN(8);
69
70 .bss_start : {
71 KEEP(*(.__bss_start));
72 }
73
74 .bss : {
75 *(.bss*)
76 . = ALIGN(8);
77 }
78
79 .bss_end : {
80 KEEP(*(.__bss_end));
81 }
82
83 /DISCARD/ : { *(.dynsym) }
84 /DISCARD/ : { *(.dynstr*) }
85 /DISCARD/ : { *(.dynamic*) }
86 /DISCARD/ : { *(.plt*) }
87 /DISCARD/ : { *(.interp*) }
88 /DISCARD/ : { *(.gnu*) }
89}