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

    <tr>
        <th>Summary</th>
        <td>
            dsymutil generates DWARF units with version 0
        </td>
    </tr>

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

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

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

<pre>
    This is a regression from bd0dd27bb5be0fbf60c1b2a4ce15188812388574.

STR:
- Download and unpack https://drive.google.com/file/d/1ZLiYpu3mFl4W6Qi_a5xfeu2E5LI41s3Y/view?usp=sharing
- run `dsymutil --use-reproducer dsymutil-b354fe /tmp/gecko/obj-x86_64-apple-darwin/toolkit/library/build/XUL -o XUL.dSYM`
- run `llvm-dwarfdump XUL.dSYM > /dev/null`

You will see the following warning:
```
warning: DWARF unit at offset 0x313d661e has unsupported version 0, supported are 2-5
```

This causes problems with some other tools.

It's worth noting that none of the inputs are DWARF v5. They're all DWARF v4.

Cc: @avl-llvm 
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxsU11vnTgQ_TXmZcSVMV_mgYdub5EqZR-2TdVmXyqDB3BibOSPS_LvV3CTm81qJTSAZzxzZuYc4b2aDGJLyj9IeU5EDLN17aSFkSouSW_lS3s_Kw_KgwCHk0PvlTUwOrtAL6mUrO77skc69mNFh6xnohgwKzPOecZyzsu6OBF6JvTT1X6__0by1-8UznYz2goJwkiIZhXDE8whrH6PYR1hnXTqgqfJ2knjabALYd2oNO4ewrrs7zv1sMZ86XTxs_pL_Rbl84iRfSnvvhaZzx8I6y4KN5J30a8kP_tZOGWmt_ouGiAVlf5liUFpSNPoMXW4OivjgA7ePGmfl8WIQFgXlpWwbsLhyRLW2f4xfebV76pIxbpqTKVwmzJ7nLX6SQXCOq16J9wLYV0fld5x__pxB6mFXz_uTvL7w5-kov9BpPVlSeUm3Cjjst4CgeRfdgwSL4R1Jmp9u3q1DzbCprQGjwhhRhit1nZTZoJNOLO3_jb9_eb1OX7f3XD--elbB9GoACKAHUePAehznuWyqjKEWXiIxsd1tS6ghAu6gxWUsM_wfiwcAkvL_612tQe3BhE9elid7TUuHjYVZvB2QbBhRgf7HP0HDn0NhNUeNuvCDMaGvbswiwDGGgQ7Ho0rs8bgDxDXfi7lCe5nfCGsdghC67fzjwT9POwjIAUVF53ua4BEtrls8kYk2GYVLzjlDauSuW1GzMoaqaSyFBmVFc_qSjScj3nV9LRJVMsoy2nJcsoYL6oTx0bwijc1H3pRc0kKiotQ-rQXOlk3Jcr7iG3FeF0kWvSo_aFOxgxucDgJY7tYXXtwpI-TJwXVygf_niWooLG90XpCg04E9P9a7eugb7tLotPtR-1NKsyxf1Xdnvv1la7OPuKwU_tA5AnrDsT_BAAA___NP1se">