objdump : inaccurate demangling for foo(char* const)

Daniel Jacobowitz drow@mvista.com
Fri Sep 19 04:03:00 GMT 2003


On Fri, Sep 19, 2003 at 06:37:38AM +0300, Alex Vinokur wrote:
> ==========================================
> Windows 2000 Professional
> CYGWIN_NT-5.0 1.5.4(0.94/3/2)
> GNU gcc version 3.2 20020927 (prerelease)
> GNU objdump 2.14.90 20030901
> ==========================================
> 
> 
> It seems that objdump inaccurately demangles foo(char* const).
>   Low-level symbol name of foo(char* const) is valid : __Z3fooPc
>   But user-level symbol name obtained after demangling is inaccurate : foo(char*).

No, _Z3fooPc is the mangling for foo(char *).  It would be _Z3fooKPc.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer



More information about the Binutils mailing list