Closed vars1ty closed 1 year ago
A couple questions:
From the looks of it, it could either be something specific to CE, or something in the GNU runtime that expects something that isn't there. I have no experience with it so the best thing would be to attach with a debugger. I'll try to tinker with it soonish, but I'm a bit busy lately.
It's tied to GNU. I managed to work around the issue by using the MSVC toolchain on Linux via LLD. If anyone else is encountering the same issue, I wrote a guide for it here. Closing since I don't think there's much to do about it. The workaround works and working around this issue on the GNU toolchain will take weeks to solve.
As mentioned briefly in #116, building with windows-gnu and injecting doesn't work. Although I know it's only really officially supported for Windows via MSVC, it would still be nice to have it working by cross-compiling from a different platform.
Steps:
x86_64-unknown-linux-gnu
build target viarustup
cargo build --release --target x86_64-unknown-linux-gnu
Using MSVC would obviously be the most ideal solution, not just because of this issue, but because of smaller build-sizes and other misc things. Although because it's a true hassle to get it even working on Linux, it doesn't want to compile hudhook nor anything other than some basic println Hello World applications.
Injecting a working DLL works just fine on Linux, so no issues there.