aboutsummaryrefslogtreecommitdiff
path: root/flat.lds
diff options
context:
space:
mode:
Diffstat (limited to 'flat.lds')
-rw-r--r--flat.lds24
1 files changed, 24 insertions, 0 deletions
diff --git a/flat.lds b/flat.lds
new file mode 100644
index 0000000..d12b835
--- /dev/null
+++ b/flat.lds
@@ -0,0 +1,24 @@
+OUTPUT_ARCH(i386)
+
+SECTIONS
+{
+ . = 1024K - 64K;
+ .text : { *(.text.startup) *(.text) *(.text.*) }
+ . = ALIGN(4K);
+ .data : { *(.data) }
+ . = ALIGN(16);
+ .rodata : { *(.rodata) }
+ . = ALIGN(16);
+ .bss : { *(.bss) }
+ . = ALIGN(4K);
+ . = 1024K - 128;
+ .init : {
+ *(.init);
+ . = 128 - 16;
+ *(.resetvector);
+ . = 128;
+ }
+}
+
+ENTRY(main)
+