[U-Boot] A question about "Initialize GOT pointer"
Andrew Dyer
amdyer at gmail.com
Mon Oct 26 16:53:12 CET 2009
On Mon, Oct 26, 2009 at 1:41 AM, XR SU <x_r_su at yahoo.com.cn> wrote:
> 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?
You're using old code. That was fixed about two years ago.
See http://git.denx.de/?p=u-boot.git;a=commitdiff;h=16664f72850846e645616da1c0fa5afcd6d15f15
More information about the U-Boot
mailing list