-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlinker.ld
More file actions
47 lines (37 loc) · 723 Bytes
/
Copy pathlinker.ld
File metadata and controls
47 lines (37 loc) · 723 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
ENTRY(_start_32)
KERNEL_HIGHER_OFFSET = 0xFFFFFFFF80000000;
SECTIONS
{
. = 2M;
.boot.text ALIGN(4K) :
{
*(.multiboot)
*(.boot.text)
}
.boot.rodata ALIGN(4K) :
{
*(.boot.rodata)
}
.boot.bss ALIGN(4K) (NOLOAD) :
{
*(.boot.bss)
}
. += KERNEL_HIGHER_OFFSET;
.text ALIGN(4K) : AT(ADDR(.text) - KERNEL_HIGHER_OFFSET)
{
*(.text)
}
.rodata ALIGN(4K) : AT(ADDR(.rodata) - KERNEL_HIGHER_OFFSET)
{
*(.rodata)
}
.data ALIGN(4K) : AT(ADDR(.data) - KERNEL_HIGHER_OFFSET)
{
*(.data)
}
.bss ALIGN(4K) : AT(ADDR(.bss) - KERNEL_HIGHER_OFFSET)
{
*(COMMON)
*(.bss)
}
}