-
Notifications
You must be signed in to change notification settings - Fork 2
/
linker.ld
55 lines (55 loc) · 953 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
ENTRY(start)
phys = 0xFF800000;
SECTIONS
{
. = 0xFF800000;
.boot_entry_code phys : AT(phys) {
_RECLAIMABLE_CODE_BEGIN_ = .;
boot_entry_code = .;
KEEP(*(.boot_entry_code*))
}
.reclaimable_text : {
reclaimable_text = .;
KEEP(*(.reclaimable_text*))
_RECLAIMABLE_CODE_END_ = .;
}
.reclaimable_data : {
_RECLAIMABLE_DATA_BEGIN_ = .;
reclaimable_data = .;
*(.reclaimable_data*)
_RECLAIMABLE_DATA_END_ = .;
}
.text : {
code = .;
*(.text*)
_TEXT_END_ = .;
}
.rodata : {
rodata = .;
*(.rodata*)
_RODATA_END_ = .;
}
.data : {
data = .;
*(.data*)
}
.reclaimable_bss (NOLOAD) : {
_DATA_END_ = .;
_RECLAIMABLE_BSS_BEGIN_ = .;
reclaimable_bss = .;
KEEP(*(.reclaimable_bss*))
}
_RECLAIMABLE_BSS_END_ = .;
.bss : {
bss = .;
*(COMMON)
KEEP(*(.bss*))
}
_BSS_END_ = .;
end = .;
_IMAGE_END_ = .;
/DISCARD/ : {
*(.note*)
*(.interp)
}
}