Closed net-cowboy closed 11 months ago
Hi, It's more or less due to the way clang was compiled. Some includes the libraries "Core" or "Support", other don't.
Try to edit the CMakeLists.txt and remove either LLVMCore or LLVMSupport or both.
target_link_libraries(LLVMObfuscator LLVMCore LLVMSupport)
fixed, thanks!
Hi
I try to compile a test code:
The command line is the following:
LLVM_OBF_SCALAROPTIMIZERLATE_PASSES="split-basic-blocks" /usr/lib/llvm-14/bin/clang -v -fno-legacy-pass-manager -fpass-plugin=/home/user/obfuscator-llvm/build/libLLVMObfuscator.so test.c
I get the following error:
I am on Debian 64 bits 6.5.0. I have tried with clang versions 14 to 17, resulting in the same issue. The only difference is that -fno-legacy-pass-manager is not supported after version 15.
I have also tried compiling different files for different architectures, still no difference. I guess the .so obfuscator needs to be compiled with specific flags ?