ENTRY(_start) SECTIONS { . = 1M; .multiboot ALIGN(8) : { KEEP(*(.multiboot)) } .text ALIGN(16) : { *(.text .text.*) } .rodata ALIGN(16) : { *(.rodata .rodata.*) } .data ALIGN(16) : { *(.data .data.*) } .init_array ALIGN(8) : { __init_array_start = .; KEEP(*(SORT(.init_array.*))) KEEP(*(.init_array)) __init_array_end = .; } .bss ALIGN(16) : { *(COMMON) *(.bss .bss.*) } /DISCARD/ : { *(.comment) *(.eh_frame) *(.note.GNU-stack) } }