ENTRY(multiboot_entry)
OUTPUT_FORMAT("elf32-i386")
phys = 0x00100000; /*1 meg*/
virt = 0;
SECTIONS
{
. = virt + phys;
kernelStart = .;
.text : {
*(.boot)
*(.task0)
*(.text)
*(.rdata)
*(.rodata .rodata.*)
kernel_size = .;
LONG(kernelEnd - kernelStart)
. = ALIGN(4096);
} = 0x90
.data : {
*(.data)
initStart = .;
KEEP (*(SORT(.init*)))
initEnd = .;
. = ALIGN(4096);
}
kernelEnd = .;
}
阅读(1096) | 评论(0) | 转发(0) |