course 3 (vga and linker config)
[lunaix-os.git] / lunaix-os / linker.ld
diff --git a/lunaix-os/linker.ld b/lunaix-os/linker.ld
new file mode 100644 (file)
index 0000000..79dd63a
--- /dev/null
@@ -0,0 +1,23 @@
+ENTRY(start_)
+
+SECTIONS {
+    . = 0x100000;
+
+    .text BLOCK(4K) : {
+        * (.multiboot)
+        * (.text)
+    }
+
+    .bss BLOCK(4K) : {
+        * (COMMON)
+        * (.bss)
+    }
+
+    .data BLOCK(4k) : {
+        * (.data)
+    }
+
+    .rodata BLOCK(4K) : {
+        * (.rodata)
+    }
+}
\ No newline at end of file