Index: contrib/llvm/tools/lld/ELF/SyntheticSections.cpp =================================================================== --- contrib/llvm/tools/lld/ELF/SyntheticSections.cpp +++ contrib/llvm/tools/lld/ELF/SyntheticSections.cpp @@ -1097,7 +1097,8 @@ add({IsRela ? DT_RELACOUNT : DT_RELCOUNT, NumRelativeRels}); } } - if (In::RelaPlt->getParent() && !In::RelaPlt->empty()) { + if ((In::RelaPlt->getParent() && !In::RelaPlt->empty()) || + (In::RelaIplt->getParent() && !In::RelaIplt->empty())) { add({DT_JMPREL, In::RelaPlt}); add({DT_PLTRELSZ, In::RelaPlt->getParent(), Entry::SecSize}); switch (Config->EMachine) {