eshard / obfuscator-llvm

Other
236 stars 42 forks source link

Upgrade to LLVM 15 and LLVM 16 #14

Closed PatriceBlin closed 1 year ago

PatriceBlin commented 1 year ago

Long overdue upgrade with new versions of LLVM

Notable changes are:

Build to be checked with:

Mostly to be tested on:

Test \ Pass sub split fla bogus str all passes together
C (openssl) ~ ~ ~ ~ ~ OK
C++ (llvm) ~ ~ ~ ~ ~
rust (alloy) ~ ~ ~ ~ ~
ndk (openssl) ~ ~ ~ ~ ~
PatriceBlin commented 1 year ago

OpenSSL 3.1.1 passed

I had to remove LLVMCore thou, we might need to find a portable solution for all thoses link conflicts

echo $CFLAGS
# -O1 -fpass-plugin=/tmp/libLLVMObfuscator.so
echo $CC
# /home/patrice/tmp/build-llvm/bin/clang
$CC --version
# clang version 16.0.6 (https://github.com/llvm/llvm-project.git 7cbf1a2591520c2491aa35339f227775f4d3adf6)
# Target: x86_64-unknown-linux-gnu
# Thread model: posix
# InstalledDir: /home/patrice/tmp/build-llvm/bin

openssl-3.1.1-obfs.txt openssl-3.1.1-vanilla.txt

PatriceBlin commented 1 year ago

As checks with OpenSSL checks are fine, I'm merging this for now.

We will perform more test with a CI or something.