[PATCH] D14621: [ELF2] - Implemented R_X86_64_GOTTPOFF relocation

George Rimar via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 13 06:44:03 PST 2015


grimar added inline comments.

================
Comment at: ELF/InputSection.cpp:143
@@ -142,3 +142,3 @@
       SymVA = Out<ELFT>::Got->getEntryAddr(Body);
-      Type = Target->getGotRefReloc();
+      Type = Body.isTLS() ? Target->getTlsGotReloc() : Target->getGotRefReloc();
     } else if (Target->relocPointsToGot(Type)) {
----------------
rafael wrote:
> Maybe just pass body to getGotReloc?
Target->getGotReloc(Body) ?


http://reviews.llvm.org/D14621





More information about the llvm-commits mailing list