OUTPUT_FORMAT("binary") . = 0x8200; SECTIONS { .prelude : { KEEP(*(.prelude)) *(.prelude) } .text : { *(.text) *(.text.*) } .data : { *(.data) *(.data.*) } .bss : { *(.bss) *(.bss.*) } .rodata : { *(.rodata) *(.rodata.*) } .magic : { /* Magic bytes the prelude uses to make sure it's loaded the subsequent sectors correctly. */ LONG(0x544e4150) } boot1_magic = ADDR(.magic); /* Define a symbol for the total length of the binary, so the prelude knows how many blocks to * load from disk. */ boot1_bin_len = . - 0x8200; boot1_bin_sectors = (boot1_bin_len + 511) / 512; }