Skip to contentSkip to conversation

Shared Object

DISCUSSION raja 3 participants 4 messages Sep 1, 2005 1 message not in the archive

lore
Share & tools
lore

raja

author
#0 lore raw

Hi,
Can anyone help me how to see list of object files that are in a
shared object.(.so file)

thanking you,
Raja

#1 lore raw
Quoted 3 lines · raja

Hi,
Can anyone help me how to see list of object files that are in a
shared object.(.so file)

You probably mean listing all symbols exported by an object file. If so, try nm, objdump and their friends.

Regards

\Steve

--

Steve Graegert <[email protected]>
Software Consultancy {C/C++ && Java && .NET}
Mobile: +49 (176) 21248869
Office: +49 (9131) 7126409

A message that is not in the archive (sent off-list or not yet received): [email protected]

#3 lore raw
Quoted 3 lines · raja

Thank you so much,
I need the list of files that in the shared object.I think it is not possible with nm or objdump.

I suppose you want to list object files that are imported by a certain object file. This is what ldd does. Example:

        % ldd myapp
        libpthread.so.0 => (0x4002d000)
        libmysharedlib.so => (0x40042000)
        libc.so.6 => (0x4005b000)
        ld-linux.so.2 => (0x40000000)
        ...

An object file does not contain other object files, but references to dependent libraries. Hope this is what you're looking for.

Regards

\Steve

Quoted 4 lines

Steve Graegert wrote:
On 9/1/05, raja <[email protected]> wrote:

Hi,

Can anyone help me how to see list of object files that are in a
shared

Quoted 3 lines

object.(.so file)

You probably mean listing all symbols exported by an object file. If

so, try

Quoted 1 line

nm, objdump and their friends.

#4 lore raw
In reply to raja

Hello,

You could use the following command line: objdump -t "yourlib.so". In order to see the symbols, your lib mustn't be stripped.
For more information "man objdump".
Good luck.

Ronaldo Z. Afonso
Projetista de Software
Cyclades Brasil
[email protected]

Phone: 55 11 5033-3361
Fax: 55 11 5033-3388
www.cyclades.com.br

raja
<vnagaraju@effige
nt.net> To
Sent by: [email protected]
linux-c-programmi cc
[email protected]
nel.org Subject
Shared Object

09/01/2005 01:14
AM

Hi,
Can anyone help me how to see list of object files that are in a
shared object.(.so file)

thanking you,
Raja
-
To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html