Remove bad check for exported variables (they don't need to be aligned)

This commit is contained in:
Henrik Rydgård committed 2025-06-13 10:33:46 +02:00
1 parent 986eac71dc
commit bc0d3ae26c
1 file changed
+2 -7
+2 -7
View File
@@ -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) {