On Sun, 18 Mar 2007, Philip Guenther wrote: > On 3/18/07, Woodchuck <[EMAIL PROTECTED]> wrote: > > I would like to know which symbols are defined in a shareable > > object library, say libfoo.so.1.0. > > > > If this were an old-style library (i.e. an archive), say libfoo.a, > > I would use "nm". > > > > Surely there is a tool for doing this with the .so's. What is it? > > (it's not "strings" ;-) The .a library is not available. > > Uh, you didn't simply try 'nm' and notice that it works on shared > objects? If you're looking for something that can see some of the > other structure of a shared library, take a look at 'objdump'.
Nm doesn't work on stripped .so's. It does work on unstripped ones. Thanks for reminding me of objdump; that works, too. (Although it won't show a symbol table (-s) on a stripped .so. -T will show the dynmaic sym.tab. however, stripped or not). I am simply interested in knowing in which library of several possibilities a certain symbol might be defined. Objdump and readelf will do it. thanks to all who responded! Dave