[LLVMdev] TLS with MCJIT (an experimental patch)

Rafael EspĂ­ndola rafael.espindola at gmail.com
Wed May 22 10:28:05 PDT 2013


On 22 May 2013 12:30, Kaylor, Andrew <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.

Agreed.

Thanks,
Rafael




More information about the llvm-dev mailing list