summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorDennis Kobert <dennis@kobert.dev>2019-10-24 17:08:46 +0200
committerDennis Kobert <dennis@kobert.dev>2019-10-24 17:08:46 +0200
commit283f79f93f3e58e818a3476250595de17f47a535 (patch)
treecc8c1e2fe131a98b5fba6fcf1f873ce62d9e53ac /kernel
parent865280798e136eede0897b23e9957b7d9ff8c890 (diff)
Add linker script
Diffstat (limited to 'kernel')
-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)
+ }
+}