fix linker impl

This commit is contained in:
panzone 2025-03-08 23:27:38 +01:00
parent ff76836028
commit 0885f65757
4 changed files with 4 additions and 4 deletions

View File

@ -139,7 +139,7 @@ s32 Linker::LoadModule(const std::filesystem::path& elf_name, bool is_dynamic) {
return m_modules.size() - 1;
}
s32 Linker::LoadAndStartModule(const std::filesystem::path& path, size_t args, const void* argp,
s32 Linker::LoadAndStartModule(const std::filesystem::path& path, u64 args, const void* argp,
int* pRes) {
u32 handle = FindByName(path);
if (handle != -1) {

View File

@ -144,7 +144,7 @@ public:
void FreeTlsForNonPrimaryThread(void* pointer);
s32 LoadModule(const std::filesystem::path& elf_name, bool is_dynamic = false);
s32 LoadAndStartModule(const std::filesystem::path& path, size_t args, const void* argp,
s32 LoadAndStartModule(const std::filesystem::path& path, u64 args, const void* argp,
int* pRes);
Module* FindByAddress(VAddr address);

View File

@ -94,7 +94,7 @@ Module::Module(Core::MemoryManager* memory_, const std::filesystem::path& file_,
Module::~Module() = default;
s32 Module::Start(size_t args, const void* argp, void* param) {
s32 Module::Start(u64 args, const void* argp, void* param) {
LOG_INFO(Core_Linker, "Module started : {}", name);
const VAddr addr = dynamic_info.init_virtual_addr + GetBaseAddress();
return ExecuteGuest(reinterpret_cast<EntryFunc>(addr), args, argp, param);

View File

@ -203,7 +203,7 @@ public:
return (rela_bits[index >> 3] >> (index & 7)) & 1;
}
s32 Start(size_t args, const void* argp, void* param);
s32 Start(u64 args, const void* argp, void* param);
void LoadModuleToMemory(u32& max_tls_index);
void LoadDynamicInfo();
void LoadSymbols();