mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-23 10:35:03 +00:00
logging to be sure which module we stared
This commit is contained in:
parent
a28f68708c
commit
1e0bbb06b3
@ -61,6 +61,7 @@ Module* Linker::LoadModule(const std::string& elf_name) {
|
||||
|
||||
auto& m = m_modules.emplace_back();
|
||||
m.linker = this;
|
||||
m.filename = elf_name;
|
||||
m.elf.Open(elf_name);
|
||||
|
||||
if (m.elf.isElfFile()) {
|
||||
@ -592,6 +593,7 @@ static PS4_SYSV_ABI int run_module(uint64_t addr, size_t args, const void* argp,
|
||||
}
|
||||
|
||||
int Linker::StartModule(Module* m, size_t args, const void* argp, module_func_t func) {
|
||||
LOG_INFO_IF(debug_loader, "Module started : {}\n",m->filename);
|
||||
return run_module(m->dynamic_info.init_virtual_addr + m->base_virtual_addr, args, argp, func);
|
||||
}
|
||||
|
||||
|
@ -100,7 +100,7 @@ struct Module {
|
||||
Loader::Elf elf;
|
||||
u64 aligned_base_size = 0;
|
||||
u64 base_virtual_addr = 0; // Base virtual address
|
||||
|
||||
std::string filename;
|
||||
Linker* linker = nullptr;
|
||||
|
||||
std::vector<u08> m_dynamic;
|
||||
|
Loading…
Reference in New Issue
Block a user