[U-Boot-Users] global data pointer on arm
Andreas Engel
Andreas.Engel at marconi.com
Fri Jul 2 13:54:34 CEST 2004
On Fri, 2 Jul 2004 13:14:39 +0200 Andreas Engel wrote:
> compiled code of getenv_r destroys the content of r8, which holds the
> global data pointer. Of course this makes u-boot fail. Is this a bug
> in u-boot or the toolchain? Or did I miss something else?
Umm... of course I missed something: I shouldn't stop reading in the
middle of the relevant gcc info page.
JFTR: in cpu/epxa/config.mk add '-ffixed-r8' to PLATFORM_RELFLAGS.
Soliloquizing,
Andreas
More information about the U-Boot
mailing list