From: Andreas Engel Date: Fri, 2 Jul 2004 13:54:34 +0200 Subject: [U-Boot-Users] global data pointer on arm In-Reply-To: <20040702131439.2e53029e@majestix> References: <20040702131439.2e53029e@majestix> Message-ID: <20040702135434.071ba34d@majestix> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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