<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/55976>55976</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            `llvm-nm` not showing symbol types correctly
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          jeffy1009
      </td>
    </tr>
</table>

<pre>
    `llvm-nm` shows similar outputs as GNU `nm`.

If I manually change a symbol as weak by `objcopy -W <symbol> <file>`, and after examining it with `nm`, it shows that the symbol type is changed to `W` (which means weak), but `llvm-nm` does not show it correctly.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxdUEuTnCAQ_jV46RoLcHTw4GGzj9ReckvtuQVUJgiWYCb--4Czm01SRUE3fK-m92rvSEOt_Tmf3JwqCJO_BQhmNhZX8FtcthgAA3z99h0S4ECVhD4R-nDfXwd4hRndhtbuICd0owaEsM-9t5l50_gD-j2zfX-Vftnh9AakerxDSPWcm8FYncoEIvwR0CnAIeoV9C-cjTNuBBPhZuL0J0XGpbt74jhhTJv-8I37osGE9zwKos-8tzwi4eI2GTnBrNHd4xHeZrV-i_DvdyivAzh_d8lu0q-rltHuZaG6SrVVi0U00er__vGDk4P_FSl8ChTbarspxiWQ6oHwl7TGNN7Wl9LPqcli78dpWf01kVJrQth0SEVdt5emmLpGXSQTSoleiUYzUeFFnLUSArFl_CwLi722oSP1F8K502mKLJFqUj8VpuOUc9owyhjnZ1oyKWrJZF03eKkrwciZ6hmNLXOO0q9jsXZHpH4bQ3q0JsTw-YghmNFpfdglfdzi5NfuqodhZ5S2xWHeHeF_A2tvzVQ">