Operating System - HP-UX
1836746 Members
2854 Online
110109 Solutions
New Discussion

Re: How to see loaded library

 
Mocellin Gilles
New Member

How to see loaded library

I would like to see which libraries are loaded at a time.
It will be also great to see which librairies are loaded by a specific process.

Is there a command or a tool for that ?

Thank you.
2 REPLIES 2
Melvyn Burnard_1
Regular Advisor

Re: How to see loaded library

Not sure if this is what you are looking for, but try using hte chatr command
on the executable, e.g.:

$ chatr /usr/sbin/lvdisplay
/usr/sbin/lvdisplay:
shared executable
shared library dynamic path search:
SHLIB_PATH disabled second
embedded path disabled first Not Defined
internal name:
lvchange.mir
shared library list:
dynamic /usr/lib/libc.1
shared library binding:
deferred
global hash table disabled
plabel caching disabled
static branch prediction disabled
kernel assisted branch predictionenabled
lazy swap allocationdisabled
text segment lockingdisabled
data segment lockingdisabled
data page size: 4K
instruction page size: 4K
Eric Lemoine_1
Occasional Contributor

Re: How to see loaded library

Hi Gilles,

yes you can !

use odump utility to see which libraries (*.sl) are loaded fom an executable
file or from an library file.

odump -u to see how to use it.

regards,
Eric