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