[llvm-bugs] [Bug 17058] Shared library relocation R_X86_64_TPOFF32 with __thread

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Jul 7 00:25:39 PDT 2019


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

Fangrui Song <i at maskray.me> changed:

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

--- Comment #1 from Fangrui Song <i at maskray.me> ---
R_X86_64_TPOFF32 is an initial relocation type of the Local-Exec TLS model.
It can only be used when producing an executable.
When you write -fPIC, it may target an executable or a shared object.
It seems the old clang incorrectly used Local-Exec while it should use
Initial-Exec..

-- 
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/20190707/c9537d5c/attachment.html>


More information about the llvm-bugs mailing list