mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-06 21:00:17 +02:00
When relocations are loaded, all immediates read from memory are checked against the relocation map and transformed into an appropriately sign-extended entrypoint-relative variant of the specific operands addressing mode. As almost every case of an unhandled relocation will lead to a later, likely harder to debug, crash at runtime just bail out early if any such cases are encountered. Note that while this handles/detects all cases of relocated immediates, if relocations were applied to instructions themselves (occurs in some malware variants) these would be missed without any errors reported.