converted to protected mode, not done
[ld45_start_nothing] / game.ld
diff --git a/game.ld b/game.ld
new file mode 100644 (file)
index 0000000..52a25f5
--- /dev/null
+++ b/game.ld
@@ -0,0 +1,29 @@
+OUTPUT_ARCH(i386)
+
+SECTIONS {
+       /* BIOS loads the boot code at 7c00h */
+       . = 0x7c00;
+
+       .boot : { * (.boot); }
+
+       /* second stage boot loader */
+       .boot2 : {
+               * (.boot2);
+               * (.bootend);
+               /* pad the boot loader to the next sector boundary */
+               . = ALIGN(512);
+       }
+       _boot2_size = SIZEOF(.boot2);
+
+       /* main program will be loaded at 1MB by the second stage
+        * boot loader
+        */
+       . = 1M;
+       _main_start = .;
+
+       .text : { * (.text); }
+       .data : { * (.data); }
+
+       _main_size = . - _main_start;
+       _mem_start = .;
+}