diff options
-rw-r--r-- | lld/ELF/Symbols.h | 4 | ||||
-rw-r--r-- | lld/ELF/Writer.cpp | 3 |
2 files changed, 1 insertions, 6 deletions
diff --git a/lld/ELF/Symbols.h b/lld/ELF/Symbols.h index 4a684e7e2a0..269b461db53 100644 --- a/lld/ELF/Symbols.h +++ b/lld/ELF/Symbols.h @@ -338,9 +338,6 @@ public: // Some linker-generated symbols need to be created as // DefinedRegular symbols. template <class ELFT> struct ElfSym { - // The content for __ehdr_start symbol. - static DefinedSynthetic *EhdrStart; - // The content for _etext and etext symbols. static DefinedSynthetic *Etext; static DefinedSynthetic *Etext2; @@ -359,7 +356,6 @@ template <class ELFT> struct ElfSym { static DefinedRegular<ELFT> *MipsGp; }; -template <class ELFT> DefinedSynthetic *ElfSym<ELFT>::EhdrStart; template <class ELFT> DefinedSynthetic *ElfSym<ELFT>::Etext; template <class ELFT> DefinedSynthetic *ElfSym<ELFT>::Etext2; template <class ELFT> DefinedSynthetic *ElfSym<ELFT>::Edata; diff --git a/lld/ELF/Writer.cpp b/lld/ELF/Writer.cpp index 07e5a3de558..1971bf77c39 100644 --- a/lld/ELF/Writer.cpp +++ b/lld/ELF/Writer.cpp @@ -837,8 +837,7 @@ template <class ELFT> void Writer<ELFT>::addReservedSymbols() { return; // __ehdr_start is the location of ELF file headers. - ElfSym<ELFT>::EhdrStart = - addOptionalSynthetic<ELFT>("__ehdr_start", Out::ElfHeader, 0); + addOptionalSynthetic<ELFT>("__ehdr_start", Out::ElfHeader, 0); auto Define = [](StringRef S, DefinedSynthetic *&Sym1, DefinedSynthetic *&Sym2) { |