summaryrefslogtreecommitdiff
path: root/config/kernel.ld
diff options
context:
space:
mode:
Diffstat (limited to 'config/kernel.ld')
-rw-r--r--config/kernel.ld36
1 files changed, 36 insertions, 0 deletions
diff --git a/config/kernel.ld b/config/kernel.ld
new file mode 100644
index 0000000..0806257
--- /dev/null
+++ b/config/kernel.ld
@@ -0,0 +1,36 @@
+ENTRY(_start)
+
+SECTIONS
+{
+ . = 1M;
+
+ kernel_start = .;
+
+ . = ALIGN(0x1000);
+
+ .text : {
+ *(.multiboot)
+ *(.text)
+ }
+
+ . = ALIGN(0x1000);
+
+ .rodata : {
+ *(.rodata)
+ }
+
+ . = ALIGN(0x1000);
+
+ .data : {
+ *(.data)
+ }
+
+ . = ALIGN(0x1000);
+
+ .bss : {
+ *(COMMON)
+ *(.bss)
+ }
+
+ kernel_end = .;
+}