linker: Fix TLS for dynamic modules

* Technically not fully accurate but it works. TlsGetAddr should handle dynamic allocation of TLS blocks
This commit is contained in:
IndecisiveTurtle 2024-06-21 19:02:49 +03:00 committed by georgemoralis
parent 2506a285f4
commit 30351ad112
3 changed files with 7 additions and 4 deletions

View file

@ -177,7 +177,7 @@ s32 PS4_SYSV_ABI sceKernelLoadStartModule(const char* moduleFileName, size_t arg
// Load PRX module and relocate any modules that import it.
auto* linker = Common::Singleton<Core::Linker>::Instance();
u32 handle = linker->LoadModule(path);
u32 handle = linker->LoadModule(path, true);
if (handle == -1) {
return ORBIS_KERNEL_ERROR_EINVAL;
}