GOT Section Indexes

Jakub Jelinek jakub@redhat.com
Tue Nov 5 15:17:00 GMT 2002


On Tue, Nov 05, 2002 at 03:09:04PM -0800, B Dorairaj wrote:
> Hi
> 
>  I am working on Sun Sparc Linker. I have created the
>  GOT Table and i am using the index from 0. I am not
>  using negative indexes for GOT. 
>  When i run the executable having my custom .got
>  section having more than 1024 got entries, i get
>  segmentation fault after 1024.

You cannot have more than 1024 GOT entries (resp. 2048
if you allow negative) on sparc32, if there are any
R_SPARC_GOT13 relocations which don't fit in the first
1024 entries (resp 2048 with negative entries).
Similarly, you cannot have more than 512 GOT entries
if there are any R_SPARC_GOT13 relocs against other GOT
entries on sparc64 (where _GLOBAL_OFFSET_TABLE_ cannot reside
in the middle of the .got section).

	Jakub



More information about the Binutils mailing list