[RFA:] elflink.c: Hide _GLOBAL_OFFSET_TABLE_
Eric Botcazou
ebotcazou@libertysurf.fr
Wed Jan 5 13:19:00 GMT 2005
> > A long time ago, in
> > <URL:http://sources.redhat.com/ml/binutils/2003-04/msg00117.html>,
> > I suggested a patch to make the visibility of
> > _GLOBAL_OFFSET_TABLE_ target-selectable through a bfd hook, with
> > the intent on making it hidden, but keeping it visible to avoid
> > breaking something obscure somewhere. Alan Modra thought it'd
> > be just as good to make it *always* hidden. Here's the patch
>
> Jakub's changes to decrease the number of emitted sections symbols
> might interact badly with this change. It might be a good idea to
> test this on sparc before you go ahead. The problem is that if
> _GLOBAL_OFFSET_TABLE_ is hidden any relocs against it will be
> reduced to the .got section symbol, which may no longer be dynamic.
That's exactly what I'm seeing on SPARC/Solaris and SPARC/Linux. HP's patch
has introduced
FAIL: vers2
FAIL: vers26b1
FAIL: vers26b2
FAIL: vers26b3
in the ld testsuite because of this problem:
http://sources.redhat.com/ml/binutils/2004-10/msg00029.html
http://sources.redhat.com/ml/binutils/2004-11/msg00159.html
What's the best approach to fix this?
--
Eric Botcazou
More information about the Binutils
mailing list