forked from likey99/hvisor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
aarch64.lds
47 lines (34 loc) · 957 Bytes
/
aarch64.lds
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(arch_entry)
BASE_ADDRESS = 0xffffc0200000;
SECTIONS
{
. = BASE_ADDRESS;
.header : {
__header_start = .;
KEEP(*(.header))
}
. = ALIGN(4K);
.text : { *(.text .text.*) }
. = ALIGN(4K);
.rodata : { *(.rodata .rodata.*) }
. = ALIGN(4K);
.data : { *(.data .data.*) *(.got .got.*) }
. = ALIGN(4K);
.bootstrap_page_tables : { bootstrap_pt_l0 = .;
. = . + (1 << 12); bootstrap_pt_l1_hyp_uart = .;
. = . + (1 << 12); bootstrap_pt_l1_trampoline = .;
. = . + (1 << 12); bootstrap_pt_l2_hyp_uart = .;
. = . + (1 << 12); } .trampoline : { __trampoline_start = .; *(.trampoline) }
. = ALIGN(4K);
.bss : { *(.bss .bss.*) *(COMMON)
. = ALIGN(4K);
__boot_stack = .;
. = . + 0x4000;
__boot_stack_top = .;
}
. = ALIGN(4K);
__core_end = .;
__entry_offset = arch_entry - BASE_ADDRESS;
__core_size = __core_end - BASE_ADDRESS;
/DISCARD/ : { *(.comment) *(.gnu*) *(.note*) *(.eh_frame*) }
}