[LLVMdev] TLS with MCJIT (an experimental patch)

Kaylor, Andrew andrew.kaylor at intel.com
Mon Jan 20 10:38:34 PST 2014

Hi Keno,

I believe that PIC/GOT support is working for x86-64 ELF targets.  I'm not sure what effect that had on the proposed TLS implementation.


From: Keno Fischer [mailto:kfischer at college.harvard.edu]
Sent: Sunday, January 19, 2014 9:31 PM
To: Rafael EspĂ­ndola
Cc: Kaylor, Andrew; LLVM Developers Mailing List
Subject: Re: [LLVMdev] TLS with MCJIT (an experimental patch)

I'd like to take a crack at this. Was there any more progress or work I should be aware off?


On Wed, May 22, 2013 at 1:28 PM, Rafael EspĂ­ndola <rafael.espindola at gmail.com<mailto:rafael.espindola at gmail.com>> wrote:
On 22 May 2013 12:30, Kaylor, Andrew <andrew.kaylor at intel.com<mailto:andrew.kaylor at intel.com>> wrote:
> To clarify, MCJIT currently has no GOT support whatsoever for ELF with x86-64 and ARM (and probably others).
No, I added a bare minimal to get EH working...

>  My experimental patch was meant as an attempt to get TLS working with static relocation model and small code model.  It's the combination of these two that requires memory in the lower 2GB.  MCJIT works with static and large, but the MC code generator has a problem with TLS and large code model.
I see. Yes, on that model codegen would produce local exec TLS model
and we would only need R_X86_64_TPOFF32 (and making sure the code was
close to the tls block).

> Obviously we just need to get PIC support in place for MCJIT.


LLVM Developers mailing list
LLVMdev at cs.uiuc.edu<mailto:LLVMdev at cs.uiuc.edu>         http://llvm.cs.uiuc.edu

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140120/2c6c56c0/attachment.html>

More information about the llvm-dev mailing list