[ELF] Simplify a condition in addGotEntry. NFC

This commit is contained in:
Fangrui Song 2021-04-23 22:11:14 -07:00
parent ce1a4d5323
commit 9aad886e28
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}