<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/108599>108599</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
wasm-ld should split up relocation function when function body size exceeds limit
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
TerrorJack
</td>
</tr>
</table>
<pre>
This issue is a feature request for `wasm-ld` to support splitting up linker-generated relocation functions like `__wasm_apply_data_relocs` in case it's linking a huge output `.so` with many relocation entries, in which case the function body may become too large and exceed the function body [size limit](https://source.chromium.org/chromium/chromium/src/+/main:v8/src/wasm/wasm-limits.h;l=50?q=kV8MaxWasmFunctionSize&sq=) enforced by major wasm engines.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxsUsFu4zgM_Rr5QsSw5cSODz40G_iwwJ622D0GssTYamTJFaWm6dcP5GQ600FPpC3yPZLvCSI9WsSO7Q5sd8xEDJPz3TN67_zfQl6ywalb9zxpAk0UETSBgDOKED2Cx9eIFODsPLC6uAqaN0axuoDggOKyOB-AFqND0HaEuIDR9oJ-M6JFLwIq8GicFEE7C-doZUoIjL5gAjydEuRJLIu5nZQI4rSWU2LQFqQgBB0Yb2gFThwCpjgiuBiWGBJGTi6VX3WYYBb29jsj2uA1EuN_JbjrpOV0Bw0Tfo4D6QQwixsMKN2MEJwDI_yIIKwCfJeI6psOtjuQ_kAwetaB7Y6M76cQFmLVE-M94z256CXmcvJu1nHOnR8Z739-fk3Jy7XpwHg_C21Z9fS2__yfrvQIm5WO8olVB8Oq465gVf_KquPlv_0_4v1_QXP_GPNf_YGM15ReGW8B7dl5iQqGtO6L85AAAe2oLVKeqa5SbdWKDLuy4TXfbnm9zaZOnlUj1J6XshzqskbVFlIObVvXatcUbZHpjhd8W7RlVdZls63yc1Mo1TT7RvFmXw4t2xY4C21yY97WO2Sr2bqy2O_aNjNiQEOrRzm3eL1bkXGeLOu71LQZ4khsWxhNgX7BBB0Mdg9fAk0uppAMmcz4jffgOqH9Q8hVxbvMdFczi950X8UcdZjikEuXhEj8j7BZvHtBGRjv16mJ8f6x1lvHfwQAAP__uIMwWg">