2016-05-07 14:59:40 +00:00
|
|
|
ENTRY(_start)
|
2016-05-07 17:45:04 +00:00
|
|
|
OUTPUT_FORMAT(elf32-i386)
|
2016-05-07 14:59:40 +00:00
|
|
|
OUTPUT_ARCH(i386:i386)
|
|
|
|
|
|
|
|
SECTIONS
|
|
|
|
{
|
|
|
|
. = 0x40000000;
|
|
|
|
.text : {
|
|
|
|
*(.text)
|
|
|
|
}
|
|
|
|
.data ALIGN(4096) : {
|
|
|
|
start_ctors = .;
|
|
|
|
KEEP(*( .init_array ));
|
|
|
|
KEEP(*(SORT_BY_INIT_PRIORITY( .init_array.* )));
|
|
|
|
end_ctors = .;
|
|
|
|
|
|
|
|
start_dtors = .;
|
|
|
|
KEEP(*( .fini_array ));
|
|
|
|
end_dtors = .;
|
|
|
|
|
|
|
|
*(.data)
|
|
|
|
}
|
|
|
|
.rodata ALIGN(4096) : {
|
|
|
|
*(.rodata)
|
|
|
|
}
|
|
|
|
.bss ALIGN(4096) : {
|
|
|
|
*(.bss)
|
|
|
|
}
|
|
|
|
. = ALIGN(4096);
|
|
|
|
}
|