meme / hellscape

GIMPLE obfuscator for C, C++, Go, ... all supported GCC targets and front-ends that use GIMPLE.
GNU General Public License v3.0
390 stars 34 forks source link

Feature Request: Add support for MinGW #8

Closed mubix closed 4 years ago

mubix commented 4 years ago

It would be nice to be able to use this plugin in MinGW

meme commented 4 years ago

Not familiar with the process of using GCC plugins on MinGW, have you tried using it as-is?

mubix commented 4 years ago

I tried this:

i686-w64-mingw32-gcc-win32 -Wall -Os -fPIC -fplugin=/root/hellscape/build/hellscape.so -fplugin-arg-hellscape-sub nanomet.c -o hell.exe -s -lws2_32 -lwininet

And got this:

# i686-w64-mingw32-gcc-win32 -Wall -Os -fPIC -fplugin=/root/hellscape/build/hellscape.so -fplugin-arg-hellscape-sub nanomet.c -o hell.exe -s -lws2_32 -lwininet
error: expected GCC 9.3
cc1: error: fail to initialize plugin /root/hellscape/build/hellscape.so
meme commented 4 years ago

The GCC plug-in headers you are compiling against are not the same as the ones you are running against, you'd need to modify the CMakeLists.txt to change the includes directory to the plug-in headers of i686-w64-mingw32-gcc-win32

meme commented 4 years ago

(I assume this has been resolved.)