We help IT Professionals succeed at work.

Is there a command on Linux similiar to dump -H or chatr for other UNIX flavors?

myfalcon
myfalcon asked
on
Medium Priority
845 Views
Last Modified: 2013-12-16
Is there a command on Linux similiar to dump -H or chatr for other UNIX flavors? I need to see where and what shared library files are linked to a specific  '.so' file in Linux.

Like the example from HP-UX below......   can anyone tell me a similiar command? The part I need is the ***Import File Strings*** showing the location of linked / required files.  (except in Linux). Ultimately our application gets an error working with Oracle 10g on the same box even though it appears to be configured properly: failed to create OCI environment.

Any help would be appreciated.

Thanks,


----------------------------------------------------------------
dump -H sqoracle.oci9.so
 
sqoracle.oci9.so:
 
                        ***Loader Section***
                      Loader Header Information
VERSION#         #SYMtableENT     #RELOCent        LENidSTR
0x00000001       0x0000008c       0x00000272       0x00000031
 
#IMPfilID        OFFidSTR         LENstrTBL        OFFstrTBL
0x00000003       0x00002a98       0x000006ec       0x00002ac9
 
                        ***Import File Strings***
INDEX  PATH                          BASE                MEMBER
0      /usr/lib:/lib
1                                    libc.a              shr.o
2                                    libclntsh.a         shr.o

Comment
Watch Question

Have you tried ldd?

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
Top Expert 2005

Commented:
try:
objdump -x lib.so
nm -a lib.so
and also: ldd lib.so
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.