How to list library dependencies of a non-native binary?

Posted by lvella on Stack Overflow See other posts from Stack Overflow or by lvella
Published on 2012-04-07T05:26:12Z Indexed on 2012/04/07 5:29 UTC
Read the original article Hit count: 146

When developing for native platform, I can use ldd to list all the shared libraries (.so files) a binary executable I build will try to load upon start-up. But when cross-compiling, I don't know how to get the same information. The ldd is not a normal binutils utility, like strip or ar, that can be built alongside gcc for cross compiling, but instead, it is a cryptic shell script that apparently can only run on native platform.

So, using the cross-target binutils tools, is there any way to get a list of the dynamically linked dependency for of a foreign binary?

© Stack Overflow or respective owner

Related posts about linux

Related posts about gcc