From: Wolfgang Denk Date: Thu, 19 Jun 2008 22:52:47 +0200 Subject: [U-Boot-Users] Non-static global variables cause relocation to fail In-Reply-To: Your message of "Thu, 19 Jun 2008 15:47:01 CDT." <485AC5C5.5080709@freescale.com> Message-ID: <20080619205247.10F95248D2@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de In message <485AC5C5.5080709@freescale.com> you wrote: > > I did say that. Simply making the global variable not static caused it to fail. Ummm... I guess there must be more than one variable in U-Boot, as there are several source files and several board configurations. Also, there are several tool chains being used. You provide NONE of that *essential* information. > Works: > > static struct __attribute__ ((__packed__)) eeprom { > > Doesn't work: > > struct __attribute__ ((__packed__)) eeprom { > > Everything else is the same. What is "same"? Which source file is this? Which line? Which board? Which compiler from which distro? Which binutils? Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de It is undignified for a woman to play servant to a man who is not hers. -- Spock, "Amok Time", stardate 3372.7