[llvm-bugs] [Bug 30312] New: Only one of multiple mangled symbols matching a version script entry has the symbol version appended

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Sep 7 11:01:32 PDT 2016


https://llvm.org/bugs/show_bug.cgi?id=30312

            Bug ID: 30312
           Summary: Only one of multiple mangled symbols matching a
                    version script entry has the symbol version appended
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P
         Component: ELF
          Assignee: unassignedbugs at nondot.org
          Reporter: emaste at freebsd.org
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

I've added a change to a test case to demonstrate the issue in
https://reviews.llvm.org/D24306

Both of these symbols demangle to abc::abc():
_ZN3abcC1Ev
_ZN3abcC2Ev

(These would be abc's complete object constructor and base object constructor,
respectively.)

however with `"abc::abc()"` in the version script only one of the two receives
the symbol version.

>From llvm-readobj -V -dyn-symbols I find these two symbols:

_ZN3abcC1Ev@
_ZN3abcC2Ev@@LIBSAMPLE_1.0

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160907/6b00acd7/attachment.html>


More information about the llvm-bugs mailing list