aboutsummaryrefslogtreecommitdiff
path: root/src/arch/x86_64/linker.ld
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/x86_64/linker.ld')
-rw-r--r--src/arch/x86_64/linker.ld16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/arch/x86_64/linker.ld b/src/arch/x86_64/linker.ld
new file mode 100644
index 0000000..5d788f1
--- /dev/null
+++ b/src/arch/x86_64/linker.ld
@@ -0,0 +1,16 @@
+ENTRY(start)
+
+SECTIONS {
+ . = 1M;
+
+ .boot :
+ {
+ /* ensure that the multiboot header is at the beginning */
+ *(.multiboot_header)
+ }
+
+ .text :
+ {
+ *(.text)
+ }
+}