<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/100734>100734</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[WebAssembly] Section symbols don't support non-custom sections
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
SingleAccretion
</td>
</tr>
</table>
<pre>
This is kind of hard to construct a reproduction for without a custom object writer, but it is fairly self-evident from the code:
https://github.com/llvm/llvm-project/blob/67ad23fe17a516b4b66d8137f77ab0ba3b6fc95b/lld/wasm/InputFiles.cpp#L675-L681
In my case, I wanted to obtain the offset of the `Code` section via `R_WASM_SECTION_OFFSET_I32`, to compute final (file) offsets of functions with `R_WASM_FUNCTION_OFFSET_I32`.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUkktr6zgUxz-NvDkkyPIrWXiRaWsIdFqYdOgy6BlrRpaMjpyQb3-Rm8vt4m7uxsYS_p3zf3BEe_Fa96T5izTPBV_SGGJ_sv7i9EHKqJMNvhBB3fuP0SJYhP-tVxAMjDwqSAFk8JjiIhNwiHqOQS0y_wUmRLjZNIYlX8kFU5ggiP-0THCLNulI2BOIJYFNGWy4je4OqJ3Z6KtV2icwMUyQRg0yKE2qA6HPhD6eY0oz5jM2EDZcbBoXsZVhImxw7vrztZljyCMJG4QLgrCh7bhildFlx5uyFbVoW7Urq850HRdU8Eq0Ru4bsQIUYcONY6Yd_bykwTqNWznPhFWvbddsXttd-X2ro4fpDpKjzuqOcOM-6dWoIBK3flUTjEGdsov5i7T0KctrKaD-8u5qeT7-5_x5OP19Pr08fRzf387vw3B6-TgfK0ZamvGr_dO8JA3Geu6AsJ2xThO2f8zAPMQsfsXimsc38PDv22_I2y8lheorta_2vNB92bFyv-9otSvGvqybXV035U6aplRU1KXRrTEtlaZiSqjC9oyymnasLVlFq2ZbUiW7Ru46QTlltCY11RO3bpsT2oZ4KSziovuS0q6qC8eFdriWkjGvb7DeEsZyR2O_xiqWC5KaOosJf2GSTW5t86cWB0Q9CXcnzTOcHr7ifRLBIajgCesS4DLPISbwwW8eDX1EgMUSXf_HHVs3RcKGh5Rrz34EAAD__1eZF6U">