Sunday, 16 November 2014

Finding Library Dependencies

Have you ever wondered which libraries are being called by a binary or utility?

The AIX package “” includes the “ldd” binary which shows the shared libraries called by an executable. This example shows the shared libaries called by the ping executable.

# /usr/local/bin/ldd /usr/sbin/ping

Remember that some ".o" files are stored with ".a" files. To examine the contents of a ".a" file use the command: ar -tv

# ar -tv /usr/lib/libcrypt.a
rwxr-x---   300/1       4638 Mar 28 20:46 2010 shr.o

No comments:

Post a Comment