summaryrefslogtreecommitdiff
path: root/kernel/link.ld
diff options
context:
space:
mode:
authorJake Mannens <jake72360@gmail.com>2018-06-16 04:49:57 +1000
committerJake Mannens <jake72360@gmail.com>2018-06-16 04:49:57 +1000
commit3e9bdcca84e22c997a071dddf37449ead85aed75 (patch)
tree06def7ef704b348cdef2b704d3357b79d22f00bd /kernel/link.ld
Initial commit
Diffstat (limited to 'kernel/link.ld')
-rw-r--r--kernel/link.ld11
1 files changed, 11 insertions, 0 deletions
diff --git a/kernel/link.ld b/kernel/link.ld
new file mode 100644
index 0000000..67ae357
--- /dev/null
+++ b/kernel/link.ld
@@ -0,0 +1,11 @@
+OUTPUT_FORMAT(elf32-i386)
+/* OUTPUT_FORMAT(binary) */
+ENTRY(kboot)
+SECTIONS
+{
+ . = 0x100000;
+ .mboothdr : { *(.mboothdr) }
+ .text : { *(.text) }
+ .data : { *(.data) }
+ .bss : { *(.bss) }
+}