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

28
arch/x86/boot/setup.ld Normal file
View File

@@ -0,0 +1,28 @@
OUTPUT_FORMAT(binary)
OUTPUT_ARCH(i386)
ENTRY(_start)
SECTIONS {
. = 0;
.bstext : {
*(.bstext)
. = 495;
} =0xffffffff
.text : {*(.text .text.*)}
. = ALIGN(16);
.rodata : {*(.rodata .rodata.*)}
. = ALIGN(16);
.data : {*(.data .data.*)}
setup_size = ALIGN(ABSOLUTE(.), 4096);
. = ALIGN(16);
.bss : {*(.bss) }
. = ALIGN(16);
/DISCARD/ : {
*(.note*)
}
}