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:
@@ -27,4 +27,9 @@ SECTIONS
|
||||
*(COMMON)
|
||||
__bss_end = .;
|
||||
}
|
||||
|
||||
.note : ALIGN(4)
|
||||
{
|
||||
*(.note.Xen)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -88,6 +88,15 @@ long_mode_start:
|
||||
hlt
|
||||
jmp 1b
|
||||
|
||||
.section .note.Xen, "a", @note
|
||||
.align 4
|
||||
.long 4
|
||||
.long 4
|
||||
.long 18
|
||||
.asciz "Xen"
|
||||
.align 4
|
||||
.long _start
|
||||
|
||||
.section .rodata
|
||||
.align 8
|
||||
gdt64:
|
||||
|
||||
Reference in New Issue
Block a user