From bc0d3ae26c31dd157985ade44e08c6477a22af34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Fri, 13 Jun 2025 10:33:46 +0200 Subject: [PATCH] Remove bad check for exported variables (they don't need to be aligned) --- Core/HLE/sceKernelModule.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/Core/HLE/sceKernelModule.cpp b/Core/HLE/sceKernelModule.cpp index 577e0bb913..ec8576f669 100644 --- a/Core/HLE/sceKernelModule.cpp +++ b/Core/HLE/sceKernelModule.cpp @@ -1461,13 +1461,8 @@ static PSPModule *__KernelLoadELFFromPtr(const u8 *ptr, size_t elfSize, u32 load var.moduleName[KERNELOBJECT_MAX_NAME_LENGTH] = '\0'; for (u32 j = 0; j < variableCount; j++) { - u32 nid = residentPtr[ent->fcount + j]; - u32 exportAddr = exportPtr[ent->fcount + j]; - - if (exportAddr & 3) { - ERROR_LOG(Log::Loader, "Bad export address %08x", exportAddr); - continue; - } + const u32 nid = residentPtr[ent->fcount + j]; + const u32 exportAddr = exportPtr[ent->fcount + j]; // These can be unaligned (small varables or char arrays). int size; switch (nid) {