[llvm-bugs] [Bug 48670] New: llvm-nm -D: display symbol versions

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Jan 5 13:05:55 PST 2021


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

            Bug ID: 48670
           Summary: llvm-nm -D: display symbol versions
           Product: tools
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: llvm-nm
          Assignee: unassignedbugs at nondot.org
          Reporter: i at maskray.me
                CC: llvm-bugs at lists.llvm.org

Since binutils 2.35, nm -D displays symbol versions by default.

    commit 7e6e972f74aeac0ebdbd95a7f905d871cd2581de
    Author: H.J. Lu <hjl.tools at gmail.com>
    Date:   Tue Mar 24 04:23:11 2020 -0700

        bfd: Display symbol version for nm -D

E.g.

% nm -D /lib/x86_64-linux-gnu/libc.so.6
00000000000493b0 T a64l@@GLIBC_2.2.5
0000000000025414 T abort@@GLIBC_2.2.5
00000000001c0a80 B __abort_msg@@GLIBC_PRIVATE
000000000003ed60 T abs@@GLIBC_2.2.5
...

We should implement this for llvm-nm -D. Note: llvm-readobj has very similar
logic so ideally that code should be reused.

Note: nm had implemented a temporary --with-symbol-versions which was removed.
We don't need that option. Displaying the symbol version is always preferable.

-- 
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/20210105/63abd421/attachment.html>


More information about the llvm-bugs mailing list