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

    <tr>
        <th>Summary</th>
        <td>
            [16.0-rc2] lld fails to link mesa
        </td>
    </tr>

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

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

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

<pre>
    Linking mesa 23.0.0-rc5 with lld 16.0-rc2 results in

`ld.lld: error: version script assignment of 'global' to symbol 'HMI' failed: symbol not defined`

(building it with clang 16.0-rc2 using `-fuse-ld=gold` succeeds, as does using lld 15.0.7).
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxUkd2O2yAQhZ8G36BYeBz_XfgibRS1UvsQ_IwdumOIGLzbffsKb6rV3gCagcM352hmvwbEWXTfRHet9J7vMc0GUyQf9r-Vie59_uXDiw-r3JC1hLZWtTol28k3n--SyMmmPyogE_JOmaUPQl2FujzXXpGriZxoLxJTiqkcXjGxj0GyTf6R5QfKhiHLuEgBw0rRaBIwyBwlv28mUin_-P2z1BbtCQ_BZyvELB0uPqATvfryPYxm9-TKCD5_UFvSYf3k3rk0Ra9Oy854KqTXNVJRkrxbi-hYwHepWbqI_Lx_jN7Vqh4ETHXl5tZN7aQrnJt-6Ed1Hpupus-wmOWMox5xMI0yk7LYT9Y0DrRtW2cqP4OCVkEzNY3qu6leOqOcgcFZpU1vz-KscNOeaqLXrY5prTzzjnOvxm6qSBskPiIECPgmj6YAKImmubw5mX1lcVbkOfOnSvaZjuz_GyG66zFVcZeL7-TDy5F7tSea7zk_WLQXATcBt9Xn-25qGzcBt6L53E6PFP-gzQJuBwkLuB2k_wIAAP__4k_DhQ">