Re: Tool for examining sybols in a lib file

James Olin Oden <[email protected]> Thu, 27 Nov 2003 19:04:07 -0500 (EST)
Newsgroups gmane.linux.redhat.devel
Message-ID <[email protected]>
On Thu, 27 Nov 2003, exits funnel wrote:

> Hello,
> 
> I'm trying to find a way to find out the names of the
> symbols (functions/variables) archived in a native
> library - libm.a, for concreteness.  It seems I should
> be able to do it somehow with ld but I can't find an
> option.  Can anyone point me in the right direction? 
> Thanks in advance.
>
Just do:

	nm (name_of_static_lib)

See the nm man page for more details.  Cheers...james