[U-Boot-Users] Non-static global variables cause relocation to fail
Timur Tabi
timur at freescale.com
Thu Jun 19 22:47:01 CEST 2008
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
More information about the U-Boot
mailing list