Makefile done and kernel booting

This commit is contained in:
2024-09-07 00:36:03 +02:00
parent 32c01291ad
commit a3e5157879
4 changed files with 78 additions and 0 deletions

28
boot/linker.ld Normal file
View File

@ -0,0 +1,28 @@
ENTRY(_start)
SECTIONS
{
. = 2M;
.text BLOCK(4K) : ALIGN(4K)
{
*(.multiboot)
*(.text)
}
.rodata BLOCK(4K) : ALIGN(4K)
{
*(.rodata)
}
.data BLOCK(4K) : ALIGN(4K)
{
*(.data)
}
.bss BLOCK(4K) : ALIGN(4K)
{
*(COMMON)
*(.bss)
}
}