forked from OSchip/llvm-project
[ELF] Simplify a condition in addGotEntry. NFC
This commit is contained in:
parent
ce1a4d5323
commit
9aad886e28
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue