old-MTGos/kernel/loader.ld
2016-08-04 18:46:15 +02:00

28 lines
No EOL
655 B
Text

ENTRY(_start)
SECTIONS
{
. = 0x200000;
kernel_start = .;
.text : {
*(.text)
}
.data : {
start_ctors = .;
KEEP(*( .init_array ));
KEEP(*(SORT_BY_INIT_PRIORITY( .init_array.* )));
*(.ctors)
end_ctors = .;
start_dtors = .;
*(.dtors)
end_dtors = .;
*(.data)
}
.rodata : {
*(.rodata)
}
.bss : {
*(.bss)
*(COMMON)
}
kernel_end = .;
}