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

    <tr>
        <th>Summary</th>
        <td>
            ld64.lld: error: finalize: FIXME: thunk range overrun
        </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>
    When building some recent revisions of the Firefox source code on arm64 mac using lld, we're getting this `thunk range overrun` message. I've [recently increased the slop](https://reviews.llvm.org/D138174) after it happened a few times, but this reoccurred after a while even with the new value.

A (unfortunately large) reproducer can be found at https://drive.google.com/file/d/1VXF0FzHEg5baosH8uYs9jPZ2B8ggPekb/view?usp=sharing. The `command` file in there contains the `clang` invocation that reproduces the problem, assuming `SDKROOT` is set to the location of the SDK (in case it matters, we're using the 11.3 SDK).

Cc: @llvm/issue-subscribers-lld-macho 
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxtU8tu2zAQ_BrpsoighyVbBx2SOEaCokjQFm3aG0WuJCYUafBhN_n6LmWnaYACelDU7nA4M-yNeOl-TKihD1IJqUdwZkawyFF7eh2kk0Y7MAP4CWEnLQ7mNxUFyxG4EQhGA7Nzs4KZcQguYiglkvIajpiUa4swovdx2k_SQdLkfgr6GSzTI3Uf0NqgaRZmdI6NmMEdtR0QkvrqxEO9gNTcInMoFhpOmX1Sb5NyM3m_d0l1mZQ7uiJfPLpMqcOcGTvS1LaoNsV6lZQtsMGjBelhYvs9asJiMOARvKSVI98--BNHi4bzYG0sWZoYHCepEPBAUh2lnxYampoPTAXMknyb5Jen5yUQr6AHY33QzCOxV8yOGClY3FsjAidIzkh0hMEETasQqQ87EVYeMBuNGRVm3Mw0NRCB-Ifu4vvjLt-93t6Mdc-Mu92En659evhVXm3G8QGfe6qJSiTVLrh9Um3dxCw5kME3ok1aE-LMtIiqR1iSN27IRke1Z5IM9-dCRS7FMqkPhjNPYaBfzL_v5FRKH73COarInAtztJvavm4_fbm__7YAOHBI-pqlXr2BnYNFhVE24sHJ5WjSzDwp7_7N0Slcsbwosir2kKYftL_mpCAkqzwmgESQxAUvXOgdt7InuAuK5gUFdTKQYlc0Tbve1E2Vp6KrRFu1LPXSK-yUaFZZjDHBUUCNjYNBaqbkK8bx7u7x800c_CfMabCq--jnSJkJ_dnJM7n4uiDhnpD7N660313dlnWbTl0rBBt4USCrm5rY5RtW8xargq167MWQKtajch2dk6QsYxgXCBrT2UhlV-ZlWRRVntdlXuVZ2ax531dlLioCWq9JJZyZVH9PS2q7hVIfRhcllM6_H6WUbJWjRlyWI3wW_GRsN1JAhAxzuqzdLdz_AELMbhg">