AArch64 EL2 hypervisor for QEMU virt that boots at EL2
1OUTPUT_ARCH(aarch64)
2ENTRY(_guest_start)
3
4GUEST_BASE = 0x40000000;
5
6SECTIONS
7{
8 . = GUEST_BASE;
9 __guest_start_addr = .;
10
11 .text : ALIGN(4096) {
12 KEEP(*(.text.entry))
13 KEEP(*(.text.vectors))
14 *(.text .text.*)
15 }
16
17 .rodata : ALIGN(16) {
18 *(.rodata .rodata.*)
19 }
20
21 .data : ALIGN(16) {
22 *(.data .data.*)
23 }
24
25 .bss : ALIGN(16) {
26 __guest_bss_start = .;
27 *(.bss .bss.* COMMON)
28 __guest_bss_end = .;
29 }
30
31 . = ALIGN(4096);
32 __guest_image_end = .;
33}