问题描述
从哪里可以下载readelf和OS X objdump的二进制文件?我试图从NDK .so库获得导出的函数列表,既不是纳米,也不otool为我工作。我读过,图书馆可能会在ELF格式和readelf objdump的或可能的工作。
From where can I download readelf and objdump binaries for OS X? I'm trying to get the list of exported functions from an NDK .so library and neither nm nor otool worked for me. I've read that the library might be in elf format and that readelf or objdump might work.
我能找到源头code对于那些工具,但我想的二进制文件。当然,他们已经有人已经编译。
I was able to find the source code for those utilities but I would like the binaries. Surely they've been compiled by someone already.
有会这样文章中大量的信息:的正是在那里,readelf和纳米时,我没有工作objdump的建议。
There was a lot of information in this SO article: How do I list the symbols in a .so file It is there that readelf and objdump are recommended when nm did not work for me.
推荐答案
这些工具可以作为NDK的一部分。你会在工具链找到它们
的NDK中的子目录,例如<$c$c>android-ndk-r10e/toolchains/arm-linux-androideabi-4.9/$p$pbuilt/darwin-x86_64/bin/arm-linux-androideabi-objdump$c$c>.还有一个版本的纳米
工具那里,将了解您的ELF .so文件, ARM-Linux的androideabi纳米
在与上述相同的路径。
These tools are available as part of the NDK. You'll find them in the toolchains
subdirectory within the NDK, e.g. android-ndk-r10e/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-objdump
. There's also a version of the nm
utility there which will understand your ELF .so files, arm-linux-androideabi-nm
in the same path as above.
这篇关于如何获取OS X readelf和objdump的二进制文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!