<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/57998>57998</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[clang][debug info][riscv] non-constant .uleb128 is not supported
</td>
</tr>
<tr>
<th>Labels</th>
<td>
backend:RISC-V,
debuginfo
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
nickdesaulniers
</td>
</tr>
</table>
<pre>
Looks like GAS doesn't support `.{u|s}leb128` directives with non-immediate values.
https://sourceware.org/bugzilla/show_bug.cgi?id=27215
https://github.com/ClangBuiltLinux/linux/issues/1719
so DWARF v5 debug info generated by clang breaks using GNU as (such as when using `-fno-integrated-assembler`).
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx9UsFu2zAM_Rr5IsSw5cqKDz6kCVoMKHZose04yBZja1GkQJSSdV8_2t3WHYYBBkS-Bzw-PnoI5rV_CuGE3NkT8MfdCzcB0DOhEsd8uYSYOGurkqn7zNQemTo4GGqxJZAbG2FM9grIbzbN3Ae_seczGKsT8Kt2GbBk1YFVuzmlC7Jmx8QDfRhyHOGmI5QhTgQMefphndMLN4fbV-rLcbKsebCGNQehRC3_JTTR2DyUYzhTs3faT_fZuvRkff5OiPv1WkSyQkWt6u5NBwM_fNk9P_Cr5AZoHrf-GPgEHiK5N3x45eMiyIcImgLKaKl5_PiJa-RMbDGP81LeZvC_SMpkc_RhY32CaVXZaEQ4Dw4icUx0ZQF93bZ3QkjVVYXpG9M1nS6STQ56Ju_XkUweqHx39dZHi-OVyjXmMXhM2ide5rd7cItE_DkamCJH1_8nLeeuv5_NJYZvdMm_kyJ_3baYe91VlahbaZRqtlBD28j6WBvRSQA5jLJwegCHi3cmxKDHE3g62e75w8t-85kgJvYUl1i3WZchSB4K24tKiKoTrahk21Sl2h4rNRxlK9Wg2hrYXQVnbV25OFx-kyL2q1nSQSKdxYTvJAVtJw9riIu-zmkOsfd2PBlAnZ23ELFY9-vX5X4CHs_1gw">