[U-Boot] [PATCH 1/2] arm: implement ELF relocations

Albert ARIBAUD albert.aribaud at free.fr
Wed Oct 6 09:03:51 CEST 2010


Le 06/10/2010 08:45, Reinhard Meyer a écrit :

> Dear Albert ARIBAUD,

> Also I observed problems with old AT91 code since without
> CONFIG_SYS_ARM_WITHOUT_RELOC board_init() is called very early, with it
> is called after relocation is done. I think most AT91 boards that copied
> code from AT91SAM9***-EK's have to correct their code because "early init"
> stuff is done in board_init().

This was to be expected whatever relocation method is used. Before 
relocation, board_init_f was running in the final memory mapping. Now it 
runs (as it should always have) in a limited C environment, with 
read-only globals, no BSS, only partial gd access... FTR, it hit my 
orion5x based edminiv2 too in places.

>> What do you mean by 'relocation-*preventing* code'?
>
> Everything, including the #if's that is there for the non-relocating cases.

Ok.

> Best Regards,
> Reinhard

Amicalement,
-- 
Albert.


More information about the U-Boot mailing list