[U-Boot-Users] Function pointers after relocation
Wolfgang Denk
wd at denx.de
Wed Jul 2 16:31:12 CEST 2003
Hello,
in message <3F0267CB.8040904 at tait.co.nz> you wrote:
>
> When u-boot has relocated from Flash to RAM, it is correct that function
> pointers (eg. getenv()) still point to the Flash code rather than the
> RAM copy? Would this be corrected by changing the link address, in which
> case where do I find it (the link address that is) - in the .lds file?
This is not correct. The problem is that staticlly initialized data
(like initialized function pointers() must be manually relocated. If
there is such a thing left pointing to flash, it is a bug and should
be fixed.
Which part of the code are you speaking of?
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd at denx.de
"Have you lived in this village all your life?" "No, not yet."
More information about the U-Boot
mailing list