[Bug 222562] c++filt and libelftc do not demangle names correctly

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Sep 24 17:07:55 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=222562

            Bug ID: 222562
           Summary: c++filt and libelftc do not demangle names correctly
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: bin
          Assignee: freebsd-bugs at FreeBSD.org
          Reporter: ian at FreeBSD.org

Created attachment 186669
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=186669&action=edit
Small c++ program to demonstrate the problem

If you compile the attached tester.cc source (just "make tester.o") then use
nm(1) on the .o file, the nm output includes two mangled symbol names:

00000000 V _ZTS3Foo
00000000 r _ZTSZ4mainE3Bar

Running them through c++filt gives: 

# c++filt _ZTS3Foo _ZTSZ4mainE3Bar
typeinfo name for Foo
_ZTSZ4mainE3Bar

(The program also produces wrong output when it runs, but that will be handled
in a separate PR, becuase our current libcxxrt uses different demangling code
than libelftc).

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list