diff options
Diffstat (limited to 'src/arch/x86/mbr/mbr.ld')
-rw-r--r-- | src/arch/x86/mbr/mbr.ld | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/arch/x86/mbr/mbr.ld b/src/arch/x86/mbr/mbr.ld new file mode 100644 index 0000000..46d8a14 --- /dev/null +++ b/src/arch/x86/mbr/mbr.ld @@ -0,0 +1,11 @@ +OUTPUT_FORMAT(elf32-i386) +OUTPUT_ARCH(i386) + +SECTIONS { + . = 0x7c00; + .boot : { *(.boot) } + _boot_end = .; + /DISCARD/ : { *(.*) } + + ASSERT(_boot_end - 0x7c00 == 512, "boot sector must be exact 512 bytes") +} |