-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathkernel8.ld
More file actions
42 lines (34 loc) · 704 Bytes
/
Copy pathkernel8.ld
File metadata and controls
42 lines (34 loc) · 704 Bytes
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
OUTPUT_ARCH("aarch64")
ENTRY(_start_el2)
PHDRS
{
text PT_LOAD FLAGS(5); /* R-X */
rodata PT_LOAD FLAGS(4); /* R-- */
data PT_LOAD FLAGS(6); /* RW- */
}
SECTIONS
{
. = 0x80000;
PROVIDE(__program_start = .);
.text : {
KEEP(*(.text._start))
*(.text*)
} :text
.rodata : {
. = ALIGN(0x10);
*(.rodata*)
} :rodata
.data : {
. = ALIGN(0x10);
*(.data*)
} :data
.bss : {
. = ALIGN(0x10);
PROVIDE(__bss_start = .);
*(.bss*)
*(COMMON)
PROVIDE(__bss_end = .);
} :data
/DISCARD/ : { *(.comment) *(.gnu*) *(.note*) *(.eh_frame*) }
PROVIDE(__program_end = .);
}