feat: add initial impl of efi-stub and kernel

This commit is contained in:
2026-01-28 16:01:38 +08:00
commit 1233ae9e9b
21 changed files with 845 additions and 0 deletions

29
arch/x86/kernel_bin.ld Normal file
View File

@@ -0,0 +1,29 @@
OUTPUT_ARCH(i386:x86_64)
ENTRY(kernel_start)
SECTIONS {
.text : {
*(.text)
*(.text.*)
}
.rodata : {
*(.rodata)
*(.rodata.*)
}
.data : {
*(.data)
*(.data.*)
}
.bss : {
*(.bss)
*(.bss.*)
*(COMMON)
}
.pgtable : {
*(.pgtable)
}
. = ALIGN(0x1000);
}