[PATCH] ldso/libdl: include dl-tls.h for mips static link

Mike Frysinger vapier at gentoo.org
Sun Nov 18 10:22:04 UTC 2012


On Friday 26 October 2012 07:12:25 Xinglong Liao wrote:
> without this patch, static link with libdl.a in mips will cause
> undefined reference error, TLS_DTPREL_VALUE and TLS_TPREL_VALUE
> used in function _dl_parse_relocation_information are defined in
> dl-tls.h
> 
> --- a/ldso/libdl/libdl.c
> +++ b/ldso/libdl/libdl.c
> 
> +# if defined(USE_TLS) && USE_TLS && defined(__mips__) && !defined(SHARED)
> +# include <dl-tls.h>
> +#endif

i can't see this being mips specific.  we also want to avoid arch-specific 
defines in common code whenever possible.
-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://lists.busybox.net/pipermail/uclibc/attachments/20121118/259b9924/attachment.asc>


More information about the uClibc mailing list