diff --git a/lld/ELF/SyntheticSections.h b/lld/ELF/SyntheticSections.h --- a/lld/ELF/SyntheticSections.h +++ b/lld/ELF/SyntheticSections.h @@ -1007,7 +1007,6 @@ SymbolTableBaseSection *DynSymTab; GnuHashTableSection *GnuHashTab; HashTableSection *HashTab; - InputSection *Interp; GdbIndexSection *GdbIndex; GotSection *Got; GotPltSection *GotPlt; diff --git a/lld/ELF/Writer.cpp b/lld/ELF/Writer.cpp --- a/lld/ELF/Writer.cpp +++ b/lld/ELF/Writer.cpp @@ -288,10 +288,8 @@ Out::ProgramHeaders = make("", 0, SHF_ALLOC); Out::ProgramHeaders->Alignment = Config->Wordsize; - if (needsInterpSection()) { - In.Interp = createInterpSection(); - Add(In.Interp); - } + if (needsInterpSection()) + Add(createInterpSection()); if (Config->Strip != StripPolicy::All) { In.StrTab = make(".strtab", false);