-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvmlinux.lds.S
More file actions
53 lines (48 loc) · 810 Bytes
/
vmlinux.lds.S
File metadata and controls
53 lines (48 loc) · 810 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
OUTPUT_ARCH(aarch64)
ENTRY(_text)
#define VA_START (0xffff000000000000)
#define TEXT_OFFSET (0x80000)
#define HEAD_FLAGS ((1 << 1) | (0 << 3))
SECTIONS
{
/DISCARD/ : {
*(.discard)
*(.discard.*)
*(.interp .dynamic)
*(.dynsym .dynstr .hash .gnu.hash)
*(.eh_frame)
}
. = VA_START + TEXT_OFFSET;
.head.text : {
_text = .;
*(.head.text)
}
. = ALIGN(0x1000);
.text : {
_stext = .;
*(.text)
}
.data : {
*(.data)
. = ALIGN(0x1000);
. = . + 0x4000;
stack_top = .;
init_pg_dir = .;
. = . + 0x3000;
idmap_pg_dir = .;
. = . + 0x3000;
}
.bss : {
*(.bss)
}
.rodata : {
*(.rodata)
}
.debug : {
*(.debug)
}
_end = .;
kernel_offset = TEXT_OFFSET;
kernel_size = _end - _text;
kernel_flag = HEAD_FLAGS;
}