<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=http://email.email.llvm.org/c/eJy9VE2P2yAQ_TX2ZWTLJvYmPviQVbTdXnrobs8ViSc2uxgsBvLRX98xyaq7ai5Vq0oIGxjevHkP2Nru3K69l7sBO8CTHCeNoAh2MpAyPZB3aoK9VDo4pKTYJMX62t8V13YZigpGNVF2tphpZcIp0_owZheALHM42gNmhDuvrEkWm9xYjzcXdnYc0XjobTag1vZone7-Z5Y8EQ8Od2riDWdy1vrMSK8OyPOBHPdbZbj_yOS3iXfUksUa0Dnr5p-nx-fvT89fn9f3UV5W2csty34lB0l9r0yHJ6iSejObYazJTNAaPLpRMRXsbnsQ-7MNMMgDgrfgggE_4NVGf1S7ON2j52lGjpxyeLRHPKCD44AGPkMghE9fvr2ZrxxxuBpxhjKgPLBWr8QLBqELsQLmbk0Xo_ILDbJzJCGOBO884qRj8EqznnPhzI21lO78BnTJdom1EzoZJSE74mCPV2gW6INruZcu73-wWolYDd5PxDKzHdx65Yewnc3mwUzj-skmZ19Ybx7uleaTLR5WpSjEspw33QIXzSV52rWLrlk0MpXBD9a1r06-pMHp9o8zK6IQU9eLpmnSoa3roluu6v2-bArR1VVTYr1sUIqqlLivZarlFjW1LEAihMEjRAj-59rTv2egWpZgbkKUYlGIfHUny2WxqoWoihVWTVIVOPJjkM84uXV96toIuQ098aJW5OnXoiRSvUGMhJmhV15j--40zA8LARs83xz4t1ckjcW1sbKfPGykZw>53999</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            llvm-strip fails on mips  error: SHT_STRTAB string table section [index 4] is non-null terminated
        </td>
    </tr>

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

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

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

<pre>
    Attached example is causing strip failures

```
$ mips-yoe-linux-llvm-strip --remove-section=.note --remove-section=.comment go-helloworld
$ mips-yoe-linux-llvm-strip --remove-section=.note --remove-section=.comment go-helloworld
./recipe-sysroot-native/usr/bin/mips-yoe-linux/mips-yoe-linux-llvm-strip: error: SHT_STRTAB string table section [index 4] is non-null terminated
```

you have to run the strip twice to get this error. However when I use GNU strip first time then it works fine during second time.
so it seems llvm-strip is mutilating the binary during first strip operation somehow.
[go-helloworld.tar.gz](https://github.com/llvm/llvm-project/files/8120271/go-helloworld.tar.gz)

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy9U01v2zAM_TX2hbDhyHEaH3xIEXTdZYe1Ow-yzdhqZckQpXzs14-2U6xFcxkwDBBoiaTIx_fk2raXaue9bHpsAc9yGDWCImhkIGU6IO_UCAepdHBIUbaPst3VbrLrWo5iDYMaKblYTLQy4ZxofRySpUCSOBzsERPCxitronyfGuvxZqCxw4DGQ2eTHrW2J-t0-z-7pJF4cNiokS9cyFnrEyO9OiL7Azm2tTJsPyL55HgHLcp3gM5ZN22eHp9_Pj1_f97dz_Qyy17WTPsVHETFvTItnmEdFftJDGNNYoLW4NENiqFge1uD2V5sgF4eEbwFFwz4Hq8y-pNqZneHnt1cecaUwqM94REdnHo08BUCIXz59uNNfOWI09WAUykDygNz9UocMAhtmCdg7Na0c1a6wCA7ZRLiQPBOI246BK808zkNztiYS-kub4WWbkuuHdHJmRKyA_b2dC3NBH1QLfXSpd0vZisS2977kZhmloNXp3wf6klsPkwwrp9kdPaF-ebjQWl-2eJhuxKZuFtNl24VF-XSPG6rvC3zUsZeeY3Vu9mm34SA4U7vAP6t4HFwuvrr2RRRmIcr8rIs477ayAKLOs_LQ9G0h6LYtFiIbV4Xq9W6LrGOtaxRU8WQIiEMnmAuwXuGFquKKZqWECuRZyLdbuTqLtsWQqyzLa7LaJ3hwCykE47Uui52C0F16IiDWpGnP0FJpDqDOLfj-jL43rrq1cmXeO5bzbh_A6eOj0Q">