PATCH: Fix demangler in symbol versioning

Michael Elizabeth Chastain mec.gnu@mindspring.com
Fri Dec 5 01:16:00 GMT 2003
I have a c++filt that demangles "i" to "i" ... except when it demangles
"i" to "int".

  % echo i | /berman/migchain/install/target/native/binutils-2.14/bin/c++filt
  i

  % /berman/migchain/install/target/native/binutils-2.14/bin/c++filt i
  int

A quick look at the code reveals:

  /* For command line args, also try to demangle type encodings.  */
  result = cplus_demangle (mangled_name, flags | DMGL_TYPES);

Too clever by half.

As the path name implies, this is c++filt from stock binutils 2.14
from ftp.gnu.org.  Native i686-pc-linux-gnu, red hat 8.0.

Michael C
[Sorry, I am still using a mailer with no REFERENCE lines].



More information about the Binutils mailing list