Current mainline gcc libgomp configures its 64-bit multilib without tls, due to this failure:
configure:15341: /home/alan/build/gcc/./gcc/xgcc -B/home/alan/build/gcc/./gcc/ -B/usr/powerpc-linux/bin/ -B/usr/powerpc-linux /lib/ -isystem /usr/powerpc-linux/include -isystem /usr/powerpc-linux/sys-include -m64 -fPIC -mstrict-align -o conftest -g - O2 -pthread -pthread -static conftest.c -lrt >&5 /tmp/cca53zpV.o: In function `main': /home/alan/build/gcc/powerpc-linux/64/libgomp/conftest.c:34: undefined reference to `__tls_get_addr' Really, the -fPIC -mstrict-align shouldn't be there, but ld ought to optimise the resulting call to __tls_get_addr anyway. In fact, ld does do the optimisation but leaves an R_PPC_NONE reloc referencing __tls_get_addr, which then results in the undefined reference error. (__tls_get_addr isn't available in static glibc) -- Summary: undefined __tls_get_addr even after tls optimisation removes all refs Product: binutils Version: 2.20 Status: NEW Severity: normal Priority: P2 Component: ld AssignedTo: amodra at bigpond dot net dot au ReportedBy: amodra at bigpond dot net dot au CC: bug-binutils at gnu dot org GCC target triplet: powerpc*-*-linux http://sourceware.org/bugzilla/show_bug.cgi?id=11047 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils