This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
TLS version of newlib ??
- From: Ajay Garg <ajaygargnsit at gmail dot com>
- To: newlib at sourceware dot org
- Date: Mon, 18 Jun 2018 22:43:01 +0530
- Subject: TLS version of newlib ??
Hi All.
I require compiling an app with some manual static linkings.
I have compiled newlib for arm64, but get the following error(s)
during linking :
#####################################################################################################
/usr/lib/gcc-cross/aarch64-linux-gnu/5/../../../../aarch64-linux-gnu/bin/ld:
errno: TLS reference in
/home/ajay/arm-cross-compiled-libs/libpthread.a(pthread_create.o)
mismatches non-TLS reference in
/home/ajay/arm-cross-compiled-libs/libc.a(lib_a-reent.o)
/home/ajay/arm-cross-compiled-libs/libpthread.a: error adding symbols: Bad value
#####################################################################################################
So, is it possible to compile a TLS version for newlib?
Will be grateful for pointers.
Thanks and Regards,
Ajay