Where to find nm tool (compiled or source code) for Android

前端 未结 2 1280
野的像风
野的像风 2021-01-07 01:34

I want to create an application that is able to list all symbols of a dynamic library .so file in Android. I want to ask if there is precompiled nm for Android or at least n

相关标签:
2条回答
  • 2021-01-07 02:02

    nm is available in all ndk toolchains, for example:
    < ndk >/toolchains/arm-linux-androideabi-4.8/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-nm

    0 讨论(0)
  • 2021-01-07 02:14

    nm is part of binutils. You can get the source code from http://ftp.gnu.org/gnu/binutils.

    You can also find arm supporting binary (compiled for host, linux-x86) in Android NDK.

    If you need a binary for Android target, you can try to build it by obtaining latest Android repository, navigating to external/elfutils. However I don't think there is an Android.mk building it, so it might not be trivial. You can see that nm.c on github mirror of Android repository.

    0 讨论(0)
提交回复
热议问题