Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

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

869 views
Skip to first unread message

PeterOut

unread,
Oct 26, 2004, 2:26:44 PM10/26/04
to
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

unread,
Oct 26, 2004, 2:42:42 PM10/26/04
to
MajorS...@excite.com (PeterOut) writes:

nm is probably the closest you'll get.

--
Måns Rullgård
m...@inprovide.com

Paul Pluzhnikov

unread,
Oct 26, 2004, 7:23:10 PM10/26/04
to
MajorS...@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.

0 new messages