This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Understanding symbols in .o or .dylib file
- From: Erik Christiansen <dvalin at internode dot on dot net>
- To: binutils at sourceware dot org
- Date: Sun, 19 May 2013 18:28:30 +1000
- Subject: Re: Understanding symbols in .o or .dylib file
- References: <CABrM6wk3Y1soZiSeVm8FCiZaQXHFuCAs0ZbuOj8Sk9unZu0rhQ at mail dot gmail dot com>
- Reply-to: dvalin at internode dot on dot net
On 16.05.13 11:49, Peng Yu wrote:
> I have the following .dylib. If I want to find the symbol
> corresponding to myprint. I see __GLOBAL__I__Z7myprintv and
> __Z7myprintv. What are the difference between them? Besides using
> grep, is there a better way to search for symbols corresponding to a
> function? Thanks.
It appears that "nm -C" (or nm --demangle[=style]) should do that,
according to the manpage, so it might be worth a look. Having let my C++
books gather dust for a decade and a half, I won't offer an opinion on
how it's likely to suit. (And I have no idea what "style" parameters
are permissible.)
Erik
--
The right half of the brain controls the left half of the body.
This means that only left handed people are in their right mind.