Index: ELF/SyntheticSections.h =================================================================== --- ELF/SyntheticSections.h +++ ELF/SyntheticSections.h @@ -1008,7 +1008,6 @@ GnuHashTableSection *GnuHashTab; HashTableSection *HashTab; InputSection *Interp; - GdbIndexSection *GdbIndex; GotSection *Got; GotPltSection *GotPlt; IgotPltSection *IgotPlt; Index: ELF/Writer.cpp =================================================================== --- ELF/Writer.cpp +++ ELF/Writer.cpp @@ -384,10 +384,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.