OUTPUT_FORMAT(binary) MEMORY { bootsector : ORIGIN = 0, LENGTH = 512 free_ram : ORIGIN = 512, LENGTH = (4096 - 512) } SECTIONS { . = 0x0; .text : { *(.text) . = 512; } > bootsector .data : { *(.data) } > bootsector .bss : { *(.bss) } > free_ram }