This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]