Repository navigation
feat(relinker): analyze function symbols as code roots - #15032
oneandonlydean merged 8 commits into
Conversation
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — no blocking findings
I reviewed all 28 changed files at head 11a32e87545102a39063593df201ce0e0506f8b3; source inspection found no blocker, and the hosted checks were still queued at the final refresh.
What I ran
Reviewed head 11a32e87545102a39063593df201ce0e0506f8b3 against base 3c3b3cda739f9eb00a07fae50d94a3af5f6fb8f2. The exact head previews cleanly against current main. Environment: Debian 12 Linux, Python 3.11.2, GCC 12.2.0. I did not configure or build.
python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 15032 --output-dir /tmp/review-15032
git diff --check 3c3b3cda739f9eb00a07fae50d94a3af5f6fb8f2...11a32e87545102a39063593df201ce0e0506f8b3
python3 tools/check_conventions.py --base 3c3b3cda739f9eb00a07fae50d94a3af5f6fb8f2 --head 11a32e87545102a39063593df201ce0e0506f8b3 --title 'feat(relinker): analyze function symbols as code roots' --body /tmp/review-15032/pr-body.md
python3 -m py_compile core/relinker/relinker/tests/test_function_symbol_roots.py
python3 tools/check_test_registration.py --scripts
python3 tools/pr_stack_check.py 15032 --repo boykopovar/AnyPS5 --output-dir /tmp/review-15032/stack
python3 tools/pr_test_quality.py --root /tmp/review-15032/test-quality --json core/relinker/relinker/tests/test_function_symbol_roots.py
gh pr checks 15032 --repo boykopovar/AnyPS5The checks selected from the exact head found no test-quality heuristic findings. The precheck wrapper could not find the optional local heuristic script in its isolated snapshot; I reran that heuristic against the exact-head test and CMake files.
Results
| Check | Result | Note |
|---|---|---|
| Patch whitespace | passed | No diagnostics. |
| Conventions and PR template | passed | No findings. |
| Python syntax | passed | New test script parses. |
| Test registration | passed | 243 repository test scripts are registered; new groups are registered in CMake. |
| Test-quality heuristic | passed | No heuristic findings; this is not runtime test evidence. |
| Merge preview | passed | Clean against current base. |
| Hosted checks | not run | Conventions, eligibility, intake and labels were queued. |
| Precheck wrapper heuristic step | failed | Helper missing from isolated snapshot; direct exact-head rerun produced no findings. |
Unedited outputs from the checks
Precheck wrapper:
/tmp/review-15032/report.md
/tmp/review-15032/report.json
Conclusion: checks failed
Precheck helper stderr:
/usr/bin/python3: can't open file '/tmp/review-15032/head-11a32e875451-535b92e1/tools/pr_test_quality.py': [Errno 2] No such file or directory
Conventions:
All conventions checks passed.
Test registration:
243 test script(s), each run by an add_test or a workflow
Exact-head test-quality heuristic:
{
"findings": [],
"negative_control_candidates": [],
"limits": [
"Heuristics can miss weak assertions and can flag valid tests; inspect every finding.",
"A test that passes against base is not by itself proof that the PR test is inadequate.",
"Negative controls are only candidates until the test actually runs against base and fails by assertion rather than import/setup error."
]
}
Merge preview:
# PR stack check — fresh
Target: https://github.com/boykopovar/AnyPS5/pull/15032
Target branch tip: `3c3b3cda739f9eb00a07fae50d94a3af5f6fb8f2`
All heads unchanged: **True**
Dependency order: #15032
## Individual merge previews
- PR #15032: **clean** against current base; head `11a32e87545102a39063593df201ce0e0506f8b3`; changed paths: none reported
## Dependency relationships
No declared PR dependencies were found in the target PR chain.
Hosted checks at final refresh:
conventions pending 0 https://github.com/boykopovar/AnyPS5/actions/runs/41434595138/job/125241185665
eligibility pending 0 https://github.com/boykopovar/AnyPS5/actions/runs/41434595499/job/125241184275
intake pending 0 https://github.com/boykopovar/AnyPS5/actions/runs/41434595250/job/125241186436
labels pending 0 https://github.com/boykopovar/AnyPS5/actions/runs/41434595081/job/125241184892
Negative control
| Assertion | Change to code under test | Did the new test fail? |
|---|---|---|
| Invalid function-symbol entries, ranges and reachable truncated instructions are rejected. | Not changed. | Not run; the test requires an exact-head relinker binary, which I did not build. |
Findings
Blocking
None found in the complete source review.
Non-blocking
None.
Sources
- Function-symbol entries become code roots only in the explicit mode
- The reader preserves symbol metadata while checking function roots as file-backed code
- New executable, module and rejection test groups are registered
Not verified
- I did not build or run CTest or the new relinker scenarios. The PR description reports broader Linux and Windows builds/tests; those results are author-reported and were not independently verified here.
- All four hosted checks were queued at the final refresh; cross-platform hosted results are not yet known.
- Native Windows/macOS execution, console behavior and real-game behavior were not verified in this review.
- The source-only review does not establish behavior for unresolved indirect jumps beyond the documented discovery limits.
To get this to a good state
No code change is requested from this review. Once the hosted checks finish, I will re-check this exact head and its results, then approve if the required checks pass; if the head changes, I will review the new diff and rerun the affected checks.
|
@MarcZX10 the head is unchanged at
Please perform the follow-up review you offered and approve if satisfied. @oneandonlydean, please merge this exact head when ready, or identify a concrete remaining condition. The reported conversion blocker is reproduced and fixed with the original public input; no real-game or console execution is claimed, and unresolved computed-jump discovery remains documented. My upstream permission is READ. |
|
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
|
|
@MarcZX10 @oneandonlydean main's instruction-collection and macOS entry-protection changes caused real conflicts, now resolved at The integrated Linux Release relinker-only build and all 570 tests pass; the original public sfiii-ps5 input was rechecked, with strict rejection and successful opt-in conversion unchanged. Conventions pass. The PR's Tested section distinguishes these current-source results from the prior head's successful hosted matrix; that old matrix is not claimed for this new head. Please review the merge resolution and new tests while the fresh hosted checks run, then merge or identify a concrete remaining issue. No other branches or PRs were changed. |
|
@MarcZX10 @oneandonlydean the fresh hosted matrix for current head Actual logs show Linux 570, Windows 574, macOS arm64 559, macOS x86_64 559 tests passed, without failures or skips; all three new root-mode groups passed in each lane. Windows includes the four native generated-PE executions. The separate ASan lane passed its 34 TLS tests, not the new root-mode groups. I updated Tested to describe this current input and the execution limits; no source/head was changed. The older cancelled conventions job has a successful replacement for this same head. Please review the small merge-resolution/test delta from your reviewed |
Merge upstream main 4f41f4c while keeping the sorted-vector collector API and both dependency and function-root options. Add a regression for their four combinations.
|
@MarcZX10 @oneandonlydean the new conflicts with main are resolved at The integrated Linux Release source passed 683/683 tests. After the final revision-stamp rebuild, the exact committed binary passed the three root-mode groups and CLI version checks again; the original public sfiii input still rejects address 22792 strictly and converts successfully with root mode. A new regression checks all four combinations of root mode and dependency omission, including the dependencies of both executable and companion. Conventions and whitespace checks pass. Tested now separates this source from the prior head's successful hosted matrix; new-head Windows/macOS results are not claimed. Please review the merge-resolution and combination-test delta, then merge if satisfied or identify a concrete remaining issue. My upstream permission is still READ. |
MarcZX10
left a comment
There was a problem hiding this comment.
Re-checked — new head, no blocking findings
I reviewed the full new head after its preserving merge from main; the source and test changes have no blocking findings, but the new-head relinker checks are still queued, so this is not an approval.
What I ran
Reviewed all 28 changed files at head ad9c12659454d099fc989663202e5777cef0ef1a against base 4f41f4c375f5abb487dbd184fbc150f31994d762. The exact-head stack preview is clean. Environment: Debian 12, Linux x86_64, Python 3.11.2, Git 2.39.5, GCC 12.2.0 available; I did not compile with GCC.
git diff --check 4f41f4c375f5abb487dbd184fbc150f31994d762...ad9c12659454d099fc989663202e5777cef0ef1a
python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 15032 --output-dir /tmp/anyps5-pr-precheck/15032-20261103T-current
python3 tools/pr_test_quality.py --root /tmp/anyps5-pr-precheck/15032-20261103T-current/head-ad9c12659454-e78a5749 --json core/relinker/relinker/tests/test_function_symbol_roots.py
gh pr checks 15032 --repo boykopovar/AnyPS5Results
| Check | Result | Note |
|---|---|---|
| Diff and conventions | passed | Whitespace and repository checks passed. |
| Python syntax and test registration | passed | Syntax is valid; all test scripts are registered. |
| Test-quality heuristic | passed | No heuristic findings; this is not a test execution. |
| Current-base merge preview | passed | The exact head merges cleanly with the current base. |
| Required new-head CI | not run | Relinker matrix, conventions and labels are queued. |
| Local build, CTest and negative control | not run | I did not compile or execute the relinker. |
| Author-reported Linux tests | passed | The author reports 683/683 exact-head tests; I did not reproduce them. |
Commands and unedited output
Precheck summary:
diff_check: passed
conventions_and_pr_template: passed
changed_export_abi_audit: not_applicable — No changed source or public header under core/libs/prx.
python_syntax: passed
python_test_registration: passed
live_dependency_and_mergeability_check: passed
build_dependent_cpp_tests: not_applicable — no build was run
test_quality_heuristics: failed — tools/pr_test_quality.py is absent from the isolated PR snapshot
negative_controls: not_applicable — no changed Python test module in tools/ can be run as a no-build base-source control
The test-quality helper was then run from the workspace against the exact-head snapshot:
{
"findings": [],
"negative_control_candidates": [],
"limits": [
"Heuristics can miss weak assertions and can flag valid tests; inspect every finding.",
"A test that passes against base is not by itself proof that the PR test is inadequate.",
"Negative controls are only candidates until the test actually runs against base and fails by assertion rather than import/setup error."
]
}Hosted status at the final refresh:
conventions pending
labels pending
relinker (macos-latest, clang++) pending
relinker (macos-latest, clang++, x86_64) pending
relinker (ubuntu-latest, g++) pending
relinker (windows-latest, g++) pending
relinker-asan pending
linux skipping
register-context skipping
write-watch skipping
eligibility pass
edge-watch skipping
windows skipping
Negative control
I did not run a local control because the test requires an exact-head relinker binary. The author reports that strict mode rejects address 22792 while root mode converts the executable and companion; I did not independently reproduce those runs.
Findings
Blocking
None found in the 28 changed files.
Non-blocking
The new-head relinker matrix, conventions check and label check are still pending. The reported 683-test Linux run is author-provided evidence, not a run I performed.
Sources
- Function-symbol root validation at the reviewed head
- Exact-head regression tests
- Author's merge-resolution and test report
Not verified
I did not run a build, relinker tests, the test's negative control, Windows/macOS execution, or PS5 behavior. Hosted relinker jobs remain pending.
To get this to a good state
Please let the queued checks complete and address any failures. I will re-check this head and its results when those checks finish or if the head changes.
Keep every conversion and rejection case while dividing the matrix into four independently timed CTests. Preserve the default full-matrix invocation, native-load checks and existing timeout limits.
|
@MarcZX10 @oneandonlydean I checked the actual failure in the requested new-head CI. The macOS x86_64 job built successfully and passed 671/672 tests, including all three root-mode groups. Its only failure was Head The exact committed binary passed 686/686 Linux Release CTests, the original ungrouped invocation and conventions/whitespace checks. Tested records the observed timeout and scopes the earlier sfiii check to |
XairRrR
left a comment
There was a problem hiding this comment.
Reviewed — approved
The opt-in --function-symbol-roots mode builds, its new tests pass and fail where they should, and the default strict conversion path is unchanged; I found nothing blocking.
What I ran
Head fd2d90bf77fa5b1bd0019b39c9af72a59a661aab, main 4f41f4c375f5abb487dbd184fbc150f31994d762, merged tree 252127109c2b7452e83afaa79a422568c9b9ab95 (merged with --no-ff). Debian 13 VM, GCC 14.2.0, Release, Ninja, BUILD_TESTING=ON.
git diff --check 4f41f4c375f5abb487dbd184fbc150f31994d762...fd2d90bf77fa5b1bd0019b39c9af72a59a661aab
python3 tools/check_conventions.py --base 4f41f4c375f5abb487dbd184fbc150f31994d762
ctest --test-dir build -j8 --test-load 32 --output-on-failure -R "^(function_symbol_roots_|guest_none_relocations_|gs_trap_entry_roots|windows_tls_protected_entries|tls_function_coverage_)"
ctest --test-dir build -V -R "^(function_symbol_roots_executable|guest_none_relocations_windows)$"
python3 core/relinker/relinker/tests/test_guest_none_relocations.py build/core/relinker/relinker
# negative control (see below)
git show 4f41f4c375f5…:<each changed .cpp/.hpp> > <path>; ninja -C build core/relinker/relinker
python3 core/relinker/relinker/tests/test_function_symbol_roots.py build/core/relinker/relinker {executable,module,rejected}
python3 core/relinker/relinker/tests/test_function_symbol_roots.py build/core/relinker/relinker {executable,module} baseline
# targeted mutation: pass `false` instead of functionSymbolRoots to ExtendControlFlowGraph
python3 core/relinker/relinker/tests/test_function_symbol_roots.py build/core/relinker/relinker rejected
# restore merged files, rebuild, rerun
ctest --test-dir build -j8 --test-load 32 -R "^function_symbol_roots_"
git status --porcelainResults
| Check | Result |
|---|---|
git diff --check |
passed, no output |
check_conventions.py |
passed ("All conventions checks passed.") |
| Configure / build / libs (script) | passed |
| Script test run (826 selected) | 823 passed, 2 expected skips, 1 known failure (unwrap_self_UnwrapTest_test_new_output_inherits_the_destination_directory_group, which fails on main too); no new failures or timeouts |
function_symbol_roots_{executable,module,rejected} |
passed (0.19–0.26 s each) |
guest_none_relocations_{linux,windows,macos,rejected} |
passed (0.26–0.51 s each) |
Ungrouped test_guest_none_relocations.py (default all) |
passed |
gs_trap_entry_roots, windows_tls_protected_entries, all 34 tls_function_coverage_* |
passed |
| Vulkan validation comparison | not applicable: no AGC, shader or VideoOut files changed |
Focused ctest summary
100% tests passed, 0 tests failed out of 43
Total Test time (real) = 16.52 sec
Negative control
I restored all 24 changed production .cpp/.hpp files from main and rebuilt relinker:
- All three groups (
executable,module,rejected) failed. For example:AssertionError: (... 'overrun-linux-roots/output', 1, '', 'FAIL: unknown option: --function-symbol-roots\n'). Onmain, therejectedgroup fails only because the option is unknown. - The
baselinemode, which runs only the strict-path assertions, passed onmainforexecutableandmodule. So the fixtures reproduce the strict rejection that the new mode is meant to avoid.
On the merged tree, I also changed only the strictFallThrough argument in CodeInstructionCollector.cpp:542 to false and rebuilt. function_symbol_roots_rejected then failed with AssertionError: ('zero-tail', 'windows', 0, ''), so the new fall-through-through-zero-bytes behaviour is covered.
After restoring the merged files and rebuilding, the three groups pass again, and git status --porcelain is empty.
Findings
Blocking
None.
Non-blocking
- Strict fall-through also applies after calls, which can reject valid modules in this mode. See
core/relinker/relinker/src/analysis/CodeInstructionCollector.cpp:566-571andcore/relinker/relinker/src/analysis/UnusedNidFilter/ControlFlowGraph.cpp:171-174. In root mode, the analysis follows fall-through afterCallandIndirectCall, and it no longer trims trailing zero bytes. If a call to a noreturn function is followed by zero padding or non-code, conversion stops withInstruction truncatedorfall-through is not executable. This fails closed and only affects the opt-in flag. However, the debt entry (docs/dev/debt/relinker.md:5) lists only unresolved computed jumps as the limit. Suggestion: add one clause to the debt entry saying that noreturn calls are assumed to fall through in this mode. - The test split is a separate topic.
core/relinker/CMakeLists.txt:649-653splitsguest_none_relocationsinto four CTests to fix a macOS x86_64 timeout. That test script and its limit are identical onmain. The split itself looks correct: the ungrouped invocation still passes locally, and every group finishes in under 1 s here. Still, it is unrelated to function-symbol roots, and CONTRIBUTING asks for one topic per pull request. It is small and test-only, so I am not asking for it to be removed.
Not verified
- Native Windows and macOS execution. On Linux, the Windows outputs ran through
windows_image_runner.pyinside the test; the macOS outputs were only checked structurally. - The sfiii-ps5 input from #14893: I did not have it, and no title was run.
- CI timing on macOS x86_64 for the split
guest_none_relocations_*tests. - The author-reported 686/686 Linux and hosted CI counts.
✅ AMD GPU test: passedPR head
Unstable on main (2, these also failed in recent main runs on this machine; not counted against this PR)Failing on main too (3, not counted against this PR)Validation IDs already present on main (4 IDs in 446 tests)Skipped (6)ReproduceAutomated build and test on a contributor's AMD machine; it does not replace upstream CI. A new comment is posted for each new push. Full logs. |
|
@XairRrR the noreturn-call limitation you identified is now recorded in @MarcZX10 @oneandonlydean the requested fresh platform run completed successfully for I waited for that run to finish before publishing the one-entry documentation follow-up. Tested explicitly attributes these results to |
|
@MarcZX10 @oneandonlydean the fresh platform run for the actual current head has now completed successfully: Actual logs confirm Linux 686, Windows 690, macOS ARM64 675 and macOS x86_64 675 tests passed, with no failures or skips. All three root-mode groups and all four relocation shards ran in each lane. The previously affected x86_64 shards now pass in 3.75/5.37/5.61/3.64 seconds under their unchanged 20-second limits. ASan separately passed its 34 TLS tests only. These are new The noreturn debt clarification is included, the reviewer found no blocking code issue, and the complete template/current-source verification is updated. Please complete the actual merge, or identify a concrete remaining condition. My upstream permission is still READ. |
XairRrR
left a comment
There was a problem hiding this comment.
Re-checked — approved
The only change since my last review (fd2d90bf77fa) is commit 59e8f2e00e47, which rewrites one debt entry to record the noreturn-call limitation I raised. Production and test sources are unchanged, and the checks and focused tests still pass.
What changed since my last review
59e8f2e00e47docs(relinker): record noreturn call analysis limitchanges one line indocs/dev/debt/relinker.md, and nothing else (git diff --stat fd2d90bf77fa..59e8f2e00e47: 1 file, +1 −1).- The author's comments report hosted CI runs for
fd2d90bf77faand for59e8f2e00e47, both merged withmain4f41f4c375f5: Linux 686, Windows 690, macOS ARM64 675 and macOS x86_64 675 tests passed. I treat these numbers as author-reported. The Tested section was updated to match.
What I ran
Head 59e8f2e00e477f1a3dd4e656de0408498887d3c5, main 4f41f4c375f5abb487dbd184fbc150f31994d762, merged tree db1bb0df9064f93453080ac51669841c31cfd5fa. Debian 13 VM, GCC 14.2.0, Release, Ninja, BUILD_TESTING=ON.
git show 59e8f2e00e477f1a3dd4e656de0408498887d3c5 --stat -p
git diff --stat fd2d90bf77fa5b1bd0019b39c9af72a59a661aab 59e8f2e00e477f1a3dd4e656de0408498887d3c5
git diff --check 4f41f4c375f5abb487dbd184fbc150f31994d762...59e8f2e00e477f1a3dd4e656de0408498887d3c5
python3 tools/check_conventions.py --base 4f41f4c375f5abb487dbd184fbc150f31994d762
ctest --test-dir build -j8 --test-load 32 --output-on-failure -R "^(function_symbol_roots_|guest_none_relocations_)"
git status --porcelain| Check | Result |
|---|---|
git diff --check |
passed, no output |
check_conventions.py |
passed ("All conventions checks passed.") |
| Configure, build and libs (script) | passed |
| Script test run (826 selected tests) | 823 passed, 2 expected skips, 1 known failure (unwrap_self_UnwrapTest_test_new_output_inherits_the_destination_directory_group, which also fails on main); no new failures or timeouts |
function_symbol_roots_* (3) and guest_none_relocations_* (4) |
7/7 passed, 0.18–0.49 s each |
I did not rerun the negative control. The tests and production sources are byte-identical to fd2d90bf77fa, where the control already failed as expected (see my previous review).
Previous findings
- Non-blocking: strict fall-through after calls is not documented. Resolved.
docs/dev/debt/relinker.md:5now says: "Calls, including indirect calls, are assumed to return, so a noreturn call followed by zero padding or non-code can be rejected." This matches the behaviour I described. The entry now states the gap first, as CONTRIBUTING asks. - Non-blocking: the
guest_none_relocationssplit is a separate topic. Still open, but I accept it as is. It is unchanged since my last review, and the author's CI report says it removed the macOS x86_64 timeout. I am not asking for a change.
New findings
Blocking
None.
Non-blocking
None.
Not verified
- Native Windows and macOS execution of the converted outputs.
- The sfiii-ps5 input from #14893: I did not have it, and no title was run.
- The hosted CI counts and macOS x86_64 timings, which are author-reported.
|
Independent Linux validation of head Release relinker-only build succeeded on Linux x86_64, GCC 15.2.0, Python 3.14.4. The complete registered CTest set passed 686/686, with no failures or skips, including all three function-symbol-root groups and all four no-op relocation groups. Conventions and whitespace checks passed. Initial test runs hit sandbox permissions and missing CTest/Ninja on PATH; those were corrected before the clean full run above. I also checked the unchanged public sfiii-ps5 v1.0.0 package from #14893, SHA-256
All strict runs reject the companion at the reported address 22792. All six conversions were performed on Linux. This does not claim Windows/macOS execution, title gameplay, or console testing; no disc images were supplied. AI-assisted: yes (Codex); results are from this machine. |
✅ AMD GPU test: passedPR head
Unstable on main (1, these also failed in recent main runs on this machine; not counted against this PR)Failing on main too (3, not counted against this PR)Validation IDs already present on main (8 IDs in 446 tests)Skipped (8)ReproduceAutomated build and test on a contributor's AMD machine; it does not replace upstream CI. A new comment is posted for each new push. Full logs. |
|
@XairRrR @oneandonlydean current head The integration exposed a real interaction with main's new Windows executable exports: the export writer checked the full function size again after roots mode accepted it. I reproduced that failure, propagated the option to the export writer, and added a regression for the exact export address/code bytes. Strict mode still rejects oversized function metadata; data and TLS overruns remain rejected in both modes. Main's output name, executable exports and TLS index are retained. The main plain/SCE split and target/rejection split now coexist as eight groups with all 216 conversions, four Linux native loads, assertions and original timeouts preserved. Current Linux Release validation passed all 717 registered tests, after correcting 14 tool/sandbox environment failures without changing source or assertions. The public sfiii input also reproduced strict exit 2 at address 22792 versus roots exit 0 and executable+one companion for all three output targets; these were conversions on Linux, not gameplay. Current-head upstream matrix has completed: Linux 717/717, macOS ARM64 706/706, macOS x86-64 under Rosetta 706/706 and TLS-only ASan 34/34 passed. Windows passed 720/721; its sole failure was Please review this integration delta. @oneandonlydean please rerun the failed current-head Windows job, or identify a concrete change needed for that timeout. My READ permission cannot rerun upstream Actions. The separate exact-head Windows diagnostic has now passed the original |
Resolve the test_guest_none_relocations.py conflict with main: keep the per-target test groups and run main's macOS and Windows rejected-image cases in the rejected group.
|
Hi @AZLisme, thanks for the function-symbol root analysis. We merged the latest main on top to clear the one conflict, in |
What
Adds the explicit
--function-symbol-rootsmode for ELF companion modules whose function-symbolst_sizevalues describe different code. The default strict conversion is unchanged. Fixes #14893 without identifying a title, path, function name or fixed stub pattern.The mode preserves symbol metadata, validates defined function entries as executable and file-backed, and follows the existing control-flow roots and unwind ranges during Windows/macOS code analysis. It ignores only function-symbol extents; data, TLS and FDE bounds remain checked. In this mode, actual fall-through is followed through zero bytes, direct and resolved indirect targets are validated, and valid targets in another executable segment are analyzed. Unresolved computed jumps retain the existing discovery limits, recorded in
docs/dev/debt/relinker.md.The ELF symbol-table specification distinguishes a symbol address from its optional size. This is an explicit compatibility option for incorrect sizes, not a claim that the original metadata is correct or that all indirect control flow is known.
Integrated frozen main
1e24993fa3a7da25e8fc27152af654687ba64552in current headbb619a8abbc5ded501c4f368c61d3616e493922f. Preserve main's Windows executable exports, output name and TLS index while applying function-root extent handling to exported functions. Preserve both main's plain/SCE test split and this PR's target/rejection split; all eight groups retain their assertions and original timeouts.Tested
bb619a8abbc5ded501c4f368c61d3616e493922f, Linux x86-64/GCC 16.2.1 Release, relinker-only: built successfully. All 717 registered CTests passed, with no skips, across the full run and 14 corrected-environment retries. The initial 14 failures came from the incomplete CMake on PATH and sandbox restrictions on local HTTP/filesystem tests; the complete CMake and permitted test environment passed all 14 without source or assertion changes. All three function-symbol-root groups, eight guest None groups and Windows executable-export tests passed.bb619a8aplus frozen main1e24993f: Linux 717/717, macOS ARM64 706/706, macOS x86-64 under Rosetta 706/706, TLS-only ASan 34/34, all passed without skips. Windows job 127105049968 passed 720/721, withweb_releasetiming out at 20.24 seconds; no skips. All eight None groups, three roots groups and Windows executable-export tests passed there. The Windows aggregate remains failed; there is no proof that main also fails or that it is a flake. That packaging test, its registration/20-second timeout and the three tools it exercises are unchanged from frozen main. Earlier runs keep their original input scopes.web_releaseCTest in 3.17 seconds, with the unchanged 20-second timeout and all 34 internal unittests passing. Product source/tree and its main parent were checked. This was one isolated test on a Windows runner, without the original suite's concurrent workload; it does not erase the upstream timeout or make the full Windows job pass. A maintainer rerun of the failed upstream job has been requested because this account has READ access.git diff origin/main --checkandpython3 tools/check_conventions.py --base origin/mainpass. The overlap check was completed before opening. Known control-flow discovery and noreturn limitations remain indocs/dev/debt/relinker.md.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)