This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: size of the Global Offset Table


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
>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]