[PATCH] D18301: [ELF] - Process R_X86_64_GOTPCRELX/R_X86_64_REX_GOTPCRELX relocations.

George Rimar via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 22 05:20:40 PDT 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL264043: [ELF] - Process R_X86_64_GOTPCRELX/R_X86_64_REX_GOTPCRELX relocations. (authored by grimar).

Changed prior to commit:
  http://reviews.llvm.org/D18301?vs=51125&id=51275#toc

Repository:
  rL LLVM

http://reviews.llvm.org/D18301

Files:
  lld/trunk/ELF/Target.cpp

Index: lld/trunk/ELF/Target.cpp
===================================================================
--- lld/trunk/ELF/Target.cpp
+++ lld/trunk/ELF/Target.cpp
@@ -736,7 +736,8 @@
 }
 
 bool X86_64TargetInfo::refersToGotEntry(uint32_t Type) const {
-  return Type == R_X86_64_GOTPCREL;
+  return Type == R_X86_64_GOTPCREL || Type == R_X86_64_GOTPCRELX ||
+         Type == R_X86_64_REX_GOTPCRELX;
 }
 
 bool X86_64TargetInfo::needsGot(uint32_t Type, SymbolBody &S) const {
@@ -934,6 +935,8 @@
     write32le(Loc, SA);
     break;
   case R_X86_64_GOTPCREL:
+  case R_X86_64_GOTPCRELX:
+  case R_X86_64_REX_GOTPCRELX:
   case R_X86_64_PC32:
   case R_X86_64_PLT32:
   case R_X86_64_TLSGD:


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D18301.51275.patch
Type: text/x-patch
Size: 686 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160322/4b28c8d2/attachment.bin>


More information about the llvm-commits mailing list