<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/58296>58296</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
lld: Linking fails if output path contains a `%`
</td>
</tr>
<tr>
<th>Labels</th>
<td>
lld
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
sbc100
</td>
</tr>
</table>
<pre>
```
$ mkdir foo%
$ clang -fuse-ld=lld test.c -o foo%/a.out
ld.lld: error: cannot open output file foo%/a.out: No such file or directory
```
With GNU ld there is no error.
See: https://github.com/WebAssembly/wasi-sdk/issues/256
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx9kE1v2zAMhn-NfSFsyIrlxgcdMgTbZehlGHrWB22rUSxDlDfk3092ErToYQAhkeJL8SF1sDdZdOxh7FywU8FbuF6siwBDCAUXH8_Gq3mEalgJK2-Lw9l7Cwkp1Qaq8JTz76oOa7qXeVv7TXoCjDHEzTFqnkOCsOAMWbesCQbn8Wt5Vr4GoNVM93SIkKHQpBBvD6Qv4Pv55tIEP15_w4Y2YURwBHO4t68_K38hbk2mlBbKTm6cbczlq65NuObgDfWJCK_a33L0V5GryF6y64hWpOxw0ZUom64Tgh2b9qW08mD7Q6_K5JJH-Zj9p5svLq9uUM4TuOE596IyrAlzUm4mULDNklfQsXKNXv6HzPs_z6taYnjPa_mMJY6878pJ4qCZ7fqWt8cW27bnnRF9g40ajmJALUqvNHqShfhWcL7Bcl6Ic-kkZ5w3rGmaF9azrtZoW8sN52gPGs2xaBle8zD1RlCHOJZR7jB6HSknvaNEH0lF5MYZcW-U_1drmkKUpE3DWLljy535H7a4yWQ">