This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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 by default

ok?

nathan
--
Nathan Sidwell    ::   http://www.codesourcery.com   ::         CodeSourcery

Attachment: glibc.diff
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]