[U-Boot] A question about "Initialize GOT pointer"

Jello huang ruifeihuang at gmail.com
Mon Oct 26 09:23:40 CET 2009


I am not familiar with mips instruction.but i think it mean:
pg=ra
t1=0(ra)
then move t1 to gp.
so u cannot remove it .

2009/10/26 XR SU <x_r_su at yahoo.com.cn>

> hi,all:
> here is a question, who can tell me? thanks.
>
> in uboot file : cpu/mips/start.S
>
> /* Initialize GOT pointer. */
>         bal     1f
>         nop
>         .word   _GLOBAL_OFFSET_TABLE_
>         1:
>         move    gp, ra
>         lw      t1, 0(ra)
>         move    gp, t1
>
> I do't know why code "move    gp, ra"  needed?  what happened if we remove
> these code?
>
>
>
>
>
>
>
>      ___________________________________________________________
>  好玩贺卡等你发,邮箱贺卡全新上线!
> http://card.mail.cn.yahoo.com/
>
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot
>
>


-- 
JUST DO IT,NOTHING IS IMPOSSIBLE


More information about the U-Boot mailing list