forked from d33tah/whitix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
link.ld
67 lines (53 loc) · 1002 Bytes
/
link.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
65
66
67
OUTPUT_FORMAT("elf32-i386")
OUTPUT_ARCH("i386")
ENTRY(start)
SECTIONS
{
. = 0xC0100000;
.text : AT(ADDR(.text) - 0xC0000000) {
code = .; _code = .; __code = .;
*(.text)
*(.rdata)
. = ALIGN(4096);
}
endCode = .;
.data : {
data = .; _data = .; __data = .;
*(.data)
. = ALIGN(4096);
}
endData = .;
symtable_start = .; _symtable_start = .;
.symtable : {
*(.symtable)
}
symtable_end = .; _symtable_end = .;
symstrings_start = .; _symstrings_start = .;
.symstrings : {
*(.symstrings)
. = ALIGN(4096);
}
symstrings_end = .; _symstrings_end = .;
.bss : {
bss = .; _bss = .; __bss = .;
*(.bss.page_aligned)
*(.bss)
*(COMMON)
. = ALIGN(4);
endbss = .; _endbss = .;
}
. = ALIGN(4096);
initcode_start = .;
.initcode : {
*(.initcode)
. = ALIGN(4096);
initcode_end = .;
}
initdata_start = .;
.initdata : {
*(.initdata)
. = ALIGN(4096);
initdata_end = .;
}
end = .; _end = .; __end = .;
}