Re: Strange problem
Posted: Sun Jul 25, 2010 1:10 am
Surfing into the wiki, i noticed that page: http://wiki.osdev.org/Bran%27s_Known_Bugs
And the bug reported is:
Now everything works fine, but i don't know if it is a solution because now my kernel is only 79906 bytes. And the problem usually happens at 84157 bytes.
And the bug reported is:
So it seems to be something related to my problem, i'm not sure if my problem are the strings or not. But the fact is that every printf into a specific function, or every function call that involves a string (with variable, o simply defined with "...") i tried to use it's solution, that is to change the linker script:As soon as I add strings, things go wrong.
Code: Select all
OUTPUT_FORMAT("binary")
ENTRY(start)
phys = 0x00100000;
SECTIONS
{
.text phys : AT(phys) {
code = .;
*(.text)
*(.rodata)
. = ALIGN(4096);
}
.data : AT(phys + (data - code))
{
data = .;
*(.data)
. = ALIGN(4096);
}
.bss : AT(phys + (bss - code))
{
bss = .;
*(.bss)
. = ALIGN(4096);
}
end = .;
}