Blob
1 ENTRY(_start)2 OUTPUT_ARCH(i386:i386)3 OUTPUT_FORMAT(elf32-i386) /* pretend that we are a i386 */5 MEMORY {6 BOOTSECT : ORIGIN = 0x7C00, LENGTH = 5127 ROM : ORIGIN = 0x7E00, LENGTH = 40968 RAM : ORIGIN = 0, LENGTH = 40969 }11 SECTIONS {12 .boot : {13 *(.boot)14 } > BOOTSECT16 .kernel : {17 *(.text)18 *(.rodata)19 *(.data)20 *(.bss)21 } > RAM AT> ROM22 /* this will cause the kernel to be directly after the loader on floppy,23 * while starting at 0x1000:0 in memory.*/25 /DISCARD/ : {26 *(.dynamic)27 *(.gnu.hash)28 *(.dynsym)29 *(.dynstr)30 *(.hash)31 *(.comment)32 }33 }