summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2025-04-03 14:39:21 -0400
committerFreya Murphy <freya@freyacat.org>2025-04-03 14:39:21 -0400
commit7da9e56268ec90261be8ef3002cef252c76c826f (patch)
tree379afbba6a18f6e3a2012f5848cae26cd5e3df42 /kernel
parentworking entry for long mode (diff)
downloadcomus-7da9e56268ec90261be8ef3002cef252c76c826f.tar.gz
comus-7da9e56268ec90261be8ef3002cef252c76c826f.tar.bz2
comus-7da9e56268ec90261be8ef3002cef252c76c826f.zip
grub
Diffstat (limited to 'kernel')
-rw-r--r--kernel/kernel.ld14
1 files changed, 12 insertions, 2 deletions
diff --git a/kernel/kernel.ld b/kernel/kernel.ld
index eed5e20..b31cbf0 100644
--- a/kernel/kernel.ld
+++ b/kernel/kernel.ld
@@ -4,10 +4,14 @@ SECTIONS
{
. = 1M;
- .text : {
- *(.text .stub .text.* .gnu.linkonce.t.*)
+ . = ALIGN(0x1000);
+
+ .boot : {
+ *(.multiboot)
}
+ . = ALIGN(0x1000);
+
.rodata : {
*(.rodata .rodata.* .gnu.linkonce.r.*)
}
@@ -20,6 +24,12 @@ SECTIONS
. = ALIGN(0x1000);
+ .text : {
+ *(.text .stub .text.* .gnu.linkonce.t.*)
+ }
+
+ . = ALIGN(0x1000);
+
.bss : {
*(COMMON)
*(.bss .bss.*)