first commit

This commit is contained in:
Justus Wolff
2026-02-26 00:06:36 +01:00
commit 115b4c88a1
16 changed files with 750 additions and 0 deletions

30
linker.ld Normal file
View File

@@ -0,0 +1,30 @@
ENTRY(_start)
SECTIONS {
. = ALIGN(8);
.boot : {
KEEP(*(.multiboot))
}
. = 1M; /* Load kernel at 1MB */
.text BLOCK(4K) : ALIGN(4K)
{
*(.text)
}
.rodata BLOCK(4K) : ALIGN(4K)
{
*(.rodata)
}
.data BLOCK(4K) : ALIGN(4K)
{
*(.data)
}
.bss BLOCK(4K) : ALIGN(4K)
{
*(COMMON)
*(.bss)
}
}