}
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)
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;
};