Home

Awesome

LLVMMyPass

My toy llvm obfusacte passes

passes

usage

目前没有集成到llvm项目中去,可以编译成so玩玩

clang `llvm-config --cxxflags` -Wl,-znodelete -fno-rtti -fPIC -shared VarObfu.cpp -o Var.so `llvm-config --ldflags`

clang -S -emit-llvm test.cpp -o test.ll

opt -load Var.so -var test.ll -S -o test_out.ll

llvm-as test_out.ll

clang test_out.ll -o test