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

后端 未结 9 867
孤城傲影
孤城傲影 2020-12-12 16:03

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-co

9条回答
  •  一生所求
    2020-12-12 17:00

    By design ldd can only been executed on target. However, it is possible to mimic ldd behavior using readelf. A script called `xldd' was developed in crosstool-ng project. An independent version of this script is available here:

    https://gist.github.com/jerome-pouiller/c403786c1394f53f44a3b61214489e6f

提交回复
热议问题