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

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

    commit 7e6e972f74aeac0ebdbd95a7f905d871cd2581de
    Author: H.J. Lu <[email protected]>
    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.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to