I didn’t know how to fix this issue in Linker descriptor file.
But I had alternate solution that is, I replaced the above
code with:
static const char l[] = "xwr";
In this case string “xwr” was in .data section.
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?
U_BOOT_CMD macro kind of does the trick for entries of u-boot CLI, but
when I tried to mimic this logic buy organizing special section for my
variables, I have here and there, it didn't work. Probably I miss
something.
Does anybody have a suggestion?
Thanks,
Leonid.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users