From d206791e894510d04adf6b24d6da729ca85604e7 Mon Sep 17 00:00:00 2001 From: Joursoir Date: Fri, 27 Aug 2021 17:57:19 +0000 Subject: x86/boot: add simple linker script --- arch/x86/boot/linker.ld | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 arch/x86/boot/linker.ld 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; +} -- cgit v1.2.3-18-g5258