This repository was archived by the owner on Nov 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathultra.lds.S
105 lines (88 loc) · 1.65 KB
/
ultra.lds.S
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
// SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
/* Copyright 2014-2019 IBM Corp. */
#include <config.h>
#include <mem-map.h>
ENTRY(boot_entry)
SECTIONS
{
. = 0x0;
.head : {
KEEP(*(.head))
}
. = ALIGN(0x10);
_stext = .;
.text : {
*(.text*)
*(.sfpr)
}
_etext = .;
.rodata : {
__rodata_start = .;
*(.rodata .rodata.*)
__rodata_end = .;
}
.data : {
/*
* A couple of things that need to be 4K aligned and
* to reside in their own pages for the sake of TCE
* mappings
*/
. = ALIGN(0x1000);
*(.data*)
*(.force.data)
}
. = ALIGN(0x10);
.init : {
__ctors_start = .;
KEEP(*(.ctors))
KEEP(*(.init_array))
__ctors_end = .;
}
. = ALIGN(0x100);
.got : {
__toc_start = . + 0x8000;
*(.got)
*(.toc)
}
. = ALIGN(0x10);
.dynamic : {
__dynamic_start = .;
*(.dynamic)
__dynamic_end = .;
}
. = ALIGN(0x10);
.rela.dyn : {
__rela_dyn_start = .;
*(.rela*)
__rela_dyn_end = .;
}
. = ALIGN(0x10);
.svm_ops : {
__svm_ops_start = .;
KEEP(*(.svm_ops))
__svm_ops_end = .;
}
.hash : { *(.hash) }
.dynsym : { *(.dynsym) }
.dynstr : { *(.dynstr) }
. = ALIGN(0x10);
.sym_map : {
__sym_map_start = . ;
KEEP(*(.sym_map))
__sym_map_end = . ;
}
/* We locate the BSS plus 1M to leave room for the symbol map */
. = . + 0x100000;
_sbss = .;
.bss : {
*(.bss*)
}
. = ALIGN(0x10000);
_ebss = .;
_end = .;
/* Discards */
/DISCARD/ : {
*(.comment)
*(.interp)
}
}