Skip to contentSkip to conversation

demangling of @plt entries

DISCUSSION Milian Wolff 2 participants 3 messages Oct 3, 2015 – Oct 4, 2015

lore
Share & tools
lore
#0 lore raw

Hey all,

both perf and c++filt seem to have a problem with demangling @plt symbols:

c++filt _ZNK12QMapNodeBase8nextNodeEv@plt
_ZNK12QMapNodeBase8nextNodeEv@plt

c++filt _ZNK12QMapNodeBase8nextNodeEv
QMapNodeBase::nextNode() const

My question is: Should perf prevent this? I have a patch locally to just demangle symbols up to the @plt at the end, i.e. ignoring it. This fixes the problem for me.

But I'm not so sure - sounds like this is something that would be better fixed globally. I found https://sourceware.org/bugzilla/show_bug.cgi?id=12021 but that says it should be fixed already. Can anyone else reproduce this? Where should this be fixed, can anyone point me to a software repository?

c++filt --version
GNU c++filt (GNU Binutils) 2.25.1

perf from current acme/perf/core

Thanks

Signature · 4 lines
Milian Wolff | [email protected] | Software Engineer
KDAB (Deutschland) GmbH&Co KG, a KDAB Group company
Tel: +49-30-521325470
KDAB - The Qt Experts
#1 lore raw
Quoted 3 lines · Milian Wolff

c++filt --version
GNU c++filt (GNU Binutils) 2.25.1

I had a similar patch before, but it seems the problem disappears when binutils (or rather libiberty) is updated.

-Andi

#2 lore raw
Quoted 6 lines · On Sonntag, 4. Oktober 2015 09:03:16 CEST Andi Kleen wrote:
Quoted 2 lines · Milian Wolff

c++filt --version
GNU c++filt (GNU Binutils) 2.25.1

I had a similar patch before, but it seems the problem disappears when binutils (or rather libiberty) is updated.

Are you running a self-compiled binutils from git? To my knowledge, 2.25.1 is the latest stable release.

But thanks, that at least tells me that I can wait and keep my patch local until a new binutils is released.

Bye

Signature · 4 lines
Milian Wolff | [email protected] | Software Engineer
KDAB (Deutschland) GmbH&Co KG, a KDAB Group company
Tel: +49-30-521325470
KDAB - The Qt Experts