-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlinker.ld
64 lines (48 loc) · 781 Bytes
/
linker.ld
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
BASE_ADDRESS = 0xffffffc080100000;
ENTRY(_start)
SECTIONS
{
. = BASE_ADDRESS;
.text : ALIGN(8) {
*(.text)
}
.plt : ALIGN(8) {
*(.plt)
}
.interp : ALIGN(8) {
*(.interp)
}
.dynsym : ALIGN(8) {
*(.dynsym)
}
.dynstr : ALIGN(8) {
*(.dynstr)
}
.hash : ALIGN(8) {
*(.hash)
}
.gnu.hash : ALIGN(8) {
*(.gnu.hash)
}
.rodata : ALIGN(8) {
*(.rodata)
}
.rela.dyn : ALIGN(8) {
*(.rela.dyn)
}
.dynamic : ALIGN(8) {
*(.dynamic)
}
.got : ALIGN(8) {
*(.got)
}
.got.plt : ALIGN(8) {
*(.got.plt)
}
.data : ALIGN(8) {
*(.data)
}
.bss : ALIGN(8) {
*(.bss)
}
}