Index: lld/trunk/ELF/SyntheticSections.h =================================================================== --- lld/trunk/ELF/SyntheticSections.h +++ lld/trunk/ELF/SyntheticSections.h @@ -1007,7 +1007,6 @@ SymbolTableBaseSection *DynSymTab; GnuHashTableSection *GnuHashTab; HashTableSection *HashTab; - GdbIndexSection *GdbIndex; GotSection *Got; GotPltSection *GotPlt; IgotPltSection *IgotPlt; Index: lld/trunk/ELF/Writer.cpp =================================================================== --- lld/trunk/ELF/Writer.cpp +++ lld/trunk/ELF/Writer.cpp @@ -382,10 +382,8 @@ In.IgotPlt = make(); Add(In.IgotPlt); - if (Config->GdbIndex) { - In.GdbIndex = GdbIndexSection::create(); - Add(In.GdbIndex); - } + if (Config->GdbIndex) + Add(GdbIndexSection::create()); // We always need to add rel[a].plt to output if it has entries. // Even for static linking it can contain R_[*]_IRELATIVE relocations.