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