Implemented simple Multiboot1 kernel

This commit is contained in:
2024-12-29 22:02:48 +01:00
parent 84a0d49942
commit bfe67a791e
14 changed files with 488 additions and 25 deletions
+43
View File
@@ -0,0 +1,43 @@
OUTPUT_FORMAT(elf32-i386)
ENTRY(kmain)
SECTIONS {
. = 0x00100000;
/* Multiboot Header */
.multiboot ALIGN(4) : {
*(.multiboot)
}
/* Kernel Code */
.text ALIGN(4) : {
*(.text)
*(.text.*)
}
/* Read-Only Data */
.rodata ALIGN(4) : {
*(.rodata)
*(.rodata.*)
}
/* Read/Write Data */
.data ALIGN(4) : {
*(.data)
*(.data.*)
}
/* BSS Section */
.bss ALIGN(4) : {
*(COMMON)
*(.bss)
*(.bss.*)
}
/* Discarded Sections */
/DISCARD/ : {
*(.note)
*(.note.*)
*(.comment)
}
}