forked from OSchip/llvm-project
Clarify the comment and code a bit. NFC.
llvm-svn: 258069
This commit is contained in:
parent
7dcb1a5c89
commit
f312d89f50
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue