1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
ENTRY(loader) OUTPUT_ARCH(i386:i386) OUTPUT_FORMAT(elf32-i386) SECTIONS { . = 0x0100000; .text : { *(.multiboot) *(.text*) *(.rodata) } .data : { start_ctors = .; KEEP(*(.init_array)); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*))); end_ctors = .; } .bss : { *(.bss) } /DISCARD/ : { *(.fini_array*) *(.comment) } }