Higher Half and GRUB loading problems [solved]
Posted: Wed Aug 19, 2009 11:50 am
I try to write a higher half kernel. I think to use manipulation with sections. I wrote a linker script, but when I try to load my kernel with GRUB, GRUB says me "Selected item can't fit into memory".
My ld script:
I think somebody helps to stupid noob.
P.S. Sorry for my bad English, English is not my native language.
My ld script:
Code: Select all
OUTPUT_FORMAT("elf32-i386")
ENTRY(_start)
SECTIONS
{
. = 0x00100000;
.loader :
{
*(.loader)
}
. = 0xc0000000;
.text ALIGN(0x1000) :
{
_sttext = . - 0xc0000000;
*(.text)
*(.rodata)
}
.data ALIGN(0x1000) :
{
_stdata = . - 0xc0000000;
*(.data)
}
.bss ALIGN(0x1000) :
{
*(.bss)
*(COMMON)
}
_sztext = SIZEOF(.text);
_szdata = SIZEOF(.data);
}
P.S. Sorry for my bad English, English is not my native language.