[lld] r315654 - Use existing helper. NFC.
Rafael Espindola via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 12 17:44:33 PDT 2017
Author: rafael
Date: Thu Oct 12 17:44:33 2017
New Revision: 315654
URL: http://llvm.org/viewvc/llvm-project?rev=315654&view=rev
Log:
Use existing helper. NFC.
Modified:
lld/trunk/ELF/InputSection.cpp
Modified: lld/trunk/ELF/InputSection.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/InputSection.cpp?rev=315654&r1=315653&r2=315654&view=diff
==============================================================================
--- lld/trunk/ELF/InputSection.cpp (original)
+++ lld/trunk/ELF/InputSection.cpp Thu Oct 12 17:44:33 2017
@@ -615,8 +615,7 @@ static uint64_t getRelocTargetVA(RelType
// lld and .tbss is not referenced, it gets reclaimed and we don't
// create a TLS program header. Therefore, we resolve this
// statically to zero.
- if (Body.isTls() && (Body.isLazy() || Body.isUndefined()) &&
- Body.symbol()->isWeak())
+ if (Body.isTls() && Body.isUndefWeak())
return 0;
if (Target->TcbSize)
return Body.getVA(A) + alignTo(Target->TcbSize, Out::TlsPhdr->p_align);
More information about the llvm-commits
mailing list