[U-Boot-Users] [PATCH] Off-by-two bug when relocating GOT

Vlad Lungu vlad at comsys.ro
Fri Oct 5 12:39:36 CEST 2007


Shinya Kuribayashi wrote:
> Vlad Lungu wrote:
>   
>> The first two entries are skipped but the number of relocated entries
>> is not adjusted; as a result, the first __u_boot_cmd_* structure is
>> smashed and no commands can be issued.
>>     
>
> This is a known, long stading, pretty critical, but not fixed problem. See below:
>
> http://search.gmane.org/search.php?group=gmane.comp.boot-loaders.u-boot&query=mips+got
>
> I'm going to look closely into this.
>   
The thing I don't get is why skip the top two entries in the first place? Is it because 
_gp=ALIGN(16) ? Maybe Robert has a point:

http://thread.gmane.org/gmane.comp.boot-loaders.u-boot/25533


Vlad






More information about the U-Boot mailing list