This is the mail archive of the
mailing list for the glibc project.
- From: Nathan Sidwell <nathan at codesourcery dot com>
- To: libc-alpha at sourceware dot org
- Date: Tue, 10 May 2011 08:10:20 +0100
- Subject: libc-nonshared dependency
This patch fixes a dependency problem exposed by building glibc with arm TLS
descriptors -- not just support for descriptors, using the descriptors
themselves. Now that I have posted the gcc patch to use tls descriptors
(http://gcc.gnu.org/ml/gcc-patches/2011-05/msg00708.html), this possibility arises.
The tls descriptors use __aeabi_read_tp directly, a nonshared function in
libc-nonshared.a. Arm-style tls uses __tls_get_addr, exposed by libc.so. This
change causes a glibc build failure of libmemusage.so, as that doesn't mention
libc-nonshared.a. This patch fixes that.
For non-arm non-tlsdesc ports, this change should have no effect, as of course
none of them can be referencing a nonshared function from libmemusage.so --
otherwise they'd also fail to build.
tested for arm-none-linux-gnueabi with tlsdescriptors both enabled and disabled
Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery
Description: Text document