DreamSoule / ollvm17

Obfuscation LLVM 17
230 stars 37 forks source link

windows object can't be linked with ollvm17 #4

Open k1gen opened 10 months ago

k1gen commented 10 months ago

https://paste.rs/EmjQG.txt vanilla llvm 17.0.2 works

k1gen commented 9 months ago

@DreamSoule?

DreamSoule commented 9 months ago

using the LLVM compiler may lead to certain features that are available in MSVC not functioning properly. To my knowledge, in LLVM 16, std::once_flag cannot be used, but it is now available in LLVM 17.

k1gen commented 9 months ago

this code compiles fine with mingw-w64-gcc, and with vanilla llvm 17.0.2, but not with ollvm 17.0.2. what can I do?

DreamSoule commented 9 months ago

you can try disabling some obfuscation to pinpoint which obfuscation feature is causing the exception.

k1gen commented 9 months ago

only when I remove all the -mllvm options and -flto-visibility-public-std, I get a different error: https://paste.rs/CPkol.txt

DreamSoule commented 9 months ago

you sure have WinMain function ?

k1gen commented 9 months ago

I'm not sure if I do, but I have headers with definition (/usr/x86_64-w64-mingw32/include/winbase.h & /usr/x86_64-w64-mingw32/include/tchar.h)