forked from OSchip/llvm-project
parent
495bb46b34
commit
167e62f8c1
|
@ -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)
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue