mirror of
https://github.com/FEX-Emu/FEX.git
synced 2025-02-06 06:28:19 +00:00
a6b0181cd4
32-bit GOT calculation needs to do a call+pop to do get the EIP on 32-bit. LEA doesn't work because it there is no EIP relative ops like on x86-64. This causes a terrible block split on every GOT calculation without the optimization in place. Now the block can continue through this weird GOT calculation. This will be worthwhile for our 32-bit thunks where for some reason the GOT calculation can't be removed. The GOT is calculated even though it isn't used.