Skip to content

Conversation

chinggg
Copy link
Contributor

@chinggg chinggg commented Oct 25, 2022

This binary will be used for examples/extensions/r2/deflat_r2.py in qilingframework/qiling#1244

How to build it from examples/src/linux/fla_test.c with OLLVM CFG flatten:

git clone [email protected]:heroims/obfuscator.git -b llvm-9.0 
mkdir build-ollvm && cd build-ollvm
cmake -DCMAKE_BUILD_TYPE=Release -DLLVM_INCLUDE_TESTS=OFF -G Ninja ../obfuscator/
ninja
./bin/clang -m32 -mllvm -fla fla_test.c -o test_fla_argv

see source code at examples/src/linux/fla_test.c

How to build with OLLVM CFG flatten:
git clone [email protected]:heroims/obfuscator.git -b llvm-9.0
mkdir build-ollvm && cd build-ollvm
cmake -DCMAKE_BUILD_TYPE=Release -DLLVM_INCLUDE_TESTS=OFF -G Ninja ../obfuscator/
ninja
./bin/clang -m32 -mllvm -fla fla_test.c -o test_fla_argv
@xwings
Copy link
Member

xwings commented Nov 8, 2022

You did not include the source code ?

@xwings
Copy link
Member

xwings commented Nov 8, 2022

My bad, saw it.

@xwings xwings merged commit 32c4fcf into qilingframework:master Nov 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants