2008-08-09 12:38:20 +04:00
|
|
|
|
|
|
|
ENTRY(__start)
|
|
|
|
|
|
|
|
OUTPUT_FORMAT(pei-i386)
|
|
|
|
|
|
|
|
SECTIONS
|
|
|
|
{
|
|
|
|
|
|
|
|
. = SIZEOF_HEADERS;
|
|
|
|
. = ALIGN(32);
|
|
|
|
|
2008-08-10 09:23:24 +04:00
|
|
|
.boot . + __image_base__ :
|
|
|
|
{
|
|
|
|
*(.boot)
|
2008-08-13 23:13:40 +04:00
|
|
|
*(.start)
|
2008-08-10 09:23:24 +04:00
|
|
|
. = ALIGN(4096);
|
|
|
|
}
|
|
|
|
|
2008-08-13 23:13:40 +04:00
|
|
|
.flat . + 0xE0000000:
|
2008-08-09 12:38:20 +04:00
|
|
|
{
|
2008-08-13 23:13:40 +04:00
|
|
|
*(.flat) *(.text) *(.rdata) *(.data)
|
2008-08-09 12:38:20 +04:00
|
|
|
}
|
2008-10-30 22:23:42 +03:00
|
|
|
|
|
|
|
.edata ALIGN(32):
|
|
|
|
{
|
|
|
|
*(.edata)
|
|
|
|
_code_end = .;
|
2008-11-05 10:10:14 +03:00
|
|
|
. = ALIGN(16);
|
2008-10-30 22:23:42 +03:00
|
|
|
}
|
|
|
|
|
2008-08-13 23:13:40 +04:00
|
|
|
__edata = . - 0xE0000000;
|
2008-08-09 12:38:20 +04:00
|
|
|
|
|
|
|
.bss ALIGN(4096) :
|
|
|
|
{
|
|
|
|
*(.bss) *(COMMON)
|
|
|
|
}
|
2008-08-20 22:37:48 +04:00
|
|
|
__kernel_end = . - 0xE0000000;
|
2008-08-09 12:38:20 +04:00
|
|
|
|
2008-10-30 22:23:42 +03:00
|
|
|
|
|
|
|
|
2008-08-09 12:38:20 +04:00
|
|
|
/DISCARD/ :
|
|
|
|
{
|
|
|
|
*(.debug$S)
|
|
|
|
*(.debug$T)
|
|
|
|
*(.debug$F)
|
|
|
|
*(.drectve)
|
|
|
|
*(.reloc)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|