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

    <tr>
        <th>Summary</th>
        <td>
            Fix unwind registration for multiple JIT instances in a single process.
        </td>
    </tr>

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

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

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

<pre>
    /cherry-pick 84fe1f63b02414085bf7a8434caaf4a358be86da

This is the fix for https://github.com/llvm/llvm-project/issues/126611. It only affects ORC, and only changes behavior  when used with libunwind (so primarily on Darwin and BSD, but some Linux clients too).
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJykkd2K3DwMQJ_GuREbYjm_F7nYHwL78UGh3RewEyVR67EHy9mZefsy05Y-QK8EEhzQOVaEt0A0quZFNW-FPfIe0-h3eyIpXFxuo8Jp3iml29OZ5x_Q1yvptTWuwlrXVd-4tbN9berZ2rW2pukd9e1iVfWsquePnQVYIO8EK19hjQn2nM-izLPCSeG0cd4PV87xpHDy_vPPeDqn-J3mrHBikYNE4aSxbbUu4T1DDP4Gdl1pzgJfvr4qfAUbll_7ebdhIwFHu_3kmAAuOwU4hBa4cN7BszvChcMCCnuJcE58son9DWKAN5suHB60l29vd7A7Mkg8EfzP4bjC7JlCFsgxKhzKYhnNMpjBFjTqzgxGd01XFftoB1wIne006mahoauMq2rsXN82S2PagkessKlQazR1q6uyJ22omtt5MXpoh17VFZ0s-_JupIxpKx4uRo1tj3XhrSMvj3aIgS7wuCrEe8o0PjS6YxNVV54ly19M5uxpnPgKvz0k2lhyspljeFQ6HT7z2RP89_4BHCTbMJPAXQwIh80TnFOcSaQsjuTHf6p6f-ZzxJ8BAAD__9NP1DM">