mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-30 19:24:23 +01:00
Remove wrong alignment check on relocations. Add a comment.
This commit is contained in:
1 parent
20e1bdceeb
commit
77ef79892e
1 file changed
+5
-1
@@ -78,7 +78,11 @@ bool ElfReader::LoadRelocations(Elf32_Rel *rels, int numRelocs)
|
||||
}
|
||||
|
||||
addr += segmentVAddr[readwrite];
|
||||
if ((addr & 3) || !Memory::IsValidAddress(addr)) {
|
||||
|
||||
// It appears that misaligned relocations are allowed.
|
||||
// Will they work correctly on big-endian?
|
||||
|
||||
if (!Memory::IsValidAddress(addr)) {
|
||||
if (numErrors < 10) {
|
||||
WARN_LOG(LOADER, "Suspicious address %08x, skipping reloc", addr);
|
||||
} else if (numErrors == 10) {
|
||||
|
||||
Reference in new issue
Block a user