mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-26 11:48:36 +01:00
Remove bad check for exported variables (they don't need to be aligned)
This commit is contained in:
1 parent
986eac71dc
commit
bc0d3ae26c
1 file changed
+2
-7
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user