Start and end of the GOT

Jakub Jelinek jakub@redhat.com
Mon Sep 17 15:36:00 GMT 2001


On Mon, Sep 17, 2001 at 03:17:52PM -0700, Richard Henderson wrote:
> On Fri, Sep 14, 2001 at 08:33:21PM -0400, Joy Mukherjee wrote:
> > True, but %ebx just contains the start address of the GOT. How do I get
> > the END address ? or in other words , how do I get its size ?
> 
> You can't.

Well, assuming IA-32 and nobody playing with linker scripts, end will be
_DYNAMIC because .sdata2/.sbss2 sections are usually not used on IA-32.

	Jakub



More information about the Gcc-help mailing list