Keep symbols mapped from all loaded modules.

This way the map contains all the symbols used, not just a snapshot.
This commit is contained in:
Unknown W. Brackets
2013-06-30 10:15:21 -07:00
parent 7d44ea1ac8
commit bf1e37dd05
3 changed files with 1 additions and 11 deletions
-4
View File
@@ -547,13 +547,9 @@ Module *__KernelLoadELFFromPtr(const u8 *ptr, u32 loadAddress, std::string *erro
u32 textStart = reader.GetSectionAddr(textSection);
u32 textSize = reader.GetSectionSize(textSection);
host->AttemptLoadSymbolMap();
if (!reader.LoadSymbols())
MIPSAnalyst::ScanForFunctions(textStart, textStart+textSize);
}
else
host->AttemptLoadSymbolMap();
INFO_LOG(LOADER,"Module %s: %08x %08x %08x", modinfo->name, modinfo->gp, modinfo->libent,modinfo->libstub);