Axel Naumann via llvm-dev
2017-Sep-15 06:25 UTC
[llvm-dev] TLS in RuntimeDyld / Linux x86_64
Hi, We're really missing TLS in the JIT on Linux / x86_64. With multithreading taking over the world we have more and more people noticing that the JIT won't let them run their code. There is e.g. - <http://lists.llvm.org/pipermail/llvm-dev/2017-February/109906.html> - <https://bugs.llvm.org/show_bug.cgi?id=21431> and its dupes <https://bugs.llvm.org/buglist.cgi?quicksearch=TargetGlobalTLSAddress&list_id=123170> which prove that we are not alone... I'm not expert enough on x86_64 relocs to solve this one (I tried). Is there anyone out there who might be able to help? And yes I talked to Lang, but he is booked. He said "I think it should be enough to support the general dynamic ELF TLS mode". Any help is *very* much appreciated! Cheers, Axel. -- ROOT - http://root.cern EP-SFT, CERN, 1211 Geneve 23, Switzerland Tel: +41 22 7678225
Joerg Sonnenberger via llvm-dev
2017-Sep-17 23:09 UTC
[llvm-dev] TLS in RuntimeDyld / Linux x86_64
On Fri, Sep 15, 2017 at 08:25:08AM +0200, Axel Naumann via llvm-dev wrote:> We're really missing TLS in the JIT on Linux / x86_64. > > I'm not expert enough on x86_64 relocs to solve this one (I tried). Is > there anyone out there who might be able to help?The problem is so much the relocations. There is no generic interface for registering a "fake" module with the dynamic linker for obtaining the normal TLS binding or forcing a resolution of a given existing (external) symbol. Joerg