Comments (3)
Same problem
from obfuscator.
I got the same issue too. I'm using cmake with NDK 25
[D:\Android\Sdk\cmake\3.22.1\bin\cmake, -HD:\A\AT\oc5BF\nmm\dex2c, -DCMAKE_TOOLCHAIN_FILE=D:\Android\Sdk\ndk\25.1.8937393\build\cmake\android.toolchain.cmake, -DCMAKE_BUILD_TYPE=Release, -DANDROID_ABI=arm64-v8a, -DANDROID_NDK=D:/Android/Sdk/ndk/25.1.8937393, -DANDROID_PLATFORM=android-21, -DCMAKE_ANDROID_ARCH_ABI=arm64-v8a, -DCMAKE_ANDROID_NDK=D:/Android/Sdk/ndk/25.1.8937393, -DCMAKE_EXPORT_COMPILE_COMMANDS=ON, -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=D:\A\AT\oc5BF\nmm\obj\arm64-v8a, -DCMAKE_MAKE_PROGRAM=D:\Android\Sdk\cmake\3.22.1\bin\ninja, -DCMAKE_SYSTEM_NAME=Android, -DCMAKE_SYSTEM_VERSION=21, -BD:\A\AT\oc5BF\nmm\.cxx\cmake\Release\arm64-v8a, -GNinja]
-- The C compiler identification is Clang 14.0.6
-- The CXX compiler identification is Clang 14.0.6
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: D:/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: D:/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: D:/A/AT/oc5BF/nmm/.cxx/cmake/Release/arm64-v8a
[D:\Android\Sdk\cmake\3.22.1\bin\cmake, --build, D:\A\AT\oc5BF\nmm\.cxx\cmake\Release\arm64-v8a]
[1/19] Building C object CMakeFiles/bevuOKmgzuPtrh.dir/ConstantPool.c.o
[2/19] Building C object CMakeFiles/bevuOKmgzuPtrh.dir/generated/classes5_native_functions.c.o
[3/19] Building C object CMakeFiles/bevuOKmgzuPtrh.dir/generated/classes4_native_functions.c.o
[4/19] Building C object CMakeFiles/bevuOKmgzuPtrh.dir/generated/classes3_native_functions.c.o
[5/19] Building C object CMakeFiles/bevuOKmgzuPtrh.dir/generated/classes8_native_functions.c.o
[6/19] Building C object CMakeFiles/bevuOKmgzuPtrh.dir/generated/classes6_native_functions.c.o
[7/19] Building C object CMakeFiles/bevuOKmgzuPtrh.dir/generated/classes2_native_functions.c.o
[8/19] Building C object CMakeFiles/bevuOKmgzuPtrh.dir/generated/classes7_native_functions.c.o
[9/19] Building C object CMakeFiles/bevuOKmgzuPtrh.dir/generated/jni_init.c.o
[10/19] Building C object CMakeFiles/bevuOKmgzuPtrh.dir/generated/classes_native_functions.c.o
[11/19] Building C object CMakeFiles/bevuOKmgzuPtrh.dir/generated/classes9_native_functions.c.o
[12/19] Building C object CMakeFiles/bevuOKmgzuPtrh.dir/generated/classes10_native_functions.c.o
[13/19] Building CXX object vm/CMakeFiles/RjjptjURNkyiz.dir/Exception.cpp.o
[14/19] Building CXX object vm/CMakeFiles/RjjptjURNkyiz.dir/Interp.cpp.o
[15/19] Building CXX object vm/CMakeFiles/RjjptjURNkyiz.dir/GlobalCache.cpp.o
[16/19] Building CXX object vm/CMakeFiles/RjjptjURNkyiz.dir/DexCatch.cpp.o
[17/19] Building CXX object vm/CMakeFiles/RjjptjURNkyiz.dir/InterpC-portable.cpp.o
vmInterpret Contains Exception Handing Instructions and is unsupported for flattening in the open-source version of Hikari.
[18/19] Linking CXX shared library D:\A\AT\oc5BF\nmm\obj\arm64-v8a\libRjjptjURNkyiz.so
[19/19] Linking C shared library D:\A\AT\oc5BF\nmm\obj\arm64-v8a\libbevuOKmgzuPtrh.so
FAILED: D:/A/AT/oc5BF/nmm/obj/arm64-v8a/libbevuOKmgzuPtrh.so
cmd.exe /C "cd . && D:\Android\Sdk\ndk\25.1.8937393\toolchains\llvm\prebuilt\windows-x86_64\bin\clang.exe --target=aarch64-none-linux-android21 --sysroot=D:/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/windows-x86_64/sysroot -fPIC -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -mllvm -sub -mllvm -fla -mllvm -split -mllvm -bcf -mllvm -sobf -mllvm -aesSeed=0x29da86e29c7595ad14ea994897b8c76f -O3 -DNDEBUG -fvisibility=hidden -Wno-error=format-security -ffunction-sections -fdata-sections -w -static-libstdc++ -Wl,--build-id=sha1 -Wl,--no-rosegment -Wl,--fatal-warnings -Wl,--gc-sections -Wl,--no-undefined -Qunused-arguments -shared -Wl,-soname,libbevuOKmgzuPtrh.so -o D:\A\AT\oc5BF\nmm\obj\arm64-v8a\libbevuOKmgzuPtrh.so CMakeFiles/bevuOKmgzuPtrh.dir/ConstantPool.c.o CMakeFiles/bevuOKmgzuPtrh.dir/generated/classes10_native_functions.c.o CMakeFiles/bevuOKmgzuPtrh.dir/generated/classes2_native_functions.c.o CMakeFiles/bevuOKmgzuPtrh.dir/generated/classes3_native_functions.c.o CMakeFiles/bevuOKmgzuPtrh.dir/generated/classes4_native_functions.c.o CMakeFiles/bevuOKmgzuPtrh.dir/generated/classes5_native_functions.c.o CMakeFiles/bevuOKmgzuPtrh.dir/generated/classes6_native_functions.c.o CMakeFiles/bevuOKmgzuPtrh.dir/generated/classes7_native_functions.c.o CMakeFiles/bevuOKmgzuPtrh.dir/generated/classes8_native_functions.c.o CMakeFiles/bevuOKmgzuPtrh.dir/generated/classes9_native_functions.c.o CMakeFiles/bevuOKmgzuPtrh.dir/generated/classes_native_functions.c.o CMakeFiles/bevuOKmgzuPtrh.dir/generated/jni_init.c.o D:/A/AT/oc5BF/nmm/obj/arm64-v8a/libRjjptjURNkyiz.so -llog -latomic -lm && cd ."
Exception in thread "main" java.io.IOException: Cmd '[D:\Android\Sdk\cmake\3.22.1\bin\cmake, --build, D:\A\AT\oc5BF\nmm\.cxx\cmake\Release\arm64-v8a]' exec failed
ld: error: duplicate symbol: .datadiv_decode14541771729251396985
at com.nmmedit.apkprotect.BuildNativeLib.execCmd(BuildNativeLib.java:61)
>>> defined at classes2_native_functions.c
at com.nmmedit.apkprotect.BuildNativeLib.build(BuildNativeLib.java:27)
>>> CMakeFiles/bevuOKmgzuPtrh.dir/generated/classes2_native_functions.c.o:(.datadiv_decode14541771729251396985)
at com.nmmedit.apkprotect.ApkProtect.generateNativeLibs(ApkProtect.java:237)
>>> defined at classes3_native_functions.c
at com.nmmedit.apkprotect.ApkProtect.run(ApkProtect.java:137)
>>> CMakeFiles/bevuOKmgzuPtrh.dir/generated/classes3_native_functions.c.o:(.text..datadiv_decode14541771729251396985+0x0)
at com.nmmedit.protect.Main.main(Main.java:60)
ld: error: duplicate symbol: .datadiv_decode14541771729251396985
>>> defined at classes2_native_functions.c
>>> CMakeFiles/bevuOKmgzuPtrh.dir/generated/classes2_native_functions.c.o:(.datadiv_decode14541771729251396985)
>>> defined at classes4_native_functions.c
>>> CMakeFiles/bevuOKmgzuPtrh.dir/generated/classes4_native_functions.c.o:(.text..datadiv_decode14541771729251396985+0x0)
ld: error: duplicate symbol: .datadiv_decode14541771729251396985
>>> defined at classes2_native_functions.c
>>> CMakeFiles/bevuOKmgzuPtrh.dir/generated/classes2_native_functions.c.o:(.datadiv_decode14541771729251396985)
>>> defined at classes5_native_functions.c
>>> CMakeFiles/bevuOKmgzuPtrh.dir/generated/classes5_native_functions.c.o:(.text..datadiv_decode14541771729251396985+0x0)
ld: error: duplicate symbol: .datadiv_decode14541771729251396985
>>> defined at classes2_native_functions.c
>>> CMakeFiles/bevuOKmgzuPtrh.dir/generated/classes2_native_functions.c.o:(.datadiv_decode14541771729251396985)
>>> defined at classes6_native_functions.c
>>> CMakeFiles/bevuOKmgzuPtrh.dir/generated/classes6_native_functions.c.o:(.text..datadiv_decode14541771729251396985+0x0)
ld: error: duplicate symbol: .datadiv_decode14541771729251396985
>>> defined at classes2_native_functions.c
>>> CMakeFiles/bevuOKmgzuPtrh.dir/generated/classes2_native_functions.c.o:(.datadiv_decode14541771729251396985)
>>> defined at classes7_native_functions.c
>>> CMakeFiles/bevuOKmgzuPtrh.dir/generated/classes7_native_functions.c.o:(.text..datadiv_decode14541771729251396985+0x0)
ld: error: duplicate symbol: .datadiv_decode14541771729251396985
>>> defined at classes2_native_functions.c
>>> CMakeFiles/bevuOKmgzuPtrh.dir/generated/classes2_native_functions.c.o:(.datadiv_decode14541771729251396985)
>>> defined at classes8_native_functions.c
>>> CMakeFiles/bevuOKmgzuPtrh.dir/generated/classes8_native_functions.c.o:(.text..datadiv_decode14541771729251396985+0x0)
ld: error: duplicate symbol: .datadiv_decode14541771729251396985
>>> defined at classes2_native_functions.c
>>> CMakeFiles/bevuOKmgzuPtrh.dir/generated/classes2_native_functions.c.o:(.datadiv_decode14541771729251396985)
>>> defined at classes_native_functions.c
>>> CMakeFiles/bevuOKmgzuPtrh.dir/generated/classes_native_functions.c.o:(.text..datadiv_decode14541771729251396985+0x0)
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.
from obfuscator.
Kk, I tried heroims ollvm 9.0.1 on NDK 21.3 and got the same error too, so aesSeed is obviously broken
from obfuscator.
Related Issues (20)
- Compile 7.0 & 8.0 version of ollvm error on osx intel 10.15.7 HOT 2
- AutoRegistration Issue HOT 5
- String obfuscation NOT obfuscating in Windows HOT 1
- 使用xcodebuild 命令行指定工具链进行ollvm混淆编译不会生效 HOT 2
- Support for 15.x
- ollvm12.x 编译成功后, 按 wiki 所说, 替换 ndk bin 和 lib or lib64 后, AS 无法编译, 很多人有这问题, 麻烦看看怎么搞 HOT 4
- Can't patch NDK source with Ollvm 14
- 开启-mllvm -bcf后编译卡住问题 HOT 3
- 请教一个入门问题,如何编译 32 位的 bin ? 🤣 HOT 1
- Support for LLVM 17
- llvm 14.x 集成ollvm 混淆无效 HOT 3
- LLVM 9.0.1 分支,字符串混淆 没有生效
- 字符串混淆后 运行时获取 显示为没有还原
- Android开发下 ubuntu上移植 有人成功了么
- 为什么使用 c++ 标准的头文件就会出现报错
- 集成google test, 单元测试缺少libclang_rt.profile-aarch64-android.a 文件
- Mac arm架构编译出来的clang,出现Bad CPU type in executable
- 字符数组,混淆不生效
- 编译好一个ollvm之后,在xcode下,无法正常编译ipa
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from obfuscator.