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

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


phosek created this revision.
Herald added a subscriber: emaste.

These are generated by the linker itself and it shouldn't treat
them as unrecognized. This was introduced in r315552 and is triggering
an error when building UBSan shared library for i386.


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
@@ -297,6 +297,9 @@
   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:
+  case R_386_TLS_DTPOFF32:
     checkInt<32>(Loc, Val, Type);
     write32le(Loc, Val);
     break;


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


More information about the llvm-commits mailing list