diff options
| -rw-r--r-- | lld/ELF/SyntheticSections.h | 1 | ||||
| -rw-r--r-- | lld/ELF/Writer.cpp | 6 |
2 files changed, 2 insertions, 5 deletions
diff --git a/lld/ELF/SyntheticSections.h b/lld/ELF/SyntheticSections.h index 5b6bdbb434c..3679a6c237e 100644 --- a/lld/ELF/SyntheticSections.h +++ b/lld/ELF/SyntheticSections.h @@ -1007,7 +1007,6 @@ struct InStruct { SymbolTableBaseSection *DynSymTab; GnuHashTableSection *GnuHashTab; HashTableSection *HashTab; - GdbIndexSection *GdbIndex; GotSection *Got; GotPltSection *GotPlt; IgotPltSection *IgotPlt; diff --git a/lld/ELF/Writer.cpp b/lld/ELF/Writer.cpp index 6ed640edfd2..d238223959d 100644 --- a/lld/ELF/Writer.cpp +++ b/lld/ELF/Writer.cpp @@ -382,10 +382,8 @@ template <class ELFT> static void createSyntheticSections() { In.IgotPlt = make<IgotPltSection>(); Add(In.IgotPlt); - if (Config->GdbIndex) { - In.GdbIndex = GdbIndexSection::create<ELFT>(); - Add(In.GdbIndex); - } + if (Config->GdbIndex) + Add(GdbIndexSection::create<ELFT>()); // We always need to add rel[a].plt to output if it has entries. // Even for static linking it can contain R_[*]_IRELATIVE relocations. |

