How to obtain readelf and objdump binaries for OS X?

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.

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.

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.


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.

Need Your Help

UnexpectedNullableFound on left join

sql scala anorm

Hi I'm running into an issue where I get an UnexpectedNullableFound. The colum may return a null value, but I have this mapped (as below) as an Option, so should not cause an issue. This works for ...

retain array class when operation results in 2-dimensional matrix

arrays r class matrix

I have an array that can have one or more pages or sheets (my names for the third dimension). I am attempting to perform operations on the array. When there is only one sheet or page the result o...