From 1e0bbb06b38f10408ff0b954b162ef35c3d5c68f Mon Sep 17 00:00:00 2001 From: georgemoralis Date: Mon, 1 Jan 2024 23:18:41 +0200 Subject: [PATCH] logging to be sure which module we stared --- src/core/linker.cpp | 2 ++ src/core/linker.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core/linker.cpp b/src/core/linker.cpp index 469a0ac58..098d41069 100644 --- a/src/core/linker.cpp +++ b/src/core/linker.cpp @@ -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); } diff --git a/src/core/linker.h b/src/core/linker.h index 1d13ec836..ad8474250 100644 --- a/src/core/linker.h +++ b/src/core/linker.h @@ -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 m_dynamic;