[llvm-bugs] [Bug 50017] linux/s390x: fails to build with "undefined reference to `__tls_get_addr'"

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Apr 18 10:58:21 PDT 2021


https://bugs.llvm.org/show_bug.cgi?id=50017

Fangrui Song <i at maskray.me> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |i at maskray.me
         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED

--- Comment #2 from Fangrui Song <i at maskray.me> ---
I find that musl defines __tls_get_addr unconditionally so I thought every arch
should have it. Ooops, glibc s390x doesn't have it. I cannot test
__tls_get_addr but hopefully this is straightforward

Fixed by 3d1d7156e9a9a794ba649b79e27fe448274fd558

    [sanitizer] Don't call __tls_get_addr on s390x after D98926

    glibc s390x doesn't define __tls_get_addr.

    Fix PR50017

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210418/77d24400/attachment-0001.html>


More information about the llvm-bugs mailing list