1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
| # ndk-build NDK_PROJECT_PATH=. NDK_APPLICATION_MK=Application.mk [armeabi-v7a] Executable : Hello [armeabi-v7a] Install : Hello => libs/armeabi-v7a/Hello [arm64-v8a] Compile : Hello <= Hello.c [arm64-v8a] Executable : Hello [arm64-v8a] Install : Hello => libs/arm64-v8a/Hello [x86_64] Compile : Hello <= Hello.c [x86_64] Executable : Hello [x86_64] Install : Hello => libs/x86_64/Hello
# file libs/armeabi-v7a/Hello libs/arm64-v8a/Hello libs/x86_64/Hello libs/armeabi-v7a/Hello: ELF 32-bit LSB shared object, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /system/bin/linker, BuildID[sha1]=899b8ea06a0b7372e7eef43db09bc145d5140ca5, stripped libs/arm64-v8a/Hello: ELF 64-bit LSB shared object, ARM aarch64, version 1 (SYSV), dynamically linked, interpreter /system/bin/linker64, BuildID[sha1]=1d490b72bbf70379b127a49f60d0383a62312937, stripped libs/x86_64/Hello: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /system/bin/linker64, BuildID[sha1]=2af85ada459a58e93ab96e7aceb5b546f8bce80d, stripped
arm-linux-androideabi-readelf -h libs/armeabi-v7a/Hello arm-linux-androideabi-readelf -A libs/armeabi-v7a/Hello arm-linux-androideabi-readelf -p .interp libs/armeabi-v7a/Hello arm-linux-androideabi-readelf -p .rodata libs/armeabi-v7a/Hello
aarch64-linux-android-readelf -h libs/arm64-v8a/Hello aarch64-linux-android-readelf -p .interp libs/arm64-v8a/Hello aarch64-linux-android-readelf -p .rodata libs/arm64-v8a/Hello
|