Clarify the comment and code a bit. NFC.

llvm-svn: 258069
This commit is contained in:
Rafael Espindola 2016-01-18 20:06:59 +00:00
parent 7dcb1a5c89
commit f312d89f50
1 changed files with 4 additions and 3 deletions

View File

@ -312,10 +312,11 @@ void Writer<ELFT>::scanRelocs(
// Here we are creating a relocation for the dynamic linker based on
// a relocation from an object file, but some relocations need no
// load-time fixup. Skip such relocation.
// load-time fixup when the final target is known. Skip such relocation.
bool CBP = canBePreempted(Body, NeedsGot);
bool NoDynrel = Target->isRelRelative(Type) || Target->isSizeReloc(Type);
if (!CBP && (NoDynrel || !Config->Shared))
bool NoDynrel = Target->isRelRelative(Type) || Target->isSizeReloc(Type) ||
!Config->Shared;
if (!CBP && NoDynrel)
continue;
if (CBP)