For Programmers: Free Programming Magazines  


Home > Archive > Unix Programming > October 2004 > Command to List Contents of Shared Object (.so) Library









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Command to List Contents of Shared Object (.so) Library
PeterOut

2004-10-26, 3:58 pm

Is there a command to list the contents of a shared object library (.so) file.
For an archive file the command is
ar t name.ar

What is the equivalent for .so files?

Thanks,
Peter.
Måns Rullgård

2004-10-26, 3:58 pm

MajorSetback@excite.com (PeterOut) writes:

> Is there a command to list the contents of a shared object library (.so) file.
> For an archive file the command is
> ar t name.ar
>
> What is the equivalent for .so files?


nm is probably the closest you'll get.

--
Måns Rullgård
mru@inprovide.com
Paul Pluzhnikov

2004-10-26, 8:56 pm

MajorSetback@excite.com (PeterOut) writes:

> What is the equivalent for .so files?


There is no equivalent, because (unlike .a) a .so is "fully linked"
and can't be "unarchived".

You can think of .a as a bunch of magazine issues in a box --
you can extract 1, 2, or all of them separately.

When linked into .so, they are now "bound together" as a hard-cover
volume (such as you might find in a scientific library).

The closest to 'ar t libfoo.a' is 'ls libfoo.so'

Cheers,
--
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com