Le 22/01/2011 08:21, Reinhard Meyer a écrit :

>> But this leads me to the question what happens with the stuff in the
>> data section. Seems I should have again a look at the lowlevel stuff to
>> understand that.
>
> Intuitively (without looking at the code) I would think that
> CONST DATA is ok,
> but non const, initialized data cannot work because it is not
> initialized before relocation...

To be precise:

1. const data are readable before and after relocation.

2. non-const initialized data are readable only until relocated, and 
then writable as well.

3. BSS data cannot and must not be used at all until relocated, and are 
then zeroed out before board_init_r() starts.

> Best Regards,
> Reinhard

Amicalement,
-- 
Albert.
_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to