[U-Boot-Users] [PATCH] Fixed the _gp/_G_O_T_ confusion for good

Shinya Kuribayashi skuribay at ruby.dti.ne.jp
Sun Oct 21 03:22:44 CEST 2007


Sorry for late.

Vlad Lungu wrote:
> $gp is loaded with _gp
> the GOT is updated starting from _G_O_T_+8 up to (but not including) 
> __got_end
> __got_start is unused num_got_entries is unused and could be removed 
> from ld scripts

I'll take this fix except for removing __got_start and num_got_entries.
I know you want to make it work whether __got_start is out of alignment
or not, but that is a little mess. We should fix num_got_entries part
instead, and update GOT entries using _GLOBAL_OFFSET_TABLE_ and
num_got_entries. This is easily understandable and straight forward :-)

I've submitted patches. Plase review.

thanks,

  Shinya





More information about the U-Boot mailing list