According to https://wiki.winehq.org/Wine_Features#A ... ortability, Wine "permits mixing of Win32 and POSIX code" and "permits mixing of ELF (.so) and PE (.dll/.exe) binaries in one address space", but I have been unable to find any clear documentation on how one might actually go about taking advantage of that. On latest Wine (9.9-2, Arch repos), simply calling LoadLibraryA() on a .so spits out
Code: Select all
0158:err:seh:NtRaiseException Unhandled exception code c0000409 flags 1 addr 0x7b9e94a5
I've also seen mentions of PE binaries running on Wine being able to execute Linux syscalls, which would be a fine alternative to all this, but I don't know how that would be possible on 8.10+ due to the syscall translation interface and I have again been unable to find any relevant documentation (Wine Developer's Guide/Kernel modules and Wine Developer's Guide/Architecture Overview are both 8+ years out of date).
Both the .dll and .so are being compiled for i686 and I'm testing this in a win32 prefix.