This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: Prelinking of shared libraries
On Sunday 06 May 2001 14:17, Waldo Bastian wrote:
> 4) The .got section.
> This should mostly (only?) contain relocations of type R_386_JUMP_SLOT
> which can be done lazy, so only the memory aspect is of importance.
This seems to work a little different than I though as I just discovered with
readelf.
How does this work? .rel.got only contains R_386_GLOB_DATA relocations and
.rel.plt contains only R_386_JUMP_SLOT relocations. But the .plt section is
marked readonly... So the entries of .rel.got and .rel.plt both end up
modifiying .got? The numbers seem to add up...
> The total number of .got sections amounts to 129Kb, of which 101Kb is
> touched by R_386_JUMP_SLOT relocations, leaving 28Kb unaccounted for. (Does
> .got contain something else besides jump slots?)
To answer my own question, the R_386_GLOB_DATA relocations (a total of 7160)
seem to account for the remaining 28Kb.
Cheers,
Waldo
--
bastian@kde.org | SuSE Labs KDE Developer | bastian@suse.com