forked from OSchip/llvm-project
De-template InterpSection because it doesn't use ELFT.
llvm-svn: 296311
This commit is contained in:
parent
f8d47fda43
commit
3255a52200
|
@ -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();
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue