kolibrios/kernel/branches/kolibri_pe/ld.x
Sergey Semyonov (Serge) 4637e1f6a3 splitting kernel into sections
git-svn-id: svn://kolibrios.org@851 a494cfbc-eb01-0410-851d-a64ba20cac60
2008-08-10 05:23:24 +00:00

42 lines
401 B
Plaintext

ENTRY(__start)
OUTPUT_FORMAT(pei-i386)
SECTIONS
{
. = SIZEOF_HEADERS;
. = ALIGN(32);
.boot . + __image_base__ :
{
*(.boot)
*(.init)
. = ALIGN(4096);
}
.flat :
{
*(.flat)
}
__edata = .;
.bss ALIGN(4096) :
{
*(.bss) *(COMMON)
}
/DISCARD/ :
{
*(.debug$S)
*(.debug$T)
*(.debug$F)
*(.drectve)
*(.reloc)
*(.edata)
}
}