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
I'd like to take a crack at this. Was there any more progress or work I should be aware off? Thanks, Keno On Wed, May 22, 2013 at 1:28 PM, Rafael Espíndola < rafael.espindola at gmail.com> wrote:> 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 > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140120/68113dbe/attachment.html>
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. -Andy 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? Thanks, Keno 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.Agreed. Thanks, Rafael _______________________________________________ LLVM Developers mailing list LLVMdev at cs.uiuc.edu<mailto:LLVMdev at cs.uiuc.edu> http://llvm.cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140120/2c6c56c0/attachment.html>