2015-10-10 12:59:23 +00:00
|
|
|
ENTRY(_start)
|
2015-10-13 14:11:06 +00:00
|
|
|
OUTPUT_FORMAT(elf32-i386)
|
|
|
|
OUTPUT_ARCH(i386:i386)
|
2015-10-10 12:59:23 +00:00
|
|
|
SECTIONS
|
|
|
|
{
|
|
|
|
. = 0x100000;
|
|
|
|
.text : {
|
|
|
|
*(multiboot)
|
|
|
|
*(.text)
|
|
|
|
}
|
|
|
|
.data ALIGN(4096) : {
|
2015-10-14 18:02:41 +00:00
|
|
|
start_ctors = .;
|
|
|
|
KEEP(*( .init_array ));
|
|
|
|
KEEP(*(SORT_BY_INIT_PRIORITY( .init_array.* )));
|
2015-10-14 18:14:50 +00:00
|
|
|
*(.ctors)
|
2015-10-14 18:02:41 +00:00
|
|
|
end_ctors = .;
|
|
|
|
start_dtors = .;
|
|
|
|
*(.dtors)
|
|
|
|
end_dtors = .;
|
2015-10-10 12:59:23 +00:00
|
|
|
*(.data)
|
|
|
|
}
|
|
|
|
.rodata ALIGN(4096) : {
|
|
|
|
*(.rodata)
|
|
|
|
}
|
|
|
|
.bss ALIGN(4096) : {
|
|
|
|
*(.bss)
|
|
|
|
}
|
|
|
|
}
|