summaryrefslogtreecommitdiffstats
path: root/arch/x86/boot/linker.ld
diff options
context:
space:
mode:
authorJoursoir <chat@joursoir.net>2021-08-27 17:57:19 +0000
committerJoursoir <chat@joursoir.net>2021-08-27 17:57:19 +0000
commitd206791e894510d04adf6b24d6da729ca85604e7 (patch)
tree26851919ee8e9bc45745ce0803ff346533b030ab /arch/x86/boot/linker.ld
parent50742d6dc7ff563e8283f6b3e2aab08e3970c0fa (diff)
downloadmfsos-d206791e894510d04adf6b24d6da729ca85604e7.tar.gz
mfsos-d206791e894510d04adf6b24d6da729ca85604e7.tar.bz2
mfsos-d206791e894510d04adf6b24d6da729ca85604e7.zip
x86/boot: add simple linker script
Diffstat (limited to 'arch/x86/boot/linker.ld')
-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;
+}