fix: add Xen PVH ELF note to enable QEMU -kernel boot

Co-authored-by: aider (openrouter/moonshotai/kimi-k2.6) <aider@aider.chat>
This commit is contained in:
2026-05-04 11:15:50 +03:00
parent 0d49827035
commit efcc54ed4b
2 changed files with 14 additions and 0 deletions
+5
View File
@@ -27,4 +27,9 @@ SECTIONS
*(COMMON) *(COMMON)
__bss_end = .; __bss_end = .;
} }
.note : ALIGN(4)
{
*(.note.Xen)
}
} }
+9
View File
@@ -88,6 +88,15 @@ long_mode_start:
hlt hlt
jmp 1b jmp 1b
.section .note.Xen, "a", @note
.align 4
.long 4
.long 4
.long 18
.asciz "Xen"
.align 4
.long _start
.section .rodata .section .rodata
.align 8 .align 8
gdt64: gdt64: