[U-Boot] arm: timer_init() and bss (relocation)

Albert ARIBAUD albert.aribaud at free.fr
Sat Jan 22 08:40:42 CET 2011


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.


More information about the U-Boot mailing list