-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathlinker.ld
More file actions
63 lines (49 loc) · 851 Bytes
/
linker.ld
File metadata and controls
63 lines (49 loc) · 851 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
ENTRY(_start)
SECTIONS {
. = 0x100000; /* 1 MB offset */
.multiboot2_header : ALIGN(4K) {
KEEP(*(.multiboot2_header))
}
.text : {
*(.text*)
}
.rodata : {
*(.rodata*)
}
.data : {
*(.data*)
*(.dma)
}
.bss : {
*(.bss*)
*(COMMON)
}
.gdt : {
*(.gdt)
}
.idt : {
*(.idt)
}
/* Stack */
. = ALIGN(16);
__stack_bottom = .;
. = . + 64K;
__stack_top = .;
/* Heap */
. = ALIGN(16);
__heap_start = .;
. = . + 64K;
__heap_end = .;
. = ALIGN(4K);
p4_table = .; . = . + 4K;
p3_fb_table = .; . = . + 4K;
/* Experimental, TBD */
. = 0x650000;
.user_task : {
*(.user_task*)
}
. = 0x80000;
.dma : ALIGN(512) {
KEEP(*(.dma))
}
}