This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: How to determine which symbols in a library are used by the client?
- From: "Bernd Jendrissek" <bernd dot jendrissek at gmail dot com>
- To: "Rick Mann" <rmann at latencyzero dot com>
- Cc: binutils <binutils at sourceware dot org>
- Date: Fri, 14 Sep 2007 10:34:17 +0200
- Subject: Re: How to determine which symbols in a library are used by the client?
- References: <ECAAB73E-0E36-4C72-8A3F-10FD951AABFF@latencyzero.com>
On 9/14/07, Rick Mann <rmann@latencyzero.com> wrote:
> I have a 3rd party graphics library and some code that uses it. I
> think we want to replace the graphics library, but we need to see
> what routines are called in it. Is there an easy way to do this?
I sometimes use something like this to satisfy my curiosity:
nm -D /bin/cat
You could list the dynamic symbols in the library too, and then do an
inner join (?) on the two lists.
HTH