<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - llvm-nm -D: display symbol versions"
   href="https://bugs.llvm.org/show_bug.cgi?id=48670">48670</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>llvm-nm -D: display symbol versions
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>tools
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>llvm-nm
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>i@maskray.me
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Since binutils 2.35, nm -D displays symbol versions by default.

    commit 7e6e972f74aeac0ebdbd95a7f905d871cd2581de
    Author: H.J. Lu <<a href="mailto:hjl.tools@gmail.com">hjl.tools@gmail.com</a>>
    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.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>