aboutsummaryrefslogtreecommitdiff
path: root/src/linker.ld
diff options
context:
space:
mode:
Diffstat (limited to 'src/linker.ld')
-rw-r--r--src/linker.ld29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/linker.ld b/src/linker.ld
new file mode 100644
index 0000000..ed8fc5d
--- /dev/null
+++ b/src/linker.ld
@@ -0,0 +1,29 @@
+ENTRY(_start)
+OUTPUT_FORMAT(elf64-x86-64)
+
+SECTIONS {
+
+ . = 1M;
+
+ .text : ALIGN(4)
+ {
+ *(.multiboot)
+ *(.text)
+ }
+ .rodata : ALIGN(4)
+ {
+ *(.rodata)
+ }
+ .data : ALIGN(4)
+ {
+ *(.data)
+ }
+ .bss : ALIGN(4)
+ {
+ _bss_start = .;
+ *(.bss);
+ _bss_end = .;
+ *(COMMON);
+ }
+
+} \ No newline at end of file