ENTRY(kmain) OUTPUT_FORMAT(binary) KERNEL_VMA = 0x100000; SECTIONS { . = 0x7c00; .boot : { boot/boot.o (.boot) _boot_end = .; } . = KERNEL_VMA; .text : AT(_boot_end) { *(.text) *(.text.*) *(.rodata*) . = ALIGN(0x1000); } .data : { *(.data) . = ALIGN(0x1000); } .eh_frame : { *(.eh_frame) . = ALIGN(0x1000); } .bss : { *(.bss) . = ALIGN(0x1000); } /DISCARD/ : { *(.comment) } }