Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

-mba -bcf -fla 在NDK-build环境下无法生效 #23

Open
chen362 opened this issue Jul 20, 2022 · 1 comment
Open

-mba -bcf -fla 在NDK-build环境下无法生效 #23

chen362 opened this issue Jul 20, 2022 · 1 comment

Comments

@chen362
Copy link

chen362 commented Jul 20, 2022

chen@chen-virtual-machine:~/桌面/ploto/jni$ ndk-build1
Android NDK: APP_PLATFORM not set. Defaulting to minimum supported version android-16.
[arm64-v8a] Compile++ : hello <= hello.cpp
Android (dev, based on r416183c2) clang version 12.0.9 (https://android.googlesource.com/toolchain/llvm-project c935d99d7cf2016289302412d708641d52d2f7ee)
Target: aarch64-none-linux-android21
Thread model: posix
InstalledDir: /home/chen/ollvm12/android-ndk-r23c-linux/android-ndk-r23c/toolchains/llvm/prebuilt/linux-x86_64/bin
Found candidate GCC installation: /home/chen/ollvm12/android-ndk-r23c-linux/android-ndk-r23c/toolchains/llvm/prebuilt/linux-x86_64/bin/../lib/gcc/aarch64-linux-android/4.9.x
Selected GCC installation: /home/chen/ollvm12/android-ndk-r23c-linux/android-ndk-r23c/toolchains/llvm/prebuilt/linux-x86_64/bin/../lib/gcc/aarch64-linux-android/4.9.x
Candidate multilib: .;@m64
Selected multilib: .;@m64
(in-process)
"/home/chen/ollvm12/android-ndk-r23c-linux/android-ndk-r23c/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++.real" -cc1 -triple aarch64-none-linux-android21 -emit-obj --mrelax-relocations -mnoexecstack -disable-free -disable-llvm-verifier -discard-value-names -main-file-name hello.cpp -mrelocation-model pic -pic-level 1 -fhalf-no-semantic-interposition -mframe-pointer=non-leaf -fno-rounding-math -mconstructor-aliases -munwind-tables -target-cpu generic -target-feature +neon -target-abi aapcs -mllvm -aarch64-fix-cortex-a53-835769=1 -fallow-half-arguments-and-returns -fno-split-dwarf-inlining -debug-info-kind=limited -dwarf-version=4 -debugger-tuning=gdb -v -ffunction-sections -fdata-sections -resource-dir /home/chen/ollvm12/android-ndk-r23c-linux/android-ndk-r23c/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/12.0.9 -dependency-file /home/chen/桌面/ploto/obj/local/arm64-v8a/objs/hello/hello.o.d -MT /home/chen/桌面/ploto/obj/local/arm64-v8a/objs/hello/hello.o -MP -D _FORTIFY_SOURCE=2 -D NDEBUG -I /home/chen/桌面/ploto/jni -D ANDROID -isysroot /home/chen/ollvm12/android-ndk-r23c-linux/android-ndk-r23c/toolchains/llvm/prebuilt/linux-x86_64/sysroot -internal-isystem /home/chen/ollvm12/android-ndk-r23c-linux/android-ndk-r23c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1 -internal-isystem /home/chen/ollvm12/android-ndk-r23c-linux/android-ndk-r23c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/local/include -internal-isystem /home/chen/ollvm12/android-ndk-r23c-linux/android-ndk-r23c/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/12.0.9/include -internal-externc-isystem /home/chen/ollvm12/android-ndk-r23c-linux/android-ndk-r23c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/aarch64-linux-android -internal-externc-isystem /home/chen/ollvm12/android-ndk-r23c-linux/android-ndk-r23c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/include -internal-externc-isystem /home/chen/ollvm12/android-ndk-r23c-linux/android-ndk-r23c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include -O2 -Wno-invalid-command-line-argument -Wno-unused-command-line-argument -Wformat -Werror=format-security -fdeprecated-macro -fdebug-compilation-dir /home/chen/桌面/ploto/jni -ferror-limit 19 -stack-protector 2 -fno-rtti -fno-signed-char -fgnuc-version=4.2.1 -fcolor-diagnostics -vectorize-loops -vectorize-slp -mllvm -mba -mllvm -mba-prob=100 -mllvm -fla -mllvm -gle -mllvm -bcf -mllvm -sub -mllvm -trap-angr -mllvm -trap-angr-times=3 -mllvm -trap-angr-prob=60 -o /home/chen/桌面/ploto/obj/local/arm64-v8a/objs/hello/hello.o -x c++ /home/chen/桌面/ploto/jni/hello.cpp
clang -cc1 version 12.0.9 based upon LLVM 12.0.9git default target x86_64-unknown-linux-gnu
ignoring nonexistent directory "/home/chen/ollvm12/android-ndk-r23c-linux/android-ndk-r23c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/include"
#include "..." search starts here:
#include <...> search starts here:
/home/chen/桌面/ploto/jni
/home/chen/ollvm12/android-ndk-r23c-linux/android-ndk-r23c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1
/home/chen/ollvm12/android-ndk-r23c-linux/android-ndk-r23c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/local/include
/home/chen/ollvm12/android-ndk-r23c-linux/android-ndk-r23c/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/12.0.9/include
/home/chen/ollvm12/android-ndk-r23c-linux/android-ndk-r23c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/aarch64-linux-android
/home/chen/ollvm12/android-ndk-r23c-linux/android-ndk-r23c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include
End of search list.
[arm64-v8a] Executable : hello
[arm64-v8a] Install : hello => libs/arm64-v8a/hello

你好 我使用的LLVM12版本 也/include/llvm/Transforms/Obfuscation /lib/Transforms/Obfuscation 和 /include/Eigen 全部添加
编译也没有报错

但是使用NDK-build 编译的话 加密效果挺好 但是-MBA -bcf -fla 目测无法生效 求解 还是说最新版本的pluto就是这样?

我使用clang编译的话可以混淆全开 但是-sub失效 main菜单出现 还有稳定性不妥?

请问我哪个方面出问题了 能否在ndk-build的情况下 混淆全开 ?

@CFZxa
Copy link

CFZxa commented Dec 27, 2022

Hey how do u solve library -lgcc and -latomic not found in NDK

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

No branches or pull requests

2 participants