[U-Boot-Users] [PATCH] Off-by-two bug when relocating GOT
Vlad Lungu
vlad at comsys.ro
Sun Oct 14 21:00:51 CEST 2007
Shinya Kuribayashi wrote:
> This is caused by lacking of -G0 in PLATFORM_LDFLAGS. I'm preparing a
> patch as below, and will submit for review in the near future.
>
>
There is nothing wrong with having sdata/scommon/sbbs. I was just
pointing out that _gp and _G_O_T_ are not
conceptually the same and if they are not equal, then the whole thing
blows up with the current cpu/mips/start.S.
See
http://www.nabble.com/-PATCH--Fixed-the-_gp-_G_O_T_-confusion-for-good-tf4613248.html
As long as there is nothing between the .got section and __got_end, it
works, regardless of the alignment of _gp or
__got_start(or even his presence) and num_got_entries is redundant at
this point.
Vlad
More information about the U-Boot
mailing list