summaryrefslogtreecommitdiffhomepage
path: root/src/loader/link.ld
diff options
context:
space:
mode:
authorMarvin Borner2021-07-04 21:31:28 +0200
committerMarvin Borner2021-07-04 21:34:15 +0200
commit9b8698769535846d029c44247956eed9a21f1185 (patch)
tree294a17af4102805ab9863274339e8e030897804e /src/loader/link.ld
Initial commit
Diffstat (limited to 'src/loader/link.ld')
-rw-r--r--src/loader/link.ld35
1 files changed, 35 insertions, 0 deletions
diff --git a/src/loader/link.ld b/src/loader/link.ld
new file mode 100644
index 0000000..aa97f49
--- /dev/null
+++ b/src/loader/link.ld
@@ -0,0 +1,35 @@
+/* MIT License, Copyright (c) 2021 Marvin Borner */
+
+OUTPUT_FORMAT("elf32-i386")
+OUTPUT_ARCH(i386)
+ENTRY(start)
+phys = 0x7e00;
+
+SECTIONS
+{
+ . = phys;
+
+ .text :
+ {
+ *(.text.start)
+ *(.text*)
+ }
+
+ .rodata :
+ {
+ *(.rodata*)
+ }
+
+ .data :
+ {
+ *(.data*)
+ }
+
+ .bss :
+ {
+ *(COMMON)
+ *(.bss)
+ }
+
+ end = .;
+}