Hi, On Mon, 18 Dec 2017 10:17:03 +0100 Marek Vasut wrote: > On 12/18/2017 10:02 AM, [email protected] wrote: > > From: Patrick Bruenn <[email protected]> > > > > Static variables are not available during board_init_f(). > > They are, since the board runs from RAM at that point already. > That's not the point. Zero-initialized variables (static or not) are located in the .bss section, which is overlayed by the .rel.dyn section. Thus writing to such a variable before relocation will trash the relocation data.
Lothar Waßmann _______________________________________________ U-Boot mailing list [email protected] https://lists.denx.de/listinfo/u-boot

