Join Nostr
2024-10-23 14:00:57 UTC
in reply to

R on Nostr: if you do not care about doing CPU emulation, you can "just" load/run 32-bit x86 code ...

if you do not care about doing CPU emulation, you can "just" load/run 32-bit x86 code in a 64-bit x86_64 process by changing the cs register to 0x23 (and 0x33 to get back). silly infosec people have named this trick "Heaven's Gate". you might also want personality(2) to set ADDR_LIMIT_3GB

glhf with the magic around setting up the FS/GS segments and vDSO if you actually try to do this

WINE's "new WoW64" might already do something to this effect?