old-MTGos-old/kernel/kernel-x86_64.ld

32 lines
477 B
Text
Raw Normal View History

ENTRY(_start)
OUTPUT_FORMAT(elf32-i386)
2016-06-16 18:10:07 +00:00
OUTPUT_ARCH(i386:x86-64)
SECTIONS
{
. = 0x100000;
2016-02-06 18:57:44 +00:00
kernel_start = .;
.text : {
*(multiboot)
*(.text)
}
.data ALIGN(4096) : {
start_ctors = .;
KEEP(*( .init_array ));
KEEP(*(SORT_BY_INIT_PRIORITY( .init_array.* )));
2015-10-14 18:14:50 +00:00
*(.ctors)
end_ctors = .;
start_dtors = .;
*(.dtors)
end_dtors = .;
*(.data)
}
.rodata ALIGN(4096) : {
*(.rodata)
}
.bss ALIGN(4096) : {
*(.bss)
}
2016-02-06 18:57:44 +00:00
. = ALIGN(4096);
kernel_end = .;
}