summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lld/ELF/SyntheticSections.cpp7
-rw-r--r--lld/ELF/SyntheticSections.h2
-rw-r--r--lld/ELF/Writer.cpp2
3 files changed, 3 insertions, 8 deletions
diff --git a/lld/ELF/SyntheticSections.cpp b/lld/ELF/SyntheticSections.cpp
index 48c9f7dafb7..1d8825773f9 100644
--- a/lld/ELF/SyntheticSections.cpp
+++ b/lld/ELF/SyntheticSections.cpp
@@ -278,7 +278,7 @@ MipsReginfoSection<ELFT> *MipsReginfoSection<ELFT>::create() {
return nullptr;
}
-template <class ELFT> InputSection *elf::createInterpSection() {
+InputSection *elf::createInterpSection() {
auto *Ret = make<InputSection>(SHF_ALLOC, SHT_PROGBITS, 1,
ArrayRef<uint8_t>(), ".interp");
Ret->Live = true;
@@ -2218,11 +2218,6 @@ template InputSection *elf::createCommonSection<ELF32BE>();
template InputSection *elf::createCommonSection<ELF64LE>();
template InputSection *elf::createCommonSection<ELF64BE>();
-template InputSection *elf::createInterpSection<ELF32LE>();
-template InputSection *elf::createInterpSection<ELF32BE>();
-template InputSection *elf::createInterpSection<ELF64LE>();
-template InputSection *elf::createInterpSection<ELF64BE>();
-
template MergeInputSection<ELF32LE> *elf::createCommentSection();
template MergeInputSection<ELF32BE> *elf::createCommentSection();
template MergeInputSection<ELF64LE> *elf::createCommentSection();
diff --git a/lld/ELF/SyntheticSections.h b/lld/ELF/SyntheticSections.h
index 40ce02fce33..88b1dd29231 100644
--- a/lld/ELF/SyntheticSections.h
+++ b/lld/ELF/SyntheticSections.h
@@ -790,7 +790,7 @@ private:
};
template <class ELFT> InputSection *createCommonSection();
-template <class ELFT> InputSection *createInterpSection();
+InputSection *createInterpSection();
template <class ELFT> MergeInputSection<ELFT> *createCommentSection();
template <class ELFT>
SymbolBody *addSyntheticLocal(StringRef Name, uint8_t Type, uint64_t Value,
diff --git a/lld/ELF/Writer.cpp b/lld/ELF/Writer.cpp
index ce36ddee478..a7895110a42 100644
--- a/lld/ELF/Writer.cpp
+++ b/lld/ELF/Writer.cpp
@@ -325,7 +325,7 @@ template <class ELFT> void Writer<ELFT>::createSyntheticSections() {
Out::ProgramHeaders->updateAlignment(sizeof(uintX_t));
if (needsInterpSection<ELFT>()) {
- In<ELFT>::Interp = createInterpSection<ELFT>();
+ In<ELFT>::Interp = createInterpSection();
Add(In<ELFT>::Interp);
} else {
In<ELFT>::Interp = nullptr;
OpenPOWER on IntegriCloud