OUTPUT_FORMAT(binary) ENTRY(_start) SECTIONS { /* Set the location counter to 0x100000 (1MB) */ . = 0x100000; .multiboot : { KEEP(*(.multiboot)) } /* Define the .text section at the current location */ .text : { /* Put all .text sections from all input files here */ *(.text) } /* Define the .data section immediately after .text */ .data : { /* Put all .data sections §from all input files here */ *(.data) } /* Define the .bss section immediately after .data */ .bss : { /* Put all .bss sections from all input files here */ *(.bss) } /* End of the linker script */ }