-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlinker.ld
More file actions
48 lines (39 loc) · 840 Bytes
/
linker.ld
File metadata and controls
48 lines (39 loc) · 840 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
43
44
45
46
47
ENTRY(_start)
PHDRS
{
headers PT_PHDR PHDRS;
text PT_LOAD FILEHDR PHDRS;
rodata PT_LOAD;
data PT_LOAD;
}
SECTIONS
{
. = 0xffffffff80000000;
executable_start = .;
. += SIZEOF_HEADERS;
.text : ALIGN(0x1000) {
*(.text .text.*)
} :text
.rodata : ALIGN(0x1000) {
*(.rodata .rodata.*)
*(.srodata .srodata.*)
*(.sdata2 .sdata2.*)
} :rodata
.data : ALIGN(0x1000) {
*(.data .data.*)
*(.sdata .sdata.*)
KEEP(*(.limine_requests_start_marker))
KEEP(*(.limine_requests))
KEEP(*(.limine_requests_end_marker))
} :data
.bss : ALIGN(0x1000) {
*(.bss .bss.*)
*(.sbss .sbss.*)
*(COMMON)
} :data
/DISCARD/ : {
*(.eh_frame*)
*(.note .note.*)
*(.interp)
}
}