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

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


This revision was automatically updated to reflect the committed changes.
Closed by commit rL315737: [ELF] Recognize additional relocation types (authored by phosek).

Changed prior to commit:
  https://reviews.llvm.org/D38899?vs=118955&id=118957#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D38899

Files:
  lld/trunk/ELF/Arch/X86.cpp


Index: lld/trunk/ELF/Arch/X86.cpp
===================================================================
--- lld/trunk/ELF/Arch/X86.cpp
+++ lld/trunk/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.118957.patch
Type: text/x-patch
Size: 597 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171013/e6da340f/attachment.bin>


More information about the llvm-commits mailing list