summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/CPUCull.cpp
diff options
context:
space:
mode:
authortechflashYT <officialTechflashYT@gmail.com>2025-11-12 21:21:51 -0700
committertechflashYT <officialTechflashYT@gmail.com>2025-11-13 06:20:21 -0700
commitb2a57f43915a4dfbde4ab7ca38afbed90dc2edf9 (patch)
treeb115d5e6fd64b962a157b4022e52d68ca330a0b4 /Source/Core/VideoCommon/CPUCull.cpp
parent0c349306e3dd00864707a5ca7769c4e7afc6278e (diff)
Core/Boot: Fix ELF load address semantics
Tested with a binary that has VMA != (LMA | 0x80000000), unlike most libogc binaries. This is indeed a valid setup for ELFs, and one that is generally expected to work properly. Test code: https://github.com/Wii-Linux/NPLL/tree/reloc In either case, you still need to set the PC in the debugger to get it to boot properly, though that is a different issue that I will be fixing in a future patch. Without this patch, the code to be runtime-relocated ends up already loaded at the desired final address, and then when the code tries to relocate from what it thinks is the source address (where the code should be, where the LMA is) to the destination address (the VMA, where Dolphin mistakenly already put the code), it ends up overwriting the code that it is about to execute with garbage, and then promptly crashing. After this patch is applied, the behavior now matches the GameCube with Swiss (assuming a [recent patch](https://github.com/emukidid/swiss-gc/commit/bb4a57186c1481e291b7b0ea6d8e722bab816042) is applied), and the Wii with the Homebrew Channel.
Diffstat (limited to 'Source/Core/VideoCommon/CPUCull.cpp')
0 files changed, 0 insertions, 0 deletions