summaryrefslogtreecommitdiff
path: root/kernel/arch/x86_64/linker.ld
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/arch/x86_64/linker.ld')
-rw-r--r--kernel/arch/x86_64/linker.ld21
1 files changed, 21 insertions, 0 deletions
diff --git a/kernel/arch/x86_64/linker.ld b/kernel/arch/x86_64/linker.ld
new file mode 100644
index 0000000..460bb14
--- /dev/null
+++ b/kernel/arch/x86_64/linker.ld
@@ -0,0 +1,21 @@
+ENTRY(_start)
+
+SECTIONS {
+ . = 0x10000;
+ __kstart = .;
+
+ .text : {
+ *(.text)
+ }
+
+ .data : {
+ *(.data)
+ }
+
+ .bss : {
+ *(.bss)
+ *(COMMON)
+ }
+
+ __kend = .;
+}