Did stuff...

This commit is contained in:
2024-12-30 18:41:35 +01:00
parent a2bc851f22
commit 81255d13ce
10 changed files with 166 additions and 388 deletions
+15 -6
View File
@@ -1,34 +1,41 @@
OUTPUT_FORMAT(elf32-i386)
ENTRY(kmain)
ENTRY(start)
SECTIONS {
. = 0x00100000;
kernel_start = .;
/* Multiboot Header */
.multiboot ALIGN(4) : {
.multiboot ALIGN(4K) : {
*(.multiboot)
}
.boot ALIGN(4K) : {
*(.boot)
}
. += 0xC000000;
/* Kernel Code */
.text ALIGN(4) : {
.text ALIGN(4) : AT(ADDR(.text) - 0xC000000) {
*(.text)
*(.text.*)
}
/* Read-Only Data */
.rodata ALIGN(4) : {
.rodata ALIGN(4) : AT(ADDR(.rodata) - 0xC000000) {
*(.rodata)
*(.rodata.*)
}
/* Read/Write Data */
.data ALIGN(4) : {
.data ALIGN(4) : AT(ADDR(.data) - 0xC000000) {
*(.data)
*(.data.*)
}
/* BSS Section */
.bss ALIGN(4) : {
.bss ALIGN(4) : AT(ADDR(.bss) - 0xC000000) {
*(COMMON)
*(.bss)
*(.bss.*)
@@ -40,4 +47,6 @@ SECTIONS {
*(.note.*)
*(.comment)
}
kernel_end = .;
}