summaryrefslogtreecommitdiff
path: root/src/kernel/elf-link.ld
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/elf-link.ld')
-rw-r--r--src/kernel/elf-link.ld21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/kernel/elf-link.ld b/src/kernel/elf-link.ld
new file mode 100644
index 0000000..a0d60f9
--- /dev/null
+++ b/src/kernel/elf-link.ld
@@ -0,0 +1,21 @@
+OUTPUT_FORMAT(elf32-i386)
+OUTPUT_ARCH(i386)
+
+SECTIONS {
+ . = 0x00030000;
+ .text : {
+ */main.o(.text)
+ *(.text)
+ }
+ .rodata : {
+ *(.rodata)
+ }
+ .data : {
+ *(.data)
+ }
+ . = 0x10000000;
+ .bss : {
+ *(.bss)
+ kernel_bss_end = .;
+ }
+} \ No newline at end of file