Start and end of the GOT

Richard Henderson rth@redhat.com
Mon Sep 17 15:53:00 GMT 2001


On Tue, Sep 18, 2001 at 12:39:15AM +0200, Jakub Jelinek wrote:
> 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.

I urge you not to rely on this.

The NetBSD ld.so self-relocation code does (did, anyway) this, and it
is the reason that .dynamic is still where it is.  Personally, I think
this is a bug in the NetBSD ld.so and should have been fixed rather
than wasting some 400 bytes of the small data area.


r~



More information about the Gcc mailing list