[llvm-bugs] [Bug 36777] Fails to emit symbols when extern "C++" used in version script for symbols with [abi:cxx11] tag

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Feb 28 18:03:36 PST 2019


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

Fangrui Song <i at maskray.me> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |i at maskray.me
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #1 from Fangrui Song <i at maskray.me> ---
This should have been fixed at some point.

The output of `llvm-readelf --dyn-syms t.so` matches that of `readelf
--dyn-syms t.so`

The check lines need some adjustment:

# CHECK:      Name:
_Z14accepts_stringRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE@@VER1
# CHECK-NEXT: Value: 0
# CHECK-NEXT: Size: 0
# CHECK-NEXT: Binding: Global
# CHECK-NEXT: Type: Function
# CHECK-NEXT: Other: 0
# CHECK-NEXT: Section: .text

# CHECK:      Name: _Z14returns_stringB5cxx11v@@VER1
# CHECK-NEXT: Value: 0
# CHECK-NEXT: Size: 0
# CHECK-NEXT: Binding: Global
# CHECK-NEXT: Type: Function
# CHECK-NEXT: Other: 0
# CHECK-NEXT: Section: .text

_Z14returns_stringB5cxx11v has local binding so it is not in .dynsym

-- 
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/20190301/60ebaa50/attachment.html>


More information about the llvm-bugs mailing list