[PATCH] D67779: Support for 64-bit PC-relative relocations for X86_64

Artur Pilipenko via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 20 18:39:11 PDT 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rL372447: Support for 64-bit PC-relative relocations for X86_64 (authored by apilipenko, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D67779?vs=220923&id=221148#toc

Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D67779/new/

https://reviews.llvm.org/D67779

Files:
  llvm/trunk/lib/Object/RelocationResolver.cpp


Index: llvm/trunk/lib/Object/RelocationResolver.cpp
===================================================================
--- llvm/trunk/lib/Object/RelocationResolver.cpp
+++ llvm/trunk/lib/Object/RelocationResolver.cpp
@@ -30,6 +30,7 @@
   case ELF::R_X86_64_DTPOFF32:
   case ELF::R_X86_64_DTPOFF64:
   case ELF::R_X86_64_PC32:
+  case ELF::R_X86_64_PC64:
   case ELF::R_X86_64_32:
   case ELF::R_X86_64_32S:
     return true;
@@ -47,6 +48,7 @@
   case ELF::R_X86_64_DTPOFF64:
     return S + getELFAddend(R);
   case ELF::R_X86_64_PC32:
+  case ELF::R_X86_64_PC64:
     return S + getELFAddend(R) - R.getOffset();
   case ELF::R_X86_64_32:
   case ELF::R_X86_64_32S:


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D67779.221148.patch
Type: text/x-patch
Size: 668 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190921/344b880c/attachment-0001.bin>


More information about the llvm-commits mailing list