aboutsummaryrefslogtreecommitdiff
path: root/src/linker_kernel.ld
diff options
context:
space:
mode:
authorczjstmax <jstmaxlol@disroot.org>2026-02-22 02:33:30 +0100
committerczjstmax <jstmaxlol@disroot.org>2026-02-22 02:33:30 +0100
commitfea8e314e6291bd55fd96b1bec478d500b548489 (patch)
tree3df2fa6b06924ede0d31f06c1452b14bc7654006 /src/linker_kernel.ld
initial commit
i cant get the stage2 to load kernel, or the kernel to print. it's 2 am so gn for now. Signed-off-by: czjstmax <jstmaxlol@disroot.org>
Diffstat (limited to 'src/linker_kernel.ld')
-rw-r--r--src/linker_kernel.ld7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/linker_kernel.ld b/src/linker_kernel.ld
new file mode 100644
index 0000000..1153734
--- /dev/null
+++ b/src/linker_kernel.ld
@@ -0,0 +1,7 @@
+ENTRY(kmain)
+SECTIONS {
+ . = 0x2000; /* load kernel at 0x2000 */
+ .text : { *(.text) }
+ .data : { *(.data) }
+ .bss : { *(.bss) }
+}