This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Linking TLS in shared libraries
- From: Daniel Jacobowitz <drow at false dot org>
- To: libc-alpha at sources dot redhat dot com
- Date: Thu, 6 Jan 2005 17:45:39 -0500
- Subject: Linking TLS in shared libraries
I've noticed that all the TLS tests which build a shared library containing
LD or GD model data aren't (can't be) built with -z defs. This seems
undesirable... the reason is that GNU ld does not load DT_NEEDED entries
when linking -shared, for reasons which I don't quite grok. But this is
what it's done as far back as I checked.
Would it be reasonable to include ld.so in the libc.so linker script? Are
there any other possible fixes?
--
Daniel Jacobowitz