summaryrefslogtreecommitdiff
path: root/linker.ld
diff options
context:
space:
mode:
authordzwdz2021-06-24 20:41:07 +0200
committerdzwdz2021-06-24 20:41:07 +0200
commitfde20f86f5be5a39fd3eadf95ba71761d173e0ce (patch)
tree2fc4c65b6b610ee0aa3c82228bcf8255337b0fd6 /linker.ld
Hello world o/
Diffstat (limited to 'linker.ld')
-rw-r--r--linker.ld24
1 files changed, 24 insertions, 0 deletions
diff --git a/linker.ld b/linker.ld
new file mode 100644
index 0000000..dd7c64c
--- /dev/null
+++ b/linker.ld
@@ -0,0 +1,24 @@
+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)
+ }
+}