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

    <tr>
        <th>Summary</th>
        <td>
            Abort when parsing ELF file using llvm-nm
        </td>
    </tr>

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

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

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

<pre>
    reproduce steps:
`llvm-nm --debug-syms ./poc`

This issue can be reproduced in llvm11, I didn't test it on latest version of llvm.

[poc.zip](https://github.com/llvm/llvm-project/files/8777455/poc.zip)


</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyVUUGO3CAQfA2-tGzZ7bGxDxwm2Yy0Uo75AJi2TYSNBXhXu68Pw4ySvUZCNKWmq4pCOf0hPB3e6XMiCJGOwNorq19YfWV9be3bVu4blKUmdS5l-NgCVAxvh5tS-3kv779WE8CEcBJMcgdF8JdXg9nhTtU0DL_DK2ijd4Y8QqQQwURwqS8zeCMfTIJuzhPVVwnWfUu61ac5WPfCcFhjfNjFW1qLieupqsltCdxnn6VMLn7TFBOcjaWQ6sA5v3Td4x2ZD8evQoUWrR7bURbRREviqpyP8L7SDodM_vYFfvy8wZ0OzgyfQRWnt-K_beXU7r66jjdYrALHqdFtx-t5prqf-aAQtRy47pXWHOfCSkU2iBQIQ9zp_RF8OqdgCiOwRqw77OsBm4ZXsySaUY3tpdfY9cguNW3S2Con7PxSeJEtpS8OqWlNiOFfU4Zglp0oyyV-ecbVeREsmUmGg3yR1UV2_wc8Uryj">