mirror of
https://github.com/Tom-on64/kern.git
synced 2026-11-03 18:22:22 +00:00
Implemented simple Multiboot1 kernel
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user