fix(relinker): keep embedded data tables out of --to-intel and --to-rosetta conversion #11525
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/11525"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by Lindamea1 on 2026-10-26T17:59:39Z.
What
Before the syscall scans, the relinker masks the tables that
FindRelativeJumpTablesfinds in executable segments: trailing relative jump tables and, since #8076, constant tables that a RIP-relativeLEAreferences in the gap after a function. The masks are built inRelinkerPipeline.cpp:396-420for the executable and inGuestModuleBuilder.cpp:403-421for bundled modules.The
--to-inteland--to-rosettaconverter runs before those scans:Conversion.cpp:68-70for the executable,GuestModuleBuilder.cpp:396-397for modules. It decodes each executablePT_LOADlinearly without those masks (Amd64OnlyConverter.cpp:326-327), and without unwind ranges a decode failure throws unless only zeros follow it (InstructionScanner.cpp:57-59). Such a table, which a plain,--windowsor--macosrelink accepts, therefore stops--to-intel,--windows --to-inteland--macos --to-rosettawhen the decoding reaches one of its undecodable bytes. For the0F 78bytes of #7547 the message isFAIL: Cannot decode instruction: Unsupported 0F 78 opcode without SSE4A prefix.USAGE.md:52tells Intel hosts to add--to-inteland Apple hosts--to-rosetta.No title was run. In #7547, the module syscall scan stopped before #8076 at VA 0xf72b9b in the
ubiservices.prxof The Rogue Prince of Persia (PPSA28155). THEMANnt's analysis in #7547 found that address inside the OpenSSL Whirlpool table at [0xf72580, 0xf73580), in entry 97 (0f 0f 3c 0f 78 33 1e 77), and MarcZX10 agreed there. The report used--windowson an AMD host, without--to-intel. I built a replica with the same table, generated from the public Whirlpool algorithm in the wp-x86_64 layout and referenced byLEAfrom a function. Onmainit fails at table+0x61b, the same entry and byte, under the three flag sets; with this change it converts. That this module stops under--to-intelonmainis inferred from the replica, soUnblocksis none.Changes:
DataTableRanges, a new function inSceCodeExtent.cppbesideFindSceCodeEnd, returns the address ranges these scans mask. It runsFindRelativeJumpTableson each executablePT_LOAD, trims SCE images atFindSceCodeEndas the pipeline does, and clamps each table to the scanned code asGuestModuleBuilderdid. The pipeline and the module builder now mask from it. It is not inRelativeJumpTables.cppbecausecontrol_flow_graph_testsbuilds that file withoutSceCodeExtent.cpp.IAmd64OnlyConverter::Converttakes these ranges (default empty). The converter scans a copy of the segment with the ranges filled with0x90, drops every instruction that overlaps a range, and adds each range start to the branch targets that stop a stub window or island from covering an address. The original bytes in a range are never decoded, matched, rewritten or moved into a stub. That includes code that the scans take as part of a table; see Not covered.Conversion.cppcomputes the ranges from the unconverted executable. When it hasPT_GNU_EH_FRAMEorPT_SCE_DYNLIBDATA, it reads the unwind functions, andDT_PLTGOTandDT_PLTRELSZfor the SCE trim; without either, the function list is empty and so are the ranges, as inGuestModuleBuilder. It passes the ranges to the converter and hands them to the pipeline. The pipeline uses them instead of computing them again after conversion.GuestModuleBuildercomputes them before it converts a module and reuses them for that module's syscall scan.docs/dev/debt/relinker.md:39now states its gaps first: code without an unwind entry that the scans take as part of a table is neither scanned, converted nor analyzed, so a syscall there runs on the host and an AMD-only instruction there stays unconverted, which can fault or give different results on an Intel host or under Rosetta. It also says that--to-inteland--to-rosettaskip these tables, and its scope names onlyPT_GNU_EH_FRAME: the scans and the converter find tables only next to the unwind functions that header lists, so aPT_SCE_DYNLIBDATAimage without it gets none, as onmain. The old text said masking stops at the first byte whose linear decoding reaches a jump, return or trap and keeps gap code scanned; the probes under Not covered show otherwise. To stay under 1000 characters I dropped its sentences on the backward pass and on output bytes, which are implementation notes, and its link to the code analysis.No FreeBSD reference applies; this is relinker behaviour. #8076 and
relinker.md:34treat these bytes as data, andUSAGE.md:52sends Intel and Apple hosts to these flags.Not covered:
FindEmbeddedDataTableEndends a table at the first padding followed by code that reaches a syscall or ends the gap (a jump, return or trap, then only padding); without one, at code holding a syscall; else at the next unwind function. Code without an unwind entry before that end keeps its AMD-only instructions, which fault or give different results on an Intel host or under Rosetta. A probe on the SysV and SCE fixtures puts anINSERTQright after the table, or in a block after padding that more code follows. Under--to-intel,--windows --to-inteland--macos --to-rosetta,mainstops at the table withCannot decode instruction, and this change leaves theINSERTQas it is. In the last block of the gap, after padding, theINSERTQis moved to a stub, as it is without a table. No test covers this.main. The function looks for that padding (RelativeJumpTables.cpp:227-240) before it looks for a syscall (241-245), so a syscall between the table and that padding is masked. A probe on the same fixtures putsxor eax, eax; mov al, 59; syscall; retright after the table, then padding andxor eax, eax; ret. Onmain, plain,--windowsand--macosrelink it with thesyscallunchanged, while--to-intel,--windows --to-inteland--macos --to-rosettastop at the table. With this change the last three also relink it with thesyscallunchanged. With padding before the stub, or without the block after it, the syscall is refused under all six flag sets with this change, and under plain,--windowsand--macosonmain. The review of #8076 asked that the mask never cover a syscall block; its fixtures put padding before the stub, so this case was not covered. The fix belongs inFindEmbeddedDataTableEndand changes plain relinks too, so it is left for a separate PR; #11565 proposes one.--frame-red-zonekeeps its own unmasked scan, which decodes all of each executable segment, with no unwind ranges, to collect branch targets, so a gap table outside every unwind function fails it too once the decoding reaches an undecodable byte (RedZoneFramer.cpp:224-233).--windows --frame-red-zoneon the same table fails with the same message, onmainand on this change. Onmainf759e165dand on this change,--windows --to-intel --frame-red-zonealso fails that way on the SysV and SCE gap-table fixtures, which--windows --to-intelalone now converts.--macos --to-rosetta, the macOS code analysis still looks for tables itself, in the converted image, with the sizedSTT_FUNCdynamic symbols added to the unwind functions (CodeInstructionCollector.cpp:280,351-362). There the converter writes a short jump and0xCCfill over a 256-bit store that it moves to an island (Amd64OnlyConverter.cpp:212-214). If that store is in the block whose padding ends a table, before the block's first jump or return, this search can take the jump as a block end that more code follows and the fill as padding (RelativeJumpTables.cpp:158-159,227-239). It can then end the table at the fill instead and keep the code before the fill out of the analysis roots. Under--windows --to-intel, the converter writes no jump or trap into the image before the Windows code analysis. TheUD2that the pipeline writes over each syscall its scan returns also changes the bytes this search reads, without--to-intelor--to-rosettaand onmaintoo (RelinkerPipeline.cpp:447-449). I found this by reading the code and did not run such a case. Onmain, conversion stops at such a table when its decoding reaches an undecodable byte.--to-intel, read-only data after the PLT of aPT_SCE_DYNLIBDATAexecutable (relinker.md:34) still fails, withUnsupported 0F 79on the test fixture. A PS4 gap slot fromtest_sce_code_gaps.pyalso still fails, in an executable and in a module, withInstruction exceeds 15 bytes. Both fail onmaintoo.PT_GNU_EH_FRAMEget no table ranges for the scans or the converter, as onmain: these passFindRelativeJumpTablesonly the unwind functions that header lists, and it looks for tables only in or after them. With itsPT_GNU_EH_FRAMEheader set toPT_NULL, the SysV gap-table fixture oftest_sce_code_extent.pyfails all six flag sets, plain included, withCannot decode instructionat offset 0x220 onmainand with this change, which the six no-header cases check (review reply). jotitadev's macOS run of cfd975887 found the same stop at 0x220 for plain--macos. No module without the header was run.Overlap with open PRs, rechecked after the rebase onto
mainaaccd0ba3:tools/pr_overlap.py --branchreports one pull request that changes the same lines, #12678. It could not compare #5021 and #10861, which conflict withmain, so I merged each of them with this branch and withmain(git merge-tree) and compared the conflicts:2682e6b88, opt-in PEXT/PDEP lowering under--to-rosetta) changes the sameMakeAmd64OnlyConverter(...)->Convert(...)call inGuestModuleBuilder.cppandConversion.cpp: it addslowerBitPermutationtoMakeAmd64OnlyConverter, and this PR adds the data ranges toConvert. Keeping both arguments resolves both conflicts, andmainaaccd0ba3with both PRs merged that way passes the relinker-only suite, 497 of 497. #12678's lowering is chosen in the instruction matcher, and_convertSegmentgives the matcher only instructions outside the data ranges, so table bytes stay untouched with--lower-bit-permutationtoo. A probe onmainbb04a4f1ewith both PRs merged checks this, with tables full of PEXT/PDEP encodings (review reply). No test in the tree runs--lower-bit-permutationon a table, since the flag exists only on #12678's branch. Neither PR needs the other. I proposed this one first; the order is being agreed with #12678's author in this PR's conversation and on #12678.bb3f33f1ae) conflicts withmainin oneRelinkerPipeline.cppblock. With this change it conflicts in two blocks each ofGuestModuleBuilder.cppandRelinkerPipeline.cpp(one of them its conflict withmain) and in one ofrelinker.md, the entry right after the one this PR edits. Whichever merges second needs a rebase; neither depends on the other. Itstest_sce_code_extent.pychanges merge cleanly.maininrelinker.md, away from the entry this changes, and this change adds no conflict there._enteredWithinstill calls_entered, so the range starts keep blocking windows and islands there.Tested
Gentoo Linux, kernel 7.2.8, GCC 16.2.1, AMD Ryzen 7 9800X3D, Release,
BUILD_TESTING=ON, onmainb73c5659a. The mutation checks and the Monster Hunter Wilds runs below were made before rebasing, on4b1a9a3b2; before review, the branch only gained an explicit clip of the ranges to the converted segment, whichMergeCodeRangesalready applied. The changes after review are covered at the end of this list.test_sce_code_extent.py, SCE and SysV fixtures: a gap table under--to-intel,--windows --to-inteland--macos --to-rosetta. Each must convert, keep the whole table in the output and report the import call site at plt+16.test_sce_code_extent.py:gap_data_then_syscallandgap_decoded_padding_syscallunder the same flags. Both must still fail withForbidden syscall instruction.test_sce_code_extent.py: the SysV gap-table fixture without itsPT_GNU_EH_FRAMEheader, under plain,--windows,--macosand the same three flags. Each must fail withCannot decode instruction: Unsupported 0F 78 opcode without SSE4A prefix (offset 0x220), as onmain. These six cases pin that the scans and the converter find no table without unwind functions; they pass onmaintoo.test_sce_module_code_extent.py: the same three module cases under the same flags.converterDataRangesinAmd64OnlyConverterTests.cpp:INSERTQthat runs into a range is not converted.ctest --test-dir build -R '^(amd64_only_converter|sce_code_extent|sce_module_code_extent)$' -j3 --output-on-failurepasses.main's relinker.test_sce_code_extent.pyfails atsce-gap-embedded-data-linux-to-intel: rc 2,FAIL: Cannot decode instruction: Unsupported 0F 78 opcode without SSE4A prefix (offset 0x220).test_sce_module_code_extent.pyfails atsce-module-gap-embedded-data-linux-to-intel, the same at offset 0x420.amd64_only_converter_testsdoes not compile againstmain, which has no three-argumentConvert.main's relinker and with the relinker built from this commit:main: 21 of 21 fail with rc 2 andCannot decode instruction ... (offset 0x220), or0x420for modules.Forbidden syscall instruction ... syscall number 59or9.converterDataRanges(on4b1a9a3b2):A stub site covers a data range.Branch enters an AMD-only instruction.tools/select_tests.py: 378 of 2378 tests selected; all pass, none skipped.-DANYPS5_RELINKER_ONLY=ON): it builds, and all 313 of its tests pass. Its relinker is byte-identical to the full build's.x86_64-w64-mingw32-g++16.2.0-std=gnu++20 -fsyntax-only -Wall -Wextraon the 6 changed.cppfiles and onAmd64OnlyWindowsTests.cpp, the Windows-only test that includes the changed converter header. All compile. This is a syntax check, not a Windows build or run.GuestModuleBuilder.cppgives 13 warnings andConversion.cppgives 7. All are-Wmissing-field-initializersfrom the existingGamePatchdesignated initializers.main's versions of the two files give the same 13 and 7.PT_GNU_EH_FRAMEand a function thatLEAs the 0x1050-byte table, withCCor90padding.main:--to-intel,--windows --to-inteland--macos --to-rosettafail at file offset 0x85b, which is table+0x61b.eboot.elf, 430 MB with 663,598 unwind functions, on4b1a9a3b2. I relinked my own dump with--skip-sce-module, once withmain's relinker and once with this change.The outputs are byte-identical for plain,
--to-intel,--windows,--windows --to-intel,--macosand--macos --to-rosetta, and stdout differs only in progress lines and the output path.DataTableRangesfinds no table in this executable. This run therefore checks that nothing else changes; it does not exercise the masking.Wall times on
mainand on this change. Linux was run three times; the other targets once:main--to-intel--windows--windows --to-intel--macos--macos --to-rosettaPeak RSS went from 1270 to 1218 MiB for plain, and from 1922 to 1967 MiB for
--to-intel.In a first version the pipeline computed the ranges again after conversion.
--to-intelthen took 12.63 s against 9.71 s onmain, becauseDataTableRangesover this executable takes 2.9 s. This is why the pipeline now takes the ranges fromConversion.main88795ed44before opening this PR. There the three tests pass, the 21 cases fail onmain's relinker and pass with this change, the replica fails onmainunder the three converting flag sets and converts with this change,--windows --frame-red-zonestill fails at the table on both, the relinker-only configuration passes 314 of 314, andtools/select_tests.pypicks 379 of 2383 tests, all passing.maincb45ae2ddon an Apple M2 Max (macOS 27.2, Apple clang 21), relinker-only Release, built for arm64 and, with-DCMAKE_OSX_ARCHITECTURES=x86_64, for x86_64, whose relinker and tests ran under Rosetta (review):main's relinker, this branch'stest_sce_code_extent.pyandtest_sce_module_code_extent.pyfail on both builds with the messages above.amd64_only_converter,sce_code_extent,sce_module_code_extent,sce_code_gapsandcontrol_flow_graphpass on both builds, and the arm64 relinker-only suite passes 307 of 307.--skip-sce-module --macos --to-rosettaand ran each output witharch -x86_64and stub x86_64 dylibs, astest_macos_trace_imports.pydoes.mainstops at offset 0x220. With this change, both outputs run to exit 42 under Rosetta: the entry returns the table address and the table is intact. The arm64 and x86_64 relinkers give byte-identical outputs.--macosalready stops at 0x220 onmainand on cfd975887. Their run predates the changes after review.mainf759e165d. Its relinker-only configuration passes 373 of 373, andtools/select_tests.pypicks 438 of 2564 tests, all passing. Against a relinker built frommainf759e165d, this branch's two test scripts still fail atsce-gap-embedded-data-linux-to-intel(offset 0x220) andsce-module-gap-embedded-data-linux-to-intel(offset 0x420), and the six no-header cases pass with both relinkers.x86_64-w64-mingw32-g++givesGuestModuleBuilder.cppandConversion.cppthe same 13 and 7 warnings asmain's versions, and the other four changed.cppfiles andAmd64OnlyWindowsTests.cppnone. Before that rebase, on88795ed44, the fixture checks of the review reply gave the same results as cfd975887, and a--to-intelrelink of the Monster Hunter Wildseboot.elfgave output byte-identical to cfd975887's.mainaaccd0ba3as984fbc38b; the rebase changed none of its added or removed lines. The relinker-only configuration passes 495 of 495, andtools/select_tests.pypicks 564 of 2868 tests, all passing. With the nine source files put back tomainaaccd0ba3's version, the two test scripts fail at the same cases as before,sce-gap-embedded-data-linux-to-intel(offset 0x220) andsce-module-gap-embedded-data-linux-to-intel(offset 0x420), and they pass with this change.x86_64-w64-mingw32-g++again givesGuestModuleBuilder.cppandConversion.cppthe same 13 and 7 warnings asmain's versions, and the other four changed.cppfiles andAmd64OnlyWindowsTests.cppnone. Merged with #12678 as described under Overlap, the relinker-only suite passes 497 of 497.2682e6b88), onmainbb04a4f1e: merged as described under Overlap, the relinker-only suite passes 507 of 507. The probe in the review reply fills the tables of the SysV, SCE and module gap-table fixtures with PEXT/PDEP encodings after their first four bytes,0f 78 33 1e(the module's table ends with anxor), and puts PEXT/PDEP in the code before and after each table. It converts them under--to-rosettaand--macos --to-rosetta, each with and without--lower-bit-permutation. All 12 conversions succeed, each table is byte-identical in the output, and the PEXT/PDEP in the code are lowered only with the flag. With #12678 alone, all 12 fail at the table withCannot decode instruction.Not tested:
--to-inteloutput of a fixture with a table was executed; the only converted outputs with a table that were executed are jotitadev's--macos --to-rosettaoutputs of the two gap-table fixtures, under Rosetta;--to-intelor--to-rosetta, whose bytes the converter now also skips;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)🤖 Generated with Claude Code
Summary by CodeRabbit
Bug Fixes
Documentation
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-26T18:09:03Z.
Review: CHANGES_REQUESTED
I found a gap in the new data-range plumbing for converted ELF files without unwind metadata.
In
Conversion::Convert,dataTablesis engaged as an empty vector before theToIntelpath.DataTableRanges(...)is only assigned when the headers containPT_SCE_DYNLIBDATAorPT_GNU_EH_FRAME. The empty optional is then passed toRelinkerPipeline. InRelinkerPipeline::Relink,knownDataTables.value_or(...)therefore keeps that empty vector, andif (!knownDataTables)prevents the old fallback scan. The converter also receives no table ranges. For a SysV executable with no EH-frame header, embedded relative jump tables are consequently decoded during conversion (so an unsupported table byte can still stop--to-intel) and are not masked in the syscall scan. The pre-change pipeline always calledFindRelativeJumpTablesfor executable segments, even whenunwindRangeswas empty.Please compute and pass table ranges for this no-SCE/no-EH case too (with an empty function-range list as appropriate), and add a regression fixture without either header. It should show that conversion preserves the table and completes, while a syscall outside the table remains subject to the existing syscall check. Current fixture cases include EH metadata, so they do not cover this path.
The rest of the reported fixture, mutation, relinker-only and target-matrix evidence is extensive. Local conventions and
git show --checkpass; current Ubuntu, Windows and macOS x86_64 relinker jobs plus ASan pass. Changes requested for the missing no-unwind table case, not for the documented limitations elsewhere in this PR.Imported from boykopovar/AnyPS5. Originally posted by jotitadev on 2026-10-27T00:39:19Z.
Review: COMMENTED
Apple run, including the case listed under Not tested: a
--macos --to-rosettaoutput of the new gap-table fixture executed under Rosetta.Machine: Apple M2 Max, macOS 27.2, Apple clang 21, relinker-only Release (
-DANYPS5_RELINKER_ONLY=ON -DBUILD_TESTING=ON -DPython3_EXECUTABLE=/usr/bin/python3, Python 3.9.6). Headcfd975887merged intomaincb45ae2dd; built twice, native arm64 and-DCMAKE_OSX_ARCHITECTURES=x86_64(relinker and tests under Rosetta).test_sce_code_extent.pyandtest_sce_module_code_extent.pyagainstmain's relinker fail on both builds with the same messages as in the description:sce-gap-embedded-data-linux-to-intelwithUnsupported 0F 78 opcode without SSE4A prefix (offset 0x220), andsce-module-gap-embedded-data-linux-to-intelat offset0x420.amd64_only_converter,sce_code_extent,sce_module_code_extent,sce_code_gapsandcontrol_flow_graphpass on both builds; in the x86_64 buildamd64_only_converter_tests, withconverterDataRanges, runs under Rosetta. The full relinker-only suite on arm64: 307 of 307 pass.fixture(gap_embedded_data=True)from this PR'stest_sce_code_extent.py, SysV and SCE variants, and converted each with--skip-sce-module --macos --to-rosetta.mainstops at offset 0x220 with the0F 78message; this change converts both, and the arm64 and x86_64 relinkers give byte-identical outputs. I then ran each Mach-O witharch -x86_64, with stub x86_64 dylibs forlib.so,libc.prxandlibkernel.prxinlibs/, astest_macos_trace_imports.pydoes. The stubAps5StartGuest_nid_no_patchcalls the guest entry, theLEAfunction, and checks the 0xE0 bytes at the returned address against the0f 78 33 1epattern. Both outputs run to exit 42 under Rosetta: the entry returns the table address and the table is intact.This does not cover the no-
PT_GNU_EH_FRAMEpath from the review above. On this fixture with that header removed, plain--macosalready stops at 0x220 onmainand on this change, so it is not the case the review describes.Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T07:23:04Z.
Review: CHANGES_REQUESTED
Re-checked — changes requested
The author’s reply resolves the earlier question about images with neither header: the PR does not claim to preserve a table there, and the tests pin the existing failure. The current branch still needs integration review: upstream changed
GuestModuleBuilder.cppsince the tested base, and an open PR, #12678, now conflicts with this PR in bothGuestModuleBuilder.cppandConversion.cpp.What I ran
02f933e8240137e49d87e20de11e2ff72616d623with currentmainedf6804cf52c62eacafc592dd6142cb4efe5bd05.git merge-tree --write-treepreviews,git diff --check, and checked hosted CI.Results
GuestModuleBuilder.cppandConversion.cppgit diff --checkUnedited local check output
Negative control
The author reports that on the older base
f759e165d9, the two positive embedded-table conversion fixtures fail againstmainand pass with the PR; the no-header cases fail identically on both trees. I did not reproduce these controls.Findings
Blocking
mainand rerun the focused relinker tests. Main has changedGuestModuleBuilder.cpp, including the code that computes and supplies table ranges, since the tested base.Depends on: none.Non-blocking
Sources
02f933e8240137e49d87e20de11e2ff72616d623mainedf6804cf52c62eacafc592dd6142cb4efe5bd05Not verified
I did not independently reproduce the author’s relinker fixture results. The hosted relinker checks passed on this head but do not include the new current-main integration or resolve the pairwise conflict.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T09:14:21Z.
Review: CHANGES_REQUESTED
Re-check — changes requested\n\nThe new update resolves the earlier current-main validation blocker: head
984fbc38bis based onaaccd0ba3, the relinker-only suite passes 495/495, the selected suite 564/564, and the reported negative control fails on main but passes with this change. The manual #12678 merge also builds and passes 497/497; I did not independently run these tests.\n\nTwo integration points remain before approval:\n\n1. The proposed #11525-first order has not been confirmed by #12678's author. This PR still says Depends on: none, while the description says the other author must add Depends on: #11525 if this goes first. Please get agreement and record the reciprocal order on both checklists; the current #12678 thread still does not show confirmation.\n2. The PR description says no test exercises a conversion with an embedded table under --lower-bit-permutation. The paired PRs modify the same conversion path, and the combined 497-test run does not cover that specific interaction. Please add a focused fixture that applies the flag while preserving the table bytes and translating the surrounding code, or provide a minimal executable conversion check demonstrating why the flag cannot touch those ranges.\n\nThe branch and test evidence are now current; the remaining request concerns the unconfirmed landing order and combined behavior.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-14T07:22:23Z.
Review: APPROVED
Reviewed — looks good
Nothing blocks this change; the inspected evidence supports merging, and the remaining points are outside this PR’s scope.
What I ran
Read the prepared diff and changed-file sources at head
752a9351c452e5e9b4362289f167056f6444337e. No commands or tests were run in this review; test results below are author-reported.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
No independent build or tests were run. The description reports that a trailing relative jump table was not tested with conversion, and that PPSA28155 was not run. The description also reports known gaps: code included in a table range remains unconverted and unscanned for syscalls, and
--frame-red-zoneretains its unmasked scan. These are documented limitations, not defects established by this review. All changed files listed as reviewed in the manifest were read; none were excluded.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by coderabbitai[bot] on 2026-11-30T05:41:19Z.
Review: COMMENTED
Actionable comments posted: 2
Architecture findings (1)
Advisory architecture findings (1)
9cb9a497-c611-47bf-b6f3-217555ac3bdeReviewing files that changed from the base of the PR and between
63ee1c120aand683bec9df1.core/relinker/codegen/include/codegen/IAmd64OnlyConverter.hppcore/relinker/codegen/src/Amd64OnlyConverter.cppcore/relinker/codegen/tests/Amd64OnlyConverterTests.cppcore/relinker/relinker/include/relinker/analysis/SceCodeExtent.hppcore/relinker/relinker/include/relinker/pipeline/RelinkerPipeline.hppcore/relinker/relinker/src/analysis/SceCodeExtent.cppcore/relinker/relinker/src/guest/GuestModuleBuilder.cppcore/relinker/relinker/src/pipeline/Conversion.cppcore/relinker/relinker/src/pipeline/RelinkerPipeline.cppcore/relinker/relinker/tests/test_sce_code_extent.pycore/relinker/relinker/tests/test_sce_module_code_extent.pydocs/dev/debt/relinker.mdIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-30T05:42:09Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this; the points below are optional.
What I ran
Reviewed head
683bec9df16043f36e7af5e8cca1915cd60cb6e2usingrepo_read.pyto inspect the prepared review bundle and changed code. I did not run build or test commands.Results
Negative Control
Not run; no build or test execution was available.
Findings
Blocking
None.
Non-blocking
None.
Sources
The range collection and conversion flow are in SceCodeExtent.cpp and Amd64OnlyConverter.cpp. The review also covered the pipeline, guest module builder, tests, and documentation changes.
Not verified
Build, test execution, and behavior on physical consoles were not verified. All 11 changed files listed in
manifest.jsonwere read; none were excluded.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-30T06:40:09Z.
Review: APPROVED
Reviewed — looks good
Nothing blocks this change; the prepared description reports passing targeted tests, and the inspected implementation shares table ranges with the converter and syscall scans.
What I ran
Reviewed head
76b8996f0d384ec2d573b6bbd610facba4f65844. I read the prepared description, commits, manifest and diff, then inspected converter masking, table-range construction, conversion wiring, pipeline and module scan callers, and the table-detection logic throughrepo_read.py. No tests were run.Results
Findings
Blocking
None.
Non-blocking
Not verified
I read all 12 changed files listed in the manifest, which are also all files listed as reviewed. I did not run tests or verify the reported test results, title behavior, hardware behavior, or the documented probes.
files.jsonwas not available as a review document; the file listing and manifest showed all changed files included.To get this to a good state
Nothing is required. The documented limitations are optional follow-up work.