[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gprof cannot find symbols in a MIPS IRIX a.out

From: Ian Lance Taylor
Subject: Re: gprof cannot find symbols in a MIPS IRIX a.out
Date: 21 Dec 2003 15:14:23 -0500
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

Anmol Paralkar <address@hidden> writes:

>  Actually, I'm not trying to profile a shared library. The problem is that
>  by default compilation assumes shared libraries, and so the symbols are
>  placed in the dynamic symbol table, whereas gprof expects them in the
>  normal one.

That is not how most ELF linkers behave, although Daniel suggested
that the Irix linker does behave that way.  Most ELF linkers create
both a normal symbol and a dynamic symbol table when linking against a
shared object.  I expect that there is some way to tell the Irix
linker to do the same.  In general, the dynamic symbol table need only
contain symbols which are dynamically linked; the normal symbol table
is normally larger.

>  So the change that I made:
> > Precisely how does it not work?  I don't know if that will give you
> > correct profiling, but I would not expect you to get the ``no symbol''
> > error.
>  Here's the debugger trace:

I'm sorry, I don't know why it isn't working.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]