Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Sep 2017 17:07:55 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 222562] c++filt and libelftc do not demangle names correctly
Message-ID:  <bug-222562-8@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D222562

            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@FreeBSD.org
          Reporter: ian@FreeBSD.org

Created attachment 186669
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D186669&action=
=3Dedit
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:=20

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

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

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-222562-8>