summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--kernel/.gitignore1
-rw-r--r--kernel/linker.ld16
2 files changed, 17 insertions, 0 deletions
diff --git a/kernel/.gitignore b/kernel/.gitignore
new file mode 100644
index 0000000..c21152d
--- /dev/null
+++ b/kernel/.gitignore
@@ -0,0 +1 @@
+**.o
diff --git a/kernel/linker.ld b/kernel/linker.ld
new file mode 100644
index 0000000..cef8809
--- /dev/null
+++ b/kernel/linker.ld
@@ -0,0 +1,16 @@
+ENTRY(start)
+
+SECTIONS {
+ . = 1M;
+
+ .boot :
+ {
+ /* ensure that the multiboot heater is at the beginning */
+ *(.multiboot_header)
+ }
+
+ .text :
+ {
+ *(.text)
+ }
+}