This is the mail archive of the
mailing list for the GCC project.
Re: Start and end of the GOT
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.