fix(il2cpp): report the exceeded native-link maximum in the public refusal (#10741)

* fix(il2cpp): report the exceeded native-link maximum in the public refusal

* fix(il2cpp): report each native-link budget's maximum in the unit its producer counts

* refactor(elf): report pointer relocation failures through ParseFailure (#10748)
This commit is contained in:
morluto authored and GitHub committed 2026-11-15 13:44:54 +08:00
1 parent ad6e27e256
commit a090fa7098
13 files changed
+124 -29

No files matched your search

+4
View File
@@ -113,6 +113,7 @@ function* nameAddresses(
"native-index-capacity",
`module-name trie exceeds its ${TOTAL_NAME_OCCURRENCES}-node workspace`,
TOTAL_NAME_OCCURRENCES,
"entries",
);
let node = root;
const bytes = Buffer.from(name, "utf8");
@@ -125,6 +126,7 @@ function* nameAddresses(
"native-index-capacity",
`module-name trie exceeds its ${TOTAL_NAME_OCCURRENCES}-node workspace`,
TOTAL_NAME_OCCURRENCES,
"entries",
);
next = { next: new Map(), owners: [] };
node.next.set(bytes[at]!, next);
@@ -165,6 +167,7 @@ function* nameAddresses(
"native-index-capacity",
`native name-address index exceeds ${TOTAL_NAME_OCCURRENCES} entries`,
TOTAL_NAME_OCCURRENCES,
"entries",
);
found.set(address, node.owners);
}
@@ -535,6 +538,7 @@ function* findModuleArrayByCode(
"native-index-capacity",
`module-array index exceeds ${MODULE_ARRAY_CANDIDATES} entries`,
MODULE_ARRAY_CANDIDATES,
"entries",
);
}
}