Skip to contentSkip to conversation

how to see .so contents

DISCUSSION s.srinivas 3 participants 3 messages Sep 11, 2001

lore
Share & tools
lore

s.srinivas

author
#0 lore raw

hi all,

Its a silly question i tried with all my friends but of no use.
Could any one tell me how to know the contents(modules) that are contained in any .so (shared objects) file.

say for ex. for archive file ar -t .a file name is used .

thank u all in advance.

regards
srinivas

The Information contained and transmitted by this E-MAIL is proprietary to Wipro and/or its Customer and is intended for use only by the individual or entity to which it is addressed, and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If this is a forwarded message, the content of this E-MAIL may not have been sent with the authority of the Company. If you are not the intended recipient, an agent of the intended recipient or a person responsible for delivering the information to the named recipient, you are notified that any use, distribution, transmission, printing, copying or dissemination of this information in any way or in any manner is strictly prohibited. If you have received this communication in error, please delete this mail & notify us immediately at [email protected]

#1 lore raw
Quoted 5 lines

Its a silly question i tried with all my friends but of no use.
Could any one tell me how to know the contents(modules) that are contained in any .so (shared objects) file.

say for ex. for archive file ar -t .a file name is used .

nm? man nm, nm library.so

Signature · 14 lines
				Petr "Pasky" Baudis
.                                                                       .
#define BITCOUNT(x)     (((BX_(x)+(BX_(x)>>4)) & 0x0F0F0F0F) % 255)
#define  BX_(x)         ((x) - (((x)>>1)&0x77777777)                    \
                             - (((x)>>2)&0x33333333)                    \
                             - (((x)>>3)&0x11111111))
             -- really weird C code to count the number of bits in a word
.                                                                       .
My public PGP key is on: http://pasky.ji.cz/~pasky/pubkey.txt
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GCS d- s++:++ a--- C+++ UL++++$ P+ L+++ E--- W+ N !o K- w-- !O M-
!V PS+ !PE Y+ PGP+>++ t+ 5 X(+) R++ tv- b+ DI(+) D+ G e-> h! r% y?
------END GEEK CODE BLOCK------
#2 lore raw
In reply to s.srinivas
Quoted 8 lines · s.srinivas

hi all,

Its a silly question i tried with all my friends but of no use.
Could any one tell me how to know the contents(modules) that are contained in any .so (shared objects) file.

say for ex. for archive file ar -t .a file name is used .

I think what you want is 'objdump'

try
/usr/bin/objdump -f shared_object.so

see the man pages for more info.

Regards,

Ken

Quoted 9 lines

thank u all in advance.

regards
srinivas

------------------------------------------------------------------------
Name: Wipro_Disclaimer.txt
Wipro_Disclaimer.txt Type: Plain Text (text/plain)
Encoding: 7bit