diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2016-04-14 16:05:42 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2016-04-14 16:05:42 +0000 |
| commit | e149b488afd2c189214fb491101a9bb9bbab0c76 (patch) | |
| tree | 96a507e615ba7db8d7e600cf20794ed6a17d027b | |
| parent | 377aa40d84fefff341525efb2b60a805dbf96c1e (diff) | |
| download | bcm5719-llvm-e149b488afd2c189214fb491101a9bb9bbab0c76.tar.gz bcm5719-llvm-e149b488afd2c189214fb491101a9bb9bbab0c76.zip | |
Remove the only case where we would relocate a R_386_TLS_TPOFF.
llvm-svn: 266330
| -rw-r--r-- | lld/ELF/Target.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lld/ELF/Target.cpp b/lld/ELF/Target.cpp index 2f9e3525ce2..58ab2268448 100644 --- a/lld/ELF/Target.cpp +++ b/lld/ELF/Target.cpp @@ -422,7 +422,7 @@ uint32_t X86TargetInfo::getDynRel(uint32_t Type) const { uint32_t X86TargetInfo::getTlsGotRel(uint32_t Type) const { if (Type == R_386_TLS_IE) return Type; - return TlsGotRel; + return R_386_GOT32; } bool X86TargetInfo::isTlsGlobalDynamicRel(uint32_t Type) const { @@ -544,8 +544,7 @@ void X86TargetInfo::relocateOne(uint8_t *Loc, uint32_t Type, break; case R_386_GOT32: case R_386_TLS_GD: - case R_386_TLS_LDM: - case R_386_TLS_TPOFF: { + case R_386_TLS_LDM: { uint64_t V = Val - Out<ELF32LE>::Got->getVA() - Out<ELF32LE>::Got->getNumEntries() * 4; checkInt<32>(V, Type); |

