summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/x86/boot/linker.ld10
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/x86/boot/linker.ld b/arch/x86/boot/linker.ld
new file mode 100644
index 0000000..5e8dfd6
--- /dev/null
+++ b/arch/x86/boot/linker.ld
@@ -0,0 +1,10 @@
+OUTPUT_FORMAT("binary")
+OUTPUT_ARCH(i386)
+ENTRY(_start)
+
+SECTIONS
+{
+ /* BIOS likes always to load the boot sector to the address 0x7c00,
+ where it is sure will not be occupied by important routines. */
+ . = 0x7c00;
+}