[PATCH] D38899: [ELF] Recognize additional relocation types

Petr Hosek via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 13 12:24:36 PDT 2017


phosek updated this revision to Diff 118955.
phosek marked an inline comment as done.

Repository:
  rL LLVM

https://reviews.llvm.org/D38899

Files:
  ELF/Arch/X86.cpp


Index: ELF/Arch/X86.cpp
===================================================================
--- ELF/Arch/X86.cpp
+++ ELF/Arch/X86.cpp
@@ -290,13 +290,17 @@
   case R_386_PC32:
   case R_386_PLT32:
   case R_386_RELATIVE:
+  case R_386_TLS_DTPMOD32:
+  case R_386_TLS_DTPOFF32:
   case R_386_TLS_GD:
   case R_386_TLS_GOTIE:
   case R_386_TLS_IE:
   case R_386_TLS_LDM:
   case R_386_TLS_LDO_32:
   case R_386_TLS_LE:
   case R_386_TLS_LE_32:
+  case R_386_TLS_TPOFF:
+  case R_386_TLS_TPOFF32:
     checkInt<32>(Loc, Val, Type);
     write32le(Loc, Val);
     break;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D38899.118955.patch
Type: text/x-patch
Size: 567 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171013/1cf8f5b6/attachment.bin>


More information about the llvm-commits mailing list