diff options
-rw-r--r-- | lld/ELF/OutputSections.cpp | 4 | ||||
-rw-r--r-- | lld/ELF/OutputSections.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/lld/ELF/OutputSections.cpp b/lld/ELF/OutputSections.cpp index a55315e096c..8b8026ae5e5 100644 --- a/lld/ELF/OutputSections.cpp +++ b/lld/ELF/OutputSections.cpp @@ -616,9 +616,9 @@ template <class ELFT> void DynamicSection<ELFT>::finalize() { } if (Symbol *S = SymTab.getSymbols().lookup(Config->Init)) - InitSym = dyn_cast<ELFSymbolBody<ELFT>>(S->Body); + InitSym = S->Body; if (Symbol *S = SymTab.getSymbols().lookup(Config->Fini)) - FiniSym = dyn_cast<ELFSymbolBody<ELFT>>(S->Body); + FiniSym = S->Body; if (InitSym) ++NumEntries; // DT_INIT if (FiniSym) diff --git a/lld/ELF/OutputSections.h b/lld/ELF/OutputSections.h index 8cace93f99c..45d9fd181ed 100644 --- a/lld/ELF/OutputSections.h +++ b/lld/ELF/OutputSections.h @@ -414,8 +414,8 @@ public: private: SymbolTable<ELFT> &SymTab; - const ELFSymbolBody<ELFT> *InitSym = nullptr; - const ELFSymbolBody<ELFT> *FiniSym = nullptr; + const SymbolBody *InitSym = nullptr; + const SymbolBody *FiniSym = nullptr; uint32_t DtFlags = 0; uint32_t DtFlags1 = 0; }; |