From mboxrd@z Thu Jan 1 00:00:00 1970 From: Timur Tabi Date: Thu, 19 Jun 2008 15:47:01 -0500 Subject: [U-Boot-Users] Non-static global variables cause relocation to fail In-Reply-To: <20080619204505.48ABD248D2@gemini.denx.de> References: <20080619204505.48ABD248D2@gemini.denx.de> Message-ID: <485AC5C5.5080709@freescale.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Wolfgang Denk wrote: > You don't seriously expect any real help given such a vague > description? It would be somewhat helpful if you said exactly which > changes cause the code to work or fail... I did say that. Simply making the global variable not static caused it to fail. Works: static struct __attribute__ ((__packed__)) eeprom { Doesn't work: struct __attribute__ ((__packed__)) eeprom { Everything else is the same. -- Timur Tabi Linux kernel developer at Freescale