Tim
Tim

Reputation: 1344

Viewing JNI Function Signature from .so File

Given a shared object file with a compiled JNI interface, is there a way to view the actual function signature in the .so file?

readelf -a <library>.so | grep "<function name>"

shows that the function exists, but does not provide any further information other than:

39: 000ea0f5 1548 FUNC GLOBAL DEFAULT 8 _Z12<functionname>CppRN2cv3Mat

Any ideas?

Upvotes: 1

Views: 1261

Answers (1)

Alex Cohn
Alex Cohn

Reputation: 57183

The short answer is "NO".

Sometimes, you can find some hint that could help, see e.g. Android - NDK Shared libraries extracting relevant JNI hooks with nm / objdump. But if the JNI library uses RegisterNatives(), you will not even see the JNI functions in the exported list.

Upvotes: 2

Related Questions