[lld] [WASM] wasm-ld: split up __wasm_apply_data_relocs (PR #129007)

via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 27 23:12:11 PST 2025


================
@@ -385,6 +384,14 @@ bool InputChunk::generateRelocationCode(raw_ostream &os) const {
     if (!requiresRuntimeReloc)
       continue;
 
+    if (funcs.empty() || funcs.back().size() >= 7654300) {
----------------
dmjio wrote:

Good idea, it does list `7,654,321` for max function body

> The maximum size of a function body, including locals declarations, is 7,654,321 bytes.

https://github.com/llvm/llvm-project/pull/129007


More information about the llvm-commits mailing list