Hidden PLT workaround

Mike Frysinger vapier@gentoo.org
Fri May 7 19:10:00 GMT 2010


On Friday 07 May 2010 09:32:48 Ryan Arnold wrote:
> On Fri, May 7, 2010 at 12:44 AM, Boris Arnoux wrote:
> > For example, to "default" around the "write" hidden_proto macro in
> > unistd.h. That way the visibility of the internal "write" symbol is
> > changed from hidden to default.  This approach works well with uclibc
> > for example, and it makes it easy to build a library with overridable
> > symbols. But it does not work in glibc. I don't clearly understand
> > why. Is there another thing making calls to these symbols not go
> > through the PLT , such as an  symbol export map, or something like
> > that ?
>
> Yes, you are close.  There are Versions files which are combined
> during the build stage to create linker scripts which indicate which
> symbols are exported.  Take a look at those.

the Version files control the final list of exported symbols.  it does not 
affect the PLT bypassing when compiling individual files.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://sourceware.org/pipermail/libc-help/attachments/20100507/91c16ca1/attachment.sig>


More information about the Libc-help mailing list