[PATCH] Fix linker script ld.so adding AS_NEEDED entry for the dynamic linker

Carmelo AMOROSO carmelo.amoroso at st.com
Fri Aug 3 07:58:55 UTC 2007


Hi All,
while compiling uClibc++ against uClibc-nptl, I found a problem
into the linker script libc.so.
The uClibc++ needs the __tls_get_addr symbol (TLS enabled), but it 
cannot find
it because the dynamic linker is not present into the linker script libc.so.
In the same way, a lot of applications using TLS dynamic access model 
will fail
linking with uclibc-nptl

This patch solves this issues defining into Rules.mak the ASNEEDED variables
only for the NPTL case.

It could be worth to add it both into trunk and nptl branch

Regards,
Carmelo
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: rules_mak_as_needed.patch
Url: http://lists.busybox.net/pipermail/uclibc/attachments/20070803/4bc50ca6/attachment-0002.diff 


More information about the uClibc mailing list