-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathkernel.ld
More file actions
43 lines (39 loc) · 740 Bytes
/
kernel.ld
File metadata and controls
43 lines (39 loc) · 740 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
SEARCH_DIR("=/usr/lib/arm-none-eabi/lib");
SECTIONS {
/* Loader section that boots and setup the mmu before going into virtual
* addressing
*/
. = 0x8000;
__start = .;
.init : {
build/loader.o(.text* .data* .bss* .rodata*)
}
.initsys : {
build/initsys.o(.text* .data* .bss* .rodata*)
}
__kernel_phy_start = ALIGN(4k);
.text (__kernel_phy_start + 0xf0000000) : AT(__kernel_phy_start) {
*(.text*)
}
. = ALIGN(4K);
.rodata : {
*(.rodata*)
}
. = ALIGN(4K);
.data : {
*(.data)
}
. = ALIGN(4K);
.bss : {
__kernel_bss_start = ABSOLUTE(.);
*(.bss)
*(COMMON)
__kernel_bss_end = ABSOLUTE(.);
}
. = ALIGN(4K);
__ramfs_start = .;
.fs : {
build/fs.img(.data*)
}
__kernel_phy_end = . - 0xf0000000;
}