From c1c14a227e1391a9ee59000643d4bb96986a135e Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Thu, 14 Apr 2016 15:56:14 +0000 Subject: [PATCH] Merge duplicated cases. NFC. llvm-svn: 266328 --- lld/ELF/Target.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/lld/ELF/Target.cpp b/lld/ELF/Target.cpp index a1b81cc..2f9e352 100644 --- a/lld/ELF/Target.cpp +++ b/lld/ELF/Target.cpp @@ -532,13 +532,6 @@ void X86TargetInfo::relocateOne(uint8_t *Loc, uint32_t Type, case R_386_32: write32le(Loc, Val); break; - case R_386_GOT32: { - uint64_t V = Val - Out::Got->getVA() - - Out::Got->getNumEntries() * 4; - checkInt<32>(V, Type); - write32le(Loc, V); - break; - } case R_386_GOTOFF: write32le(Loc, Val - Out::Got->getVA()); break; @@ -549,6 +542,7 @@ void X86TargetInfo::relocateOne(uint8_t *Loc, uint32_t Type, case R_386_PLT32: write32le(Loc, Val); break; + case R_386_GOT32: case R_386_TLS_GD: case R_386_TLS_LDM: case R_386_TLS_TPOFF: { -- 2.7.4