diff --git a/lld/ELF/SyntheticSections.cpp b/lld/ELF/SyntheticSections.cpp index 2898048f12bb..e9e1374f2df7 100644 --- a/lld/ELF/SyntheticSections.cpp +++ b/lld/ELF/SyntheticSections.cpp @@ -2249,15 +2249,6 @@ InputSection *ThunkSection::getTargetInputSection() const { return T->getTargetInputSection(); } -namespace lld { -namespace elf { -template void PltSection::addEntry(SymbolBody &Sym); -template void PltSection::addEntry(SymbolBody &Sym); -template void PltSection::addEntry(SymbolBody &Sym); -template void PltSection::addEntry(SymbolBody &Sym); -} -} - InputSection *InX::ARMAttributes; BssSection *InX::Bss; BssSection *InX::BssRelRo; @@ -2272,6 +2263,11 @@ PltSection *InX::Iplt; StringTableSection *InX::ShStrTab; StringTableSection *InX::StrTab; +template void PltSection::addEntry(SymbolBody &Sym); +template void PltSection::addEntry(SymbolBody &Sym); +template void PltSection::addEntry(SymbolBody &Sym); +template void PltSection::addEntry(SymbolBody &Sym); + template InputSection *elf::createCommonSection(); template InputSection *elf::createCommonSection(); template InputSection *elf::createCommonSection();