This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
nm -C no longer strips leading underscores?
- From: Christopher Faylor <cgf-use-the-mailinglist-please at sourceware dot org>
- To: binutils at sourceware dot org
- Cc: yselkowitz at users dot sourceforge dot net
- Date: Tue, 24 Jun 2008 23:18:40 -0400
- Subject: nm -C no longer strips leading underscores?
A Cygwin user has noticed that "nm -C" no longer removes the leading
underscore from symbols despite documentation to the contrary.
That behavior seems to have been caused by the introduction of the
bfd_demangle function which returns NULL when a symbol is not translated
by cplus_demangle rather than returning the symbol without the leading
underscore.
I think this is a bug but I'm not sure what the right fix is. bfd_demangle
is used in more places than just nm so maybe reverting to the old behavior
and returning xstrdup(<the symbol minus the underscore>) isn't the right
way to fix this.
Any thoughts on what I should do to fix this?
cgf