Skip to content

Commit

Permalink
[ELF] Simplify a condition in addGotEntry. NFC
Browse files Browse the repository at this point in the history
  • Loading branch information
MaskRay committed Apr 24, 2021
1 parent ce1a4d5 commit 9aad886
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lld/ELF/Relocations.cpp
Expand Up @@ -1097,7 +1097,7 @@ static void addGotEntry(Symbol &sym) {

// Otherwise, we emit a dynamic relocation to .rel[a].dyn so that
// the GOT slot will be fixed at load-time.
if (!sym.isTls() && !sym.isPreemptible && config->isPic && !isAbsolute(sym)) {
if (!sym.isTls() && !sym.isPreemptible && config->isPic) {
addRelativeReloc(in.got, off, &sym, 0, R_ABS, target->symbolicRel);
return;
}
Expand Down

0 comments on commit 9aad886

Please sign in to comment.