summaryrefslogtreecommitdiff
path: root/linker.ld
diff options
context:
space:
mode:
Diffstat (limited to 'linker.ld')
-rw-r--r--linker.ld28
1 files changed, 28 insertions, 0 deletions
diff --git a/linker.ld b/linker.ld
new file mode 100644
index 0000000..a2529b3
--- /dev/null
+++ b/linker.ld
@@ -0,0 +1,28 @@
+ENTRY(_start)
+
+SECTIONS
+{
+ . = 1M;
+
+ .text BLOCK(4k) : ALIGN(4k)
+ {
+ *(.multiboot)
+ *(.text)
+ }
+
+ .rodata BLOCK(4k) : ALIGN(4k)
+ {
+ *(.rodata)
+ }
+
+ .data BLOCK(4k) : ALIGN(4k)
+ {
+ *(.data)
+ }
+
+ .bss BLOCK(4k) : ALIGN(4k)
+ {
+ *(COMMON)
+ *(.bss)
+ }
+}