
On 4/13/07, Leonid Leonid@a-k-a.net wrote:
Hi:
Because u-boot reallocates itself, static/global variables cannot be freely used there - if something is initialized using pointers on such variables, they actually points to wrong addresses (may be on flash) after reallocation.
What is simplest way to fix this problem - surely many people have bumped into that?
I've got a fix in the works for this. It's based on the work done by Txema Lopez. The problem is related to the linker script and the options used to get a relocatableff target.
See Txema's patch here:
http://thread.gmane.org/gmane.comp.boot-loaders.u-boot/26372
I'm busy at the moment getting some kernel stuff sorted out. I should be back on the u-boot side of things by early next week.
Cheers, g.