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: [email protected]
          Reporter: [email protected]

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.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"

Reply via email to