Friday, June 11, 2010

determining what shared libs a program is using

To trace what libs an exe is using run this.

ldd <full_path_to_exe>

If you where to ldd ls you get this kind of result

ldd /bin/ls
   linux-vdso.so.1 =>  (0x00007fff04dfe000)
   librt.so.1 => /lib/librt.so.1 (0x00007f3c869ce000)
   libselinux.so.1 => /lib/libselinux.so.1 (0x00007f3c867b2000)
   libacl.so.1 => /lib/libacl.so.1 (0x00007f3c865ab000)
   libc.so.6 => /lib/libc.so.6 (0x00007f3c86249000)
   libpthread.so.0 => /lib/libpthread.so.0 (0x00007f3c8602d000)
   /lib64/ld-linux-x86-64.so.2 (0x00007f3c86bd7000)
   libdl.so.2 => /lib/libdl.so.2 (0x00007f3c85e29000)
   libattr.so.1 => /lib/libattr.so.1 (0x00007f3c85c25000)

No comments:

Post a Comment