This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Understanding symbols in .o or .dylib file


On Thu, May 16, 2013 at 9:49 AM, Peng Yu <pengyu.ut@gmail.com> 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.

You can use c++filt to see what these symbols mean.

> c++filt _GLOBAL__I__Z7myprintv
global constructors keyed to myprint()
> c++filt _Z7myprintv
myprint()

Ian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]