core: Track load offsets of NSO modules

Needed for backtrace decomposition
This commit is contained in:
Zach Hilman 2019-05-17 21:41:33 -04:00
parent e86d2e2e5b
commit 2179ad7483
3 changed files with 18 additions and 0 deletions

View file

@ -164,6 +164,9 @@ std::optional<VAddr> AppLoader_NSO::LoadModule(Kernel::Process& process,
// Register module with GDBStub
GDBStub::RegisterModule(file.GetName(), load_base, load_base);
// Register module for ARMInterface with System
Core::System::GetInstance().RegisterNSOModule(file.GetName(), load_base);
return load_base + image_size;
}