aboutsummaryrefslogblamecommitdiffhomepage
path: root/src/arch/x86/mbr/mbr.ld
blob: 46d8a14f878d15f966bd3edf782798f142ef2a08 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
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")
}