size of the Global Offset Table

Joy Mukherjee jmukherj@csgrad.cs.vt.edu
Thu Sep 13 19:29:00 GMT 2001


Brian,
	Thanks a lot . objdump seems to be an external way to do the
stuff. Is there any dynamic way ( at runtime ) of doing the same ? Thanks
again.

Joy.

Joy Mukherjee
Graduate Student,
Deptt. of CS,
Virginia Tech,
Blacksburg,VA - 24061.

On Thu, 13 Sep 2001, Brian R. Gaeke wrote:

> And then spake Joy Mukherjee, as follows:
> > How can I know what the size of the GOT is for my program ? I would
> > greatly appreciate any help . Thanks a lot.
>
> You could use GNU "objdump" on the program, and look for the size of the
> ".got" section.
>
> In ELF binaries, the PLT (procedure lookup table) is used alongside the GOT,
> as well. You might want to read the ELF spec to get the whole story; I'm
> no expert on this.
>
> Hope this helps.
> -Brian Gaeke.
>
> --
> Brian R. Gaeke, brg@dgate.org -- PGP/GPG gleefully accepted
>



More information about the Gcc mailing list