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

    <tr>
        <th>Summary</th>
        <td>
            ld64.lld: eh frame crash for watchOS arm64_32
        </td>
    </tr>

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

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

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

<pre>
    This might just be a tracking issue for this FIXME: https://github.com/llvm/llvm-project/blob/11e5275cc266ab5ff07e3685935cebf6e09372f7/lld/MachO/Arch/ARM64_32.cpp#L102

But I found that this line crashed:

https://github.com/llvm/llvm-project/blob/11e5275cc266ab5ff07e3685935cebf6e09372f7/lld/MachO/EhFrame.cpp#L118-L119

When linking [realm-swift](https://github.com/realm/realm-swift/) for watchOS arm64_32. Here's a reproducer: https://drive.google.com/file/d/1xzGsPZHKCs7s_Vj_7thccboMG-7vVrGb/view?usp=sharing (I didn't try to reduce)

If this is expected for now maybe we should just ignore eh frames for this arch for now? To unblock locally I just deleted https://github.com/llvm/llvm-project/blob/11e5275cc266ab5ff07e3685935cebf6e09372f7/lld/MachO/InputFiles.cpp#L1136-L1137
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy9lF1v2yAUhn-NfYMSOdjY8YUv2rVpoy3atFXdtJsKw8HQEhMBTpb9-h07zVpp06TdVEIcEF_POe8rWiePzZ02gWxNpyN5HEIkLRBOoufiyfQdMSEMQJTzJI77Vutvm-skvyA6xl3AQUJX2DoT9dDOhdvixNr9Ocx23j2CiDhtrWsxLBbAaMWEoGXJW6ZUVkFeLlmdMwGtKiGr84qqarpAYr_hQn_EeOGFHsPnTVk85HQudruE5h8WGU2yqyS7OPWXQyRrxB16icA8nqit6YEIz4MGOTK_OvDmeVzrledb-M2_WM6wq18zfdXQj8yTAAm79MDtdhYORsWEXSV0-Q_oae85Pp8Zd9WThgcekeIL4X57qiK5BQ8JrQJq7gGzlIMA_6fA0ps9zDvnOgvPLyljYVwZi_Hj50349P32_btQhYf7x4cqaiFat7mZVft7fzMWbG_gkOSrIeyS_Cpo7qfk6HJNpJE9IqBW_kiiQ44RApFf12StTlJigx87lALklFHvDmTLj2jaA5Cg3WDlycam650HApqosd7hxcMcnXQ-i0TkzpGhR1nFE8GOW3tEC013SLAwPvTmJln3uyGusMDhxSd5ORolr1JoFiWrS1ayrExlk8s6r3kaTbTQWFkW8_EuVPCc-sn5f9U_Hbxt_ju76U8IOGBlXdBUN0WtliUreEvralG3hZCgMC-VMcWWKpOp5S3Y0KCXE0p7OJy-FRyjn1PT0IzSbJkVNC8WBZvXgha1lLzOirZVeZEUGWy5sfORY-58l_pmQmqHLuCiNSGGl0UeAooPMD2H9_MhauebJ8DM0unhZgL_BSBNkuY">