old-MTGos-old/user/test-x86_64.ld

31 lines
461 B
Text
Raw Permalink Normal View History

2016-04-26 18:43:12 +00:00
ENTRY(_start)
OUTPUT_FORMAT(elf32-i386)
2016-06-17 19:39:43 +00:00
OUTPUT_ARCH(i386:x86-64)
2016-04-26 18:43:12 +00:00
SECTIONS
{
2016-06-17 19:39:43 +00:00
. = 0x400000;
2016-04-26 18:43:12 +00:00
.text : {
2016-06-17 19:39:43 +00:00
*(.text)
2016-04-26 18:43:12 +00:00
}
2016-06-17 19:39:43 +00:00
.data ALIGN(0x200000) : {
2016-04-26 18:43:12 +00:00
start_ctors = .;
KEEP(*( .init_array ));
KEEP(*(SORT_BY_INIT_PRIORITY( .init_array.* )));
*(.ctors)
end_ctors = .;
start_dtors = .;
*(.dtors)
end_dtors = .;
*(.data)
*(.got)
}
2016-06-17 19:39:43 +00:00
.rodata ALIGN(0x200000) : {
2016-04-26 18:43:12 +00:00
*(.rodata)
}
2016-06-17 19:39:43 +00:00
.bss ALIGN(0x200000) : {
2016-04-26 18:43:12 +00:00
*(.bss)
}
2016-06-17 19:39:43 +00:00
. = ALIGN(0x200000);
2016-04-26 18:43:12 +00:00
}