Kbase 20092: How to see a list of shared libraries used by an executable?
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  16/10/2008 |
|
Status: Verified
GOAL:
How to see a list of shared libraries used by an executable?
GOAL:
OS commands that verify shared objects & shared library dependencies.
FACT(s) (Environment):
Sun Solaris SPARC
IBM AIX
HP-UX
Compaq Tru64 UNIX
FIX:
You can see the list of the shared libraries used by progress by using commands;
"ldd" on Solaris and Tru64 UNIX
"chatr" on HP
"dump -H" on AIX
1) Solaris & Tru64 UNIX - ldd
ex.$ ldd $DLC/bin/_progres
libsocket.so.1 => /usr/lib/libsocket.so.1
libsocket.so.1 (SISCD_2.3) => (version not found)
libnsl.so.1 => /usr/lib/libnsl.so.1
libnsl.so.1 (SUNWprivate_1.1) => (version not found)
libnsl.so.1 (SISCD_2.3) => (version not found)
libintl.so.1 => /usr/lib/libintl.so.1
libdl.so.1 => /usr/lib/libdl.so.1
libdl.so.1 (SUNW_0.8) => (version not found)
libm.so.1 => /usr/lib/libm.so.1
libthread.so.1 => /usr/lib/libthread.so.1
libthread.so.1 (SUNW_1.1) => (version not found)
libthread.so.1 (SISCD_2.3) => (version not found)
libc.so.1 => /usr/lib/libc.so.1
libc.so.1 (SUNW_0.7) => (version not found)
libmp.so.1 => /usr/lib/libmp.so.1
libw.so.1 => /usr/lib/libw.so.1
2) HP-UX - chatr
ex $ chatr $DLC/bin/_progres /usr1/83C/dlc/bin/_progres:
shared executable
shared library dynamic path search:
SHLIB_PATH disabled second
embedded path disabled first Not Defined
internal name:
/rdl/83c/hpux/test/rx
shared library list:
dynamic /usr/lib/pa1.1/libcl.1
static /usr/lib/libcl.1
dynamic /usr/lib/libc.1
shared library binding:
deferred
static branch prediction disabled data page size:
4K
instruction page size: 4K
3) IBM AIX - dump -H
ex. $ dump -H $DLC/bin/_progres in/_progres:
***Loader Section***
Loader Header Information
VERSION# #SYMtableENT #RELOCent LENidSTR
0x00000001 0x000000a8 0x000035f8 0x00000046
#IMPfilID OFFidSTR LENstrTBL OFFstrTBL
0x00000003 0x00029780 0x0000017e 0x000297c6
***Import File Strings***
INDEX PATH BASE MEMBER
0 /usr/lib/threads:/usr/lib:/lib
1 libc_r.a shr.o
2 libpthreads.a shr.o