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-11-22 15:57:25 +03:00
|
|
|
.text . + 0xDFC00000:
|
2008-08-09 12:38:20 +04:00
|
|
|
{
|
2008-11-22 15:57:25 +03:00
|
|
|
*(.text) *(.rdata)
|
|
|
|
. = ALIGN(4096);
|
|
|
|
}
|
|
|
|
|
|
|
|
.flat . + 0x00400000:
|
|
|
|
{
|
|
|
|
*(.flat) *(.data)
|
2009-04-23 16:26:47 +04:00
|
|
|
. = ALIGN(4096);
|
2008-08-09 12:38:20 +04:00
|
|
|
}
|
2008-10-30 22:23:42 +03:00
|
|
|
|
2009-04-23 16:26:47 +04:00
|
|
|
.edata :
|
2008-10-30 22:23:42 +03:00
|
|
|
{
|
|
|
|
*(.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)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|