<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/117834>117834</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
*-ld.lld linker not recognized as "lld"
</td>
</tr>
<tr>
<th>Labels</th>
<td>
backend:Hexagon,
clang:driver
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
androm3da
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
androm3da
</td>
</tr>
</table>
<pre>
clang provides `hexagon-link` specific link arguments such as `-mcpu=hexagonv65` and `-march=hexagon` when `hexagon-unknown-linux-musl-ld.lld` is found. lld rejects this with the following error:
hexagon-unknown-linux-musl-ld.lld: error: unknown emulation: cpu=hexagonv65
clang should instead handle this as it does for the case when `ld.lld` is found in the `PATH` when `hexagon-unknown-linux-musl-clang -fuse-ld=lld ... ` is invoked.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyMUsuOmzwUfhqzOQIZc0myYJH_H0Wz7KIvcLAP4MbYkS_JtE9fmaBMpVm0EhLSuX0XfxiCni3RwLr_mBBolXdro5AJwbq3AlNcnB9e5WJ06ucgDdoZbt7dtaIArOcLfeDsbGm0vbKeQ7iR1JOWkAuAfk4r2RggJLkAbivlKm-JNW_76r3v8iJa9Wyil8tnN7ceC9k_sZK9WvfYMNNHuaZgSqMqY1Qe1gEml6yqAIxR4OkHyRggLjrAQ8cF4kIwOWPcQ9sZyHvnWXNmPH_wd4jm_NqBfQpoTQajdjYXv4jbLj-dC4tLRoG2IRIqWNAqQ09uGEBHUI4yf7-xlBjoJf6rQtB2G2M9_3b-_v6PTj2JlFMKVGY5b9mlqqpgP63t3V1JVYUaGnVqTljQUB8a0R-6tj0Wy4AoFeJxOmHPx4a3KOue1x1Nx56rkzwUehBctHUtDly0LT9Wp06qXk7HkbfUd_LAWk4ralMZc18r5-dCh5BoqOvDsWkLgyOZsOdyRHklm21_3wMhBBP_MyE2Iaw5K6_v5PfY-iHfLMc0B9Zyo0MMnyhRR0MDE-f9LbeMkgfrIniSbrb6F6ktpUJks4UokjfDEuMt5IyICxOXWccljZV0KxOXfHv_lTfvctaYuGxyAhOXXdF9EL8DAAD__1YXIZQ">