[U-Boot] ALERT! >90% of all board configurations BROKEN

Reinhard Meyer
2010-10-25T20:28:21Z

Dear Wolfgang Denk,
> this is an ALERT!
>
> I just noticed (when debugging a strage phenomenon) that most of the
> board configurations (170 out of 191 for PowerPC, _ALL_ for ARM) are
> broken, because the size of struct global_data has grown but
> CONFIG_SYS_GBL_DATA_SIZE has not been adapted (commit 91a7675 added
> 32 bytes - and yes, I am to blame for that, where is that brown paper
> bag...)
>
> Fact is, the overwhelming majority of boards has currently problems
> like this:
>
> sizeof(struct global_data) = 136, CONFIG_SYS_GBL_DATA_SIZE = 128
>
>
> This may appear to work, or may cause "funny" errors, or simply hangs
> the board hard very early in booting.

Grep-ing for CONFIG_SYS_GBL_DATA_SIZE in *.[chsS] Makefile *.ld it
seems to me that with "ELF-reloc" active that define is not used
anywhere at least in ARM.

Or did I miss a place?

Best Regards,
Reinhard