about summary refs log tree commit diff stats
path: root/kernel.soso/link.ld
diff options
context:
space:
mode:
Diffstat (limited to 'kernel.soso/link.ld')
-rw-r--r--kernel.soso/link.ld34
1 files changed, 34 insertions, 0 deletions
diff --git a/kernel.soso/link.ld b/kernel.soso/link.ld
new file mode 100644
index 00000000..1787a976
--- /dev/null
+++ b/kernel.soso/link.ld
@@ -0,0 +1,34 @@
+ENTRY(_start)
+
+SECTIONS
+{
+        . = 1M;
+
+        /* Code. */
+        .text BLOCK(4K) : ALIGN(4K)
+        {
+                *(.multiboot)
+                *(.text)
+        }
+
+        /* Read-only data. */
+        .rodata BLOCK(4K) : ALIGN(4K)
+        {
+                *(.rodata)
+        }
+
+        /* Read-write data (initialized) */
+        .data BLOCK(4K) : ALIGN(4K)
+        {
+                *(.data)
+        }
+
+        /* Read-write data (uninitialized) and stack */
+        .bss BLOCK(4K) : ALIGN(4K)
+        {
+                *(COMMON)
+                *(.bss)
+        }
+
+       _end = .;
+}