Fix ifunc code from r338251 for lld 8.0.

This commit is contained in:
Dimitry Andric 2019-01-21 20:22:11 +00:00
parent efa7559714
commit 4c14ae3e1e

View File

@ -849,7 +849,7 @@ static void processRelocAux(InputSectionBase &Sec, RelExpr Expr, RelType Type,
return;
}
if (Sym.isGnuIFunc() && Config->ZIfuncnoplt) {
InX::RelaDyn->addReloc(Type, &Sec, Offset, &Sym, Addend, R_ADDEND, Type);
In.RelaDyn->addReloc(Type, &Sec, Offset, &Sym, Addend, R_ADDEND, Type);
return;
}
bool CanWrite = (Sec.Flags & SHF_WRITE) || !Config->ZText;