以前常用 ldd 來看一支程式到底吃了哪些 shared libraries ,然而在板子上卻不知該如何下手 :P 後來終於找到關鍵字 readelf 啦!所以就先找一下 cross compiler tools:

$ find /path -name "*readelf*"
/path/bin/armv6z-*-linux-gnueabi-readelf

接著用這工具就行:

$ /path/bin/armv6z-*-linux-gnueabi-readelf -a my_arm_tool | grep "Shared"
0x00000001 (NEEDED) Shared library: [libjsqlite.so]
0x00000001 (NEEDED) Shared library: [libjson.so]
0x00000001 (NEEDED) Shared library: [libc.so.6]
...


, , , ,

changyy 發表在 痞客邦 PIXNET 留言(0) 人氣()