Lu Blog

Segment fault!

Obfuscator LLVM 编译

克隆代码

git clone -b llvm-4.0 https://github.com/obfuscator-llvm/obfuscator.git
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release ../obfuscator/

如果在这里遇到错误,请使用下面命令

cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DLLVM_INCLUDE_TESTS=OFF ../obfuscator/

详情:https://github.com/obfuscator-llvm/obfuscator/issues/71
然后开始编译

make -j7

以下内容正在测试 请勿随意运行

./build/bin/clang++ ./helloworld.cpp  -mllvm -sub -mllvm -bcf -mllvm -fla  -o ./hel
../build/bin/clang -mllvm -fla --target=arm-linux-gnueabihf --sysroot=../gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabihf ./helloworld.cpp -o b

https://stackoverflow.com/questions/15330110/llvm-build-options-for-arm-raspberrypi
git clone https://github.com/raspberrypi/tools.git
https://www.raspberrypi.com.tw/tag/gcc-linaro-arm-linux-gnueabihf-raspbian/
https://llvm.org/docs/HowToCrossCompileLLVM.html

评论卡