Re: Symbols in a .so

2007-03-26 Thread Jason McIntyre
On Mon, Mar 19, 2007 at 04:48:23AM +0100, Ingo Schwarze wrote: > > Don't blame the missing man page on the GNU. > It is being built, but it is not being installed. > > > Index: gnu/usr.bin/binutils/Makefile.bsd-wrapper > === > RCS f

Re: Symbols in a .so

2007-03-18 Thread Ingo Schwarze
Woodchuck wrote on Sun, Mar 18, 2007 at 10:10:46PM -0400: > Hadn't noticed that readelf thing before. No man page. You seem to have a point. > Hmmm. Smells gnuish... Don't blame the missing man page on the GNU. It is being built, but it is not being installed. Index: gnu/usr.bin/binutils/Ma

Re: Symbols in a .so

2007-03-18 Thread a . velichinsky
On Sun, Mar 18, 2007 at 10:04:18PM -0400, Woodchuck wrote: > Actually the problem is that the .so was from a port, and > the library had been installed stripped. On an unstripped .so, > nm works fine. It works fine on a stripped .so too. > Will a stripped .so even work as a library for ld? Yes

Re: Symbols in a .so

2007-03-18 Thread Woodchuck
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".

Re: Symbols in a .so

2007-03-18 Thread a . velichinsky
On Sun, Mar 18, 2007 at 09:30:23PM -0400, Woodchuck 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

Re: Symbols in a .so

2007-03-18 Thread Philip Guenther
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 i

Re: Symbols in a .so

2007-03-18 Thread Woodchuck
On Sun, 18 Mar 2007, Rafael Almeida 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. > > I think readelf might be what you want. Yeah, that will dump out some useful stuff. Actually

Re: Symbols in a .so

2007-03-18 Thread Woodchuck
On Sun, 18 Mar 2007, Woodchuck wrote: > I would like to know which symbols are defined in a shareable > object library, say libfoo.so.1.0. False alarm! The lib had been stripped during installation. Port maintainer has been notified. nm will give a useful symbol table on an unstripped libxxx.s

Re: Symbols in a .so

2007-03-18 Thread Rafael Almeida
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. I think readelf might be what you want.

Symbols in a .so

2007-03-18 Thread Woodchuck
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 a