search for: findgotentry

Displaying 5 results from an estimated 5 matches for "findgotentry".

2015 Jan 26
2
[LLVMdev] [llvm] r188726 - Adding PIC support for ELF on x86_64 platforms
...ype) { default: llvm_unreachable("Relocation type not implemented yet!"); @@ -227,6 +228,21 @@ void RuntimeDyldELF::resolveX86_64Reloca << " at " << format("%p\n",Target)); break; } + case ELF::R_X86_64_GOTPCREL: { + // findGOTEntry returns the 'G + GOT' part of the relocation calculation + // based on the load/target address of the GOT (not the current/local addr). + uint64_t GOTAddr = findGOTEntry(Value, SymOffset); + uint32_t *Target = reinterpret_cast<uint32_t*>(Section.Address + Offset); + uint64...
2017 Feb 09
1
[cfe-dev] lli: LLVM ERROR: Cannot select: X86ISD::WrapperRIP TargetGlobalTLSAddress:i64
...2Fgithub.com%2FJuliaLang%2Fllvm%2Fcommit%2Fa9e17b7f47f5afa9683fc8cfeff7020b2ff4a8b2%23diff-0fa8ca8690e36a8dfd05f6b751955164R339&signature=222c65b9d92c011f> which has been written for JuliaLang and is supposed to fix TLS for linux. Unfortunately it is based on llvm3.6 and uses RuntimeDyLdELF::findGOTEntry. Is there any equivalent method in llvm4.0 ? 2017-02-08 19:40 GMT+00:00 Tim Northover <t.p.northover at gmail.com>: > [Adding llvm-dev back to list] > > On 8 February 2017 at 11:12, Gaetano Checinski > <gaetano.checinski at gmail.com> wrote: > > Thanks for sharing y...
2018 Apr 22
0
[cfe-dev] lli: LLVM ERROR: Cannot select: X86ISD::WrapperRIP TargetGlobalTLSAddress:i64
...om%2FJuliaLang%2Fllvm%2Fcommit%2Fa9e17b7f47f5afa9683fc8cfeff7020b2ff4a8b2%23diff-0fa8ca8690e36a8dfd05f6b751955164R339&signature=222c65b9d92c011f> > which has been written for JuliaLang and is supposed to fix TLS for linux. > Unfortunately it is based on llvm3.6 and uses RuntimeDyLdELF::findGOTEntry. > Is there any equivalent method in llvm4.0 ? > > > 2017-02-08 19:40 GMT+00:00 Tim Northover <t.p.northover at gmail.com>: > >> [Adding llvm-dev back to list] >> >> On 8 February 2017 at 11:12, Gaetano Checinski >> <gaetano.checinski at gmail.com>...
2017 Feb 08
0
[cfe-dev] lli: LLVM ERROR: Cannot select: X86ISD::WrapperRIP TargetGlobalTLSAddress:i64
[Adding llvm-dev back to list] On 8 February 2017 at 11:12, Gaetano Checinski <gaetano.checinski at gmail.com> wrote: > Thanks for sharing your insights, > so in theory i could build an llvm pass that calls TargetLowering::LowerToTLSEmulatedModel for each llvm::Function and it should work if i link a runtime that provides __emultls_get_address. I'm afraid not, that function is
2017 Feb 08
3
[cfe-dev] lli: LLVM ERROR: Cannot select: X86ISD::WrapperRIP TargetGlobalTLSAddress:i64
> Unfortunately it doesn't look like lli has support for emulated TLS either, though that would be pretty simple to add. As an experiment I've `llvm::createLowerEmuTLSPass` into lli which added @__emutls_v.x and @__emutls_v.t. However i didn't have any __emultls_get_address calls in my IR. Is there a llvm pass or compiler-flag that replaces thread_locals with appropriate