This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: size of the Global Offset Table
- To: "Brian R. Gaeke" <brg at sartre dot dgate dot ORG>
- Subject: Re: size of the Global Offset Table
- From: Joy Mukherjee <jmukherj at csgrad dot cs dot vt dot edu>
- Date: Thu, 13 Sep 2001 22:29:43 -0400 (EDT)
- Cc: <gcc at gcc dot gnu dot org>, <gcc-help at gcc dot gnu dot org>
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
>