<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/135323>135323</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[RISCV] The asm parser does not error on incorrectly spelt @plt on call symbols
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
svs-quic
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
svs-quic
</td>
</tr>
</table>
<pre>
The asm parser currently parsers something like `call symbol@rlt` without any error and produces an empty object file. It would be better if we error out in such scenarios.
```
cat plt.s
tail foo@rlt
bin/llvm-mc --filetype=obj plt.s -triple riscv32 -o plt.o
bin/llvm-objdump -d plt.o
plt.o: file format elf32-littleriscv
```
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJxkkkGPozwMhn9NuFigNIFOOXDo940qzXV3tfckmJLZkLCxadV_v4Kh2tGs5ENkO29ex48h8teI2InmP6EU3aj8vXgnlBLNa2EWHlPuntnCpv7R_RgRDE0wm0yYwS05Y-Tw2BMElCbk0ccrBP8LQRylMyEAPSabgqhlDiyOEu6ex7QwmPgAzDllMLGHOad-cUhgIuA08wOSfUfHMPiAFcAbwz0toQeLYJEZM_gB7rhLrII-Ai1uBHIYTfaJKiHPaxzlHvLsDMMcuCIhz2x8gCGl3drWa30U6hLCbSonB2W5vs6PGYV-Tfb94ypAydnPASF7cjetoExbJf2jkex7v0wzlP3nho-jPgvZrvowpDwZBgyDVmXwzAE35S_2i77TfatbU2B3eKlr3bzItinG7mQVuv5k5LE2g2kPR1Wf0Op-sO2gXGsK3ympGlkfDvJFnw5NhbXG9tQrPRylUU6JWuJkfKhW11XK18ITLdgddKOVLoKxGGhnJeIdtuoOS-62Ue1yJVHL4Inprwx7Dhtk396-__9TNK_wBaM-IUFM_NxjBB9dyhndihbNGBhELefAa-0TUFQsOXQj80zrV6qLUJer53GxlUvTvoDnHuacVpiEumzOSajLPtqtU38CAAD__wsz_uA">