bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/11047] New: undefined __tls_get_addr even after tls optimisation


From: amodra at bigpond dot net dot au
Subject: [Bug ld/11047] New: undefined __tls_get_addr even after tls optimisation removes all refs
Date: 3 Dec 2009 05:15:21 -0000

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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]