fix(relinker): accept a relative jump table padded to 16 bytes before more code #8168

Merged
savvaniss merged 2 commits from upstream-pr/8168 into main 2026-10-20 16:17:28 +00:00
savvaniss commented 2026-10-20 01:09:34 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by savvaniss on 2026-10-20T01:09:34Z.


What

FindTrailingRelativeJumpTable (#6595) finds a switch's relative jump table placed after a function's last instruction. It accepts the table only when padding follows it up to the end of the inspected range, which reaches the next FDE.

In the SavedGames.prx plugin that Boggle (CUSA03312, a Unity title) ships in Media/Plugins, a function's table ends 8 bytes past its FDE. Padding then runs to the next 16-byte boundary, and code that no FDE covers follows before the next FDE. The table was therefore not recognised, and its words were decoded as instructions. The Windows conversion then failed on a TLS access that does not exist (Unsupported Windows guest TLS instruction (bytes: 64 fe ff) (offset 0x741c)).

The table is now also accepted when padding reaches the next 16-byte boundary after it:

  • Padding to the end of the range is checked first, as on main. When it holds, the table ends at the end of the range, so a long NOP that crosses the boundary is still accepted.
  • Otherwise the padding must reach the boundary, or the end of the function's own FDE if that is later. The table ends there, so the code after it is still analysed as code, and a table cut short inside its FDE is rejected, as on main.

Code before the boundary still rejects the table; the existing nonPadding case covers that. FindTrailingRelativeJumpTable takes the code's address, to find the boundary, and the end of the function's FDE; FindRelativeJumpTables passes both.

#6618 handles tables inside a function's unwind range with a separate pass, and conflicts with main. This only widens main's trailing-table rule.

Overlap with #8076: OnlyPadding now takes an end, (code, from, to, decoder). #8076 calls the three-argument OnlyPadding(code, from, decoder) in five places, so merging the two needs those calls to pass code.size(), besides the tables.push_back line both edit.

Tested

Windows 11 Pro 26300, WinLibs GCC 15.2.0, Release, relinker-only build (-DANYPS5_RELINKER_ONLY=ON -DBUILD_TESTING=ON) of fb050223d.

  • Full ctest: 213/213 pass.

  • control_flow_graph covers the trailing table with a code address that is not 16-aligned (through both functions), a table that ends on a 16-byte boundary at +8, padding to the next function at +48, a NOP that crosses a 31-byte range end, the 15+9-byte NOP layout (end 48, and rejected when code follows at +48), and a table cut short inside its FDE. Each check fails with the change it covers removed:

    Change removed First failing check
    4aadd1965 rule (boundary checked first) Table followed by a NOP across the boundary was not found
    FDE end not passed (unwindEnd 0) Table followed by more of its function was accepted
    code address ignored Table boundary ignored the code address
    FindRelativeJumpTables passes 0 for the address Function address was not passed to the table search
    + 16 in place of + 15 Table ending on a 16-byte boundary was rejected
    table end always the boundary Padding to the end of the range was cut at the boundary
    no std::min clamp to the range Padding check read past the inspected range
    OnlyPadding decodes past its end Table ending inside a NOP was accepted
  • FindRelativeJumpTables on the layouts from the review (code at 0xec00001000, FDEs {base, base+9} and the next function at the range end):

    Layout main a569f47cb 4aadd1965 fb050223d
    7-byte NOP at +0x1c across +0x20, end 0x30 [+0x10,+0x30) no table [+0x10,+0x30)
    11-byte NOP at +0x18 across +0x20, end 0x40 [+0x10,+0x40) no table [+0x10,+0x40)
    15+9-byte NOPs from +0x18, end 0x30 [+0x10,+0x30) no table [+0x10,+0x30)
    90 to 0x20, 90 to 0x40, 7-byte NOP inside +0x20 found same same
    two 9-byte NOPs across +0x20, code at +0x30 no table no table no table
    padding to +0x20, then code (Boggle) no table [+0x10,+0x20) [+0x10,+0x20)
    0x38 bytes, one FDE over all of it no table [+0x10,+0x20) no table
  • Hasbro pack (CUSA03312): on the stack of main, #6684, #7660, #8166 and the TLS relocation fix from #6977, with 4aadd1965 and with fb050223d, Boggle (--module-dir boggleMedia/Modules --module-dir boggleMedia/Plugins, 14 modules including SavedGames.prx) and Trivial Pursuit (15 modules) convert for Windows and Linux, and so do Risk and Monopoly through --executable. The two outputs are byte-identical; the Linux .desktop files differ only in their output path. Earlier: without this change the same stack stops at the TLS error above in Boggle's SavedGames.prx; with #6977's libraries Boggle then renders its first scene. Trivial Pursuit Live!'s own SavedGames.prx converts either way.

  • tools/check_conventions.py --base origin/main passes. tools/pr_overlap.py --branch lists only #8076, which conflicts with main, so RelativeJumpTables.cpp and ControlFlowGraphTests.cpp were not compared automatically; see the overlap note above.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: CUSA03312 #7198 (Boggle)
  • GPUs tested: n/a
  • AI-assisted: yes

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4929549015 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8168). Originally posted by [savvaniss](https://github.com/savvaniss) on 2026-10-20T01:09:34Z. --- ### What `FindTrailingRelativeJumpTable` (#6595) finds a switch's relative jump table placed after a function's last instruction. It accepts the table only when padding follows it up to the end of the inspected range, which reaches the next FDE. In the `SavedGames.prx` plugin that Boggle (CUSA03312, a Unity title) ships in `Media/Plugins`, a function's table ends 8 bytes past its FDE. Padding then runs to the next 16-byte boundary, and code that no FDE covers follows before the next FDE. The table was therefore not recognised, and its words were decoded as instructions. The Windows conversion then failed on a TLS access that does not exist (`Unsupported Windows guest TLS instruction (bytes: 64 fe ff) (offset 0x741c)`). The table is now also accepted when padding reaches the next 16-byte boundary after it: - Padding to the end of the range is checked first, as on `main`. When it holds, the table ends at the end of the range, so a long NOP that crosses the boundary is still accepted. - Otherwise the padding must reach the boundary, or the end of the function's own FDE if that is later. The table ends there, so the code after it is still analysed as code, and a table cut short inside its FDE is rejected, as on `main`. Code before the boundary still rejects the table; the existing `nonPadding` case covers that. `FindTrailingRelativeJumpTable` takes the code's address, to find the boundary, and the end of the function's FDE; `FindRelativeJumpTables` passes both. #6618 handles tables inside a function's unwind range with a separate pass, and conflicts with `main`. This only widens `main`'s trailing-table rule. Overlap with #8076: `OnlyPadding` now takes an end, `(code, from, to, decoder)`. #8076 calls the three-argument `OnlyPadding(code, from, decoder)` in five places, so merging the two needs those calls to pass `code.size()`, besides the `tables.push_back` line both edit. ### Tested Windows 11 Pro 26300, WinLibs GCC 15.2.0, Release, relinker-only build (`-DANYPS5_RELINKER_ONLY=ON -DBUILD_TESTING=ON`) of fb050223d. - Full `ctest`: 213/213 pass. - `control_flow_graph` covers the trailing table with a code address that is not 16-aligned (through both functions), a table that ends on a 16-byte boundary at +8, padding to the next function at +48, a NOP that crosses a 31-byte range end, the 15+9-byte NOP layout (end 48, and rejected when code follows at +48), and a table cut short inside its FDE. Each check fails with the change it covers removed: | Change removed | First failing check | |---|---| | 4aadd1965 rule (boundary checked first) | `Table followed by a NOP across the boundary was not found` | | FDE end not passed (`unwindEnd` 0) | `Table followed by more of its function was accepted` | | code address ignored | `Table boundary ignored the code address` | | `FindRelativeJumpTables` passes 0 for the address | `Function address was not passed to the table search` | | `+ 16` in place of `+ 15` | `Table ending on a 16-byte boundary was rejected` | | table end always the boundary | `Padding to the end of the range was cut at the boundary` | | no `std::min` clamp to the range | `Padding check read past the inspected range` | | `OnlyPadding` decodes past its end | `Table ending inside a NOP was accepted` | - `FindRelativeJumpTables` on the layouts from the review (code at 0xec00001000, FDEs `{base, base+9}` and the next function at the range end): | Layout | `main` a569f47cb | 4aadd1965 | fb050223d | |---|---|---|---| | 7-byte NOP at +0x1c across +0x20, end 0x30 | [+0x10,+0x30) | no table | [+0x10,+0x30) | | 11-byte NOP at +0x18 across +0x20, end 0x40 | [+0x10,+0x40) | no table | [+0x10,+0x40) | | 15+9-byte NOPs from +0x18, end 0x30 | [+0x10,+0x30) | no table | [+0x10,+0x30) | | `90` to 0x20, `90` to 0x40, 7-byte NOP inside +0x20 | found | same | same | | two 9-byte NOPs across +0x20, code at +0x30 | no table | no table | no table | | padding to +0x20, then code (Boggle) | no table | [+0x10,+0x20) | [+0x10,+0x20) | | 0x38 bytes, one FDE over all of it | no table | [+0x10,+0x20) | no table | - **Hasbro pack (CUSA03312):** on the stack of `main`, #6684, #7660, #8166 and the TLS relocation fix from #6977, with 4aadd1965 and with fb050223d, Boggle (`--module-dir boggleMedia/Modules --module-dir boggleMedia/Plugins`, 14 modules including `SavedGames.prx`) and Trivial Pursuit (15 modules) convert for Windows and Linux, and so do Risk and Monopoly through `--executable`. The two outputs are byte-identical; the Linux `.desktop` files differ only in their output path. Earlier: without this change the same stack stops at the TLS error above in Boggle's `SavedGames.prx`; with #6977's libraries Boggle then renders its first scene. Trivial Pursuit Live!'s own `SavedGames.prx` converts either way. - `tools/check_conventions.py --base origin/main` passes. `tools/pr_overlap.py --branch` lists only #8076, which conflicts with `main`, so `RelativeJumpTables.cpp` and `ControlFlowGraphTests.cpp` were not compared automatically; see the overlap note above. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: CUSA03312 #7198 (Boggle) - [x] GPUs tested: n/a - [x] AI-assisted: yes 🤖 Generated with [Claude Code](https://claude.com/claude-code)
github-actions[bot] commented 2026-10-20 01:19:52 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-20T01:19:52Z.


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.

Pull request Shared files not compared
PR 8076 core/relinker/relinker/src/analysis/RelativeJumpTables.cpp
core/relinker/relinker/tests/ControlFlowGraphTests.cpp
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6281071589 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8168#issuecomment-6281071589). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-20T01:19:52Z. --- <!-- pr-overlap --> 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. | Pull request | Shared files not compared | |---|---| | [PR 8076](https://www.github.com/boykopovar/AnyPS5/pull/8076) | `core/relinker/relinker/src/analysis/RelativeJumpTables.cpp`<br>`core/relinker/relinker/tests/ControlFlowGraphTests.cpp` |
SandstromPL commented 2026-10-20 11:14:22 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by SandstromPL on 2026-10-20T11:14:22Z.


@savvaniss Review of 4aadd1965.

Regression: a long NOP that crosses the 16-byte boundary now makes the table be rejected

At RelativeJumpTables.cpp:87, OnlyPadding(code, end, aligned, decoder) runs first, and OnlyPadding now decodes with the limit to - position (:34-35). When a multi-byte NOP starts before aligned and ends after it, that check fails and the loop takes continue, so the range-end check on :88 is never reached. main did a single OnlyPadding(code, end) call bounded by code.size(), and it accepts these tables. That goes against the body's "When padding continues to the end of the range, the table ends at the end of the range, as before".

Common prefix for every layout: 48 8d 05 09 00 00 00 (lea rax → +0x10), ff e0 (jmp rax), 90×7, then the table at +0x10, f0 ff ff ff f7 ff ff ff ({-16,-9}), which ends at +0x18. Code address 0xec00001000; functions {base, base+9} and {base+size, …}.

Padding after the table, up to the range end main a569f47cb #8168 4aadd1965
90×4, then 0f 1f 80 00 00 00 00 at +0x1c..+0x22, then 90 up to +0x30 [+0x10,+0x30) no table
66 66 2e 0f 1f 84 00 00 00 00 00 at +0x18..+0x22, then 90 up to +0x40 [+0x10,+0x40) no table
66 66 66 66 66 66 2e 0f 1f 84 00 00 00 00 00 at +0x18, then 66 0f 1f 84 00 00 00 00 00 at +0x27, next function at +0x30 [+0x10,+0x30) no table
controls: 90 only up to +0x20 or +0x40, or a 7-byte NOP at +0x18..+0x1e that does not cross found found, same range

When a table is rejected, it is no longer filled with 0x90 before the syscall scan (RelinkerPipeline.cpp:392-393), and CodeInstructionCollector.cpp:261-264 no longer cuts it out of the function. Its words are decoded as code again, which is the failure this PR fixes. It only happens when a NOP straddles the first 16-byte boundary after the table, which needs more than 16 bytes of padding (for example, a next function aligned to 32 or 64 bytes). Plain 16-byte function alignment never triggers it. We have not measured how common this layout is in shipped titles.

How we reproduced it: a single-file probe that calls FindTrailingRelativeJumpTable and FindRelativeJumpTables, compiled against each tree's own headers and librelinker_core.a. Suggested fix: check main's rule first, and fall back to the boundary rule only if it fails.

-                if (!OnlyPadding(code, end, aligned, decoder)) continue;
-                if (tableEnd) *tableEnd = OnlyPadding(code, aligned, code.size(), decoder) ? code.size() : aligned;
+                const bool toRangeEnd = OnlyPadding(code, end, code.size(), decoder);
+                if (!toRangeEnd && !OnlyPadding(code, end, aligned, decoder)) continue;
+                if (tableEnd) *tableEnd = toRangeEnd ? code.size() : aligned;

What the fix does:

  • The three layouts give main's ranges again.
  • Your codeAfter case still gives [+0x10,+0x20).
  • Two 9-byte NOPs across +0x20, followed by 55 5d c3 at +0x30, are still rejected, as on main.
  • control_flow_graph passes.

Letting OnlyPadding decode past to does not work as a fix. The 15+9 layout then ends at +0x20, inside the 15-byte NOP, and the two-9-byte-NOP case is accepted with its end inside a NOP.

Smaller: a table that ends exactly on a boundary has nothing after it checked

If TablesEnd stops on a 16-byte boundary, then aligned == end and nothing after the table is checked. A table cut short by an entry that fails validation is therefore accepted.

Example, 0x38 bytes with one FDE over all of it:
48 8d 05 09 00 00 00 ff e0 90×7 | f0 ff ff ff f9 ff ff ff fa ff ff ff fb ff ff ff | 20 00 00 00 20 00 00 00 cc×8 | 55 5d c3 cc×5

  • main finds no table and decodes the FDE linearly.
  • #8168 accepts [+0x10,+0x20), and the collector then cuts the function at +0x10. Code that only the dropped entries reach is no longer collected.
  • In the test_sce_code_extent.py fixture (with PT_TLS) we put 64 48 8b 00 48 89 c1 48 89 c2 c3 at that point. main --windows rewrites the fs access, #8168 leaves it raw, and both exit 0.

clang does not emit live code after a table inside the same FDE, so this is unlikely in practice. A bound that fixes it and leaves the Boggle layout alone: treat the bytes after the table that the function's own FDE still covers as padding that must be checked, as main does.

  • Use const auto checkedTo = std::max(aligned, std::min(code.size(), unwindEnd)); where the code now uses aligned.
  • FindRelativeJumpTables passes std::min(end, segmentEnd) - begin as unwindEnd.

We checked this bound on its own on 4aadd1965:

  • the example above gives no table, as on main;
  • your layout (FDE [+0,+9)) still gives [+0x10,+0x20);
  • control_flow_graph passes.

We have not tested it together with the diff above.

Test gaps. Each mutant below passes control_flow_graph unchanged, and no other test exercises RelativeJumpTables.cpp directly.

  • codeAddress is never exercised, because every call uses an address that is 0 mod 16. Ignoring it, or having FindRelativeJumpTables pass 0 instead of begin, both survive. Cases: FindTrailingRelativeJumpTable(nonPadding, TextAddress + 1, &e) == 16 with e == 31, and FindRelativeJumpTables(nonPadding, TextAddress + 1, {{T+1, T+10}, {T+33, T+41}}) returning one table [T+17, T+32).
  • Setting *tableEnd = aligned on :88 survives: the old 32-byte case has its boundary equal to code.size(), and codeAfter has code after the boundary. Case: text padded with 0xcc to 48 bytes, with the next function at T+48, must give End == T+48. To pin the regression above, use the 15+9 NOP layout: tableEnd must be 48, and the same padding followed by code at +48 must be rejected.
  • Removing the std::min clamp (the read then runs past the span) survives, and so does +16 in place of +15. Cases: FindTrailingRelativeJumpTable(std::span<const std::uint8_t>(nonPadding).first(31)) == 16, and FindTrailingRelativeJumpTable(nonPadding, TextAddress + 8) == 16.
Lines for the end of CheckRelativeJumpTables(); they pass on 4aadd1965
std::size_t shiftedEnd = 0;
Require(Relinker::FindTrailingRelativeJumpTable(nonPadding, TextAddress + 1, &shiftedEnd) == tableOffset && shiftedEnd == 31, "Table boundary ignored the code address");
Require(Relinker::FindTrailingRelativeJumpTable(nonPadding, TextAddress + 8) == tableOffset, "Table ending on a 16-byte boundary was rejected");
const auto shifted = Relinker::FindRelativeJumpTables(nonPadding, TextAddress + 1, {{TextAddress + 1, TextAddress + 10}, {TextAddress + 33, TextAddress + 41}});
Require(shifted.size() == 1 && shifted[0].Begin == TextAddress + 17 && shifted[0].End == TextAddress + 32, "Function address was not passed to the table search");
Bytes padded = text; padded.resize(48, 0xcc);
const auto paddedTables = Relinker::FindRelativeJumpTables(padded, TextAddress, {{TextAddress, TextAddress + 9}, {TextAddress + 48, TextAddress + 56}});
Require(paddedTables.size() == 1 && paddedTables[0].End == TextAddress + 48, "Padding to the end of the range was cut at the boundary");
const auto clamped = Relinker::FindRelativeJumpTables(nonPadding, TextAddress, {{TextAddress, TextAddress + 9}, {TextAddress + 31, TextAddress + 32}});
Require(clamped.size() == 1 && clamped[0].End == TextAddress + 31, "Padding check read past the inspected range");

On the #8076 overlap: #8076 (e4034102a) calls the 3-argument OnlyPadding(code, from, decoder) at RelativeJumpTables.cpp:121, :125, :151, :172 and :353. This PR changes that function to (code, from, to, decoder), so a merge that resolves only the push_back hunk will not build.

Our runs (Linux GCC, relinker-only Release):

  • 4aadd1965, full ctest: 218/218. linux_gnu_segments timed out once under load and passes when run alone.
  • main e9a5a0c84 + #8168: 225/225.
  • main + #8166 + #8168: 226/226.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6289595232 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8168#issuecomment-6289595232). Originally posted by [SandstromPL](https://github.com/SandstromPL) on 2026-10-20T11:14:22Z. --- @savvaniss Review of 4aadd1965. **Regression: a long NOP that crosses the 16-byte boundary now makes the table be rejected** At `RelativeJumpTables.cpp:87`, `OnlyPadding(code, end, aligned, decoder)` runs first, and `OnlyPadding` now decodes with the limit `to - position` (:34-35). When a multi-byte NOP starts before `aligned` and ends after it, that check fails and the loop takes `continue`, so the range-end check on :88 is never reached. main did a single `OnlyPadding(code, end)` call bounded by `code.size()`, and it accepts these tables. That goes against the body's "When padding continues to the end of the range, the table ends at the end of the range, as before". Common prefix for every layout: `48 8d 05 09 00 00 00` (lea rax → +0x10), `ff e0` (jmp rax), `90`×7, then the table at +0x10, `f0 ff ff ff f7 ff ff ff` ({-16,-9}), which ends at +0x18. Code address 0xec00001000; functions `{base, base+9}` and `{base+size, …}`. | Padding after the table, up to the range end | main a569f47cb | #8168 4aadd1965 | |---|---|---| | `90`×4, then `0f 1f 80 00 00 00 00` at +0x1c..+0x22, then `90` up to +0x30 | [+0x10,+0x30) | no table | | `66 66 2e 0f 1f 84 00 00 00 00 00` at +0x18..+0x22, then `90` up to +0x40 | [+0x10,+0x40) | no table | | `66 66 66 66 66 66 2e 0f 1f 84 00 00 00 00 00` at +0x18, then `66 0f 1f 84 00 00 00 00 00` at +0x27, next function at +0x30 | [+0x10,+0x30) | no table | | controls: `90` only up to +0x20 or +0x40, or a 7-byte NOP at +0x18..+0x1e that does not cross | found | found, same range | When a table is rejected, it is no longer filled with 0x90 before the syscall scan (`RelinkerPipeline.cpp:392-393`), and `CodeInstructionCollector.cpp:261-264` no longer cuts it out of the function. Its words are decoded as code again, which is the failure this PR fixes. It only happens when a NOP straddles the first 16-byte boundary after the table, which needs more than 16 bytes of padding (for example, a next function aligned to 32 or 64 bytes). Plain 16-byte function alignment never triggers it. We have not measured how common this layout is in shipped titles. How we reproduced it: a single-file probe that calls `FindTrailingRelativeJumpTable` and `FindRelativeJumpTables`, compiled against each tree's own headers and `librelinker_core.a`. Suggested fix: check main's rule first, and fall back to the boundary rule only if it fails. ```diff - if (!OnlyPadding(code, end, aligned, decoder)) continue; - if (tableEnd) *tableEnd = OnlyPadding(code, aligned, code.size(), decoder) ? code.size() : aligned; + const bool toRangeEnd = OnlyPadding(code, end, code.size(), decoder); + if (!toRangeEnd && !OnlyPadding(code, end, aligned, decoder)) continue; + if (tableEnd) *tableEnd = toRangeEnd ? code.size() : aligned; ``` What the fix does: - The three layouts give main's ranges again. - Your `codeAfter` case still gives [+0x10,+0x20). - Two 9-byte NOPs across +0x20, followed by `55 5d c3` at +0x30, are still rejected, as on main. - `control_flow_graph` passes. Letting `OnlyPadding` decode past `to` does not work as a fix. The 15+9 layout then ends at +0x20, inside the 15-byte NOP, and the two-9-byte-NOP case is accepted with its end inside a NOP. **Smaller: a table that ends exactly on a boundary has nothing after it checked** If `TablesEnd` stops on a 16-byte boundary, then `aligned == end` and nothing after the table is checked. A table cut short by an entry that fails validation is therefore accepted. Example, 0x38 bytes with one FDE over all of it: `48 8d 05 09 00 00 00 ff e0 90×7 | f0 ff ff ff f9 ff ff ff fa ff ff ff fb ff ff ff | 20 00 00 00 20 00 00 00 cc×8 | 55 5d c3 cc×5` - main finds no table and decodes the FDE linearly. - #8168 accepts [+0x10,+0x20), and the collector then cuts the function at +0x10. Code that only the dropped entries reach is no longer collected. - In the `test_sce_code_extent.py` fixture (with PT_TLS) we put `64 48 8b 00 48 89 c1 48 89 c2 c3` at that point. main `--windows` rewrites the fs access, #8168 leaves it raw, and both exit 0. clang does not emit live code after a table inside the same FDE, so this is unlikely in practice. A bound that fixes it and leaves the Boggle layout alone: treat the bytes after the table that the function's own FDE still covers as padding that must be checked, as main does. - Use `const auto checkedTo = std::max(aligned, std::min(code.size(), unwindEnd));` where the code now uses `aligned`. - `FindRelativeJumpTables` passes `std::min(end, segmentEnd) - begin` as `unwindEnd`. We checked this bound on its own on 4aadd1965: - the example above gives no table, as on main; - your layout (FDE [+0,+9)) still gives [+0x10,+0x20); - `control_flow_graph` passes. We have not tested it together with the diff above. **Test gaps.** Each mutant below passes `control_flow_graph` unchanged, and no other test exercises `RelativeJumpTables.cpp` directly. - `codeAddress` is never exercised, because every call uses an address that is 0 mod 16. Ignoring it, or having `FindRelativeJumpTables` pass 0 instead of `begin`, both survive. Cases: `FindTrailingRelativeJumpTable(nonPadding, TextAddress + 1, &e) == 16` with `e == 31`, and `FindRelativeJumpTables(nonPadding, TextAddress + 1, {{T+1, T+10}, {T+33, T+41}})` returning one table [T+17, T+32). - Setting `*tableEnd = aligned` on :88 survives: the old 32-byte case has its boundary equal to `code.size()`, and `codeAfter` has code after the boundary. Case: `text` padded with `0xcc` to 48 bytes, with the next function at T+48, must give End == T+48. To pin the regression above, use the 15+9 NOP layout: tableEnd must be 48, and the same padding followed by code at +48 must be rejected. - Removing the `std::min` clamp (the read then runs past the span) survives, and so does `+16` in place of `+15`. Cases: `FindTrailingRelativeJumpTable(std::span<const std::uint8_t>(nonPadding).first(31)) == 16`, and `FindTrailingRelativeJumpTable(nonPadding, TextAddress + 8) == 16`. <details><summary>Lines for the end of <code>CheckRelativeJumpTables()</code>; they pass on 4aadd1965</summary> ```cpp std::size_t shiftedEnd = 0; Require(Relinker::FindTrailingRelativeJumpTable(nonPadding, TextAddress + 1, &shiftedEnd) == tableOffset && shiftedEnd == 31, "Table boundary ignored the code address"); Require(Relinker::FindTrailingRelativeJumpTable(nonPadding, TextAddress + 8) == tableOffset, "Table ending on a 16-byte boundary was rejected"); const auto shifted = Relinker::FindRelativeJumpTables(nonPadding, TextAddress + 1, {{TextAddress + 1, TextAddress + 10}, {TextAddress + 33, TextAddress + 41}}); Require(shifted.size() == 1 && shifted[0].Begin == TextAddress + 17 && shifted[0].End == TextAddress + 32, "Function address was not passed to the table search"); Bytes padded = text; padded.resize(48, 0xcc); const auto paddedTables = Relinker::FindRelativeJumpTables(padded, TextAddress, {{TextAddress, TextAddress + 9}, {TextAddress + 48, TextAddress + 56}}); Require(paddedTables.size() == 1 && paddedTables[0].End == TextAddress + 48, "Padding to the end of the range was cut at the boundary"); const auto clamped = Relinker::FindRelativeJumpTables(nonPadding, TextAddress, {{TextAddress, TextAddress + 9}, {TextAddress + 31, TextAddress + 32}}); Require(clamped.size() == 1 && clamped[0].End == TextAddress + 31, "Padding check read past the inspected range"); ``` </details> On the #8076 overlap: #8076 (e4034102a) calls the 3-argument `OnlyPadding(code, from, decoder)` at `RelativeJumpTables.cpp:121`, `:125`, `:151`, `:172` and `:353`. This PR changes that function to `(code, from, to, decoder)`, so a merge that resolves only the `push_back` hunk will not build. Our runs (Linux GCC, relinker-only Release): - 4aadd1965, full ctest: 218/218. linux_gnu_segments timed out once under load and passes when run alone. - main e9a5a0c84 + #8168: 225/225. - main + #8166 + #8168: 226/226. AI-assisted: yes (Claude Code)
wachi35676 commented 2026-10-20 11:38:56 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by wachi35676 on 2026-10-20T11:38:56Z.


Verdict: confirm. Ending the table at the 16-byte boundary keeps code after the table in the syscall scan. In one layout it also closes a gap that exists on main.

Tested at 4aadd1965, merged onto main 02fb1ce53. Windows 11 Home 10.0.26300, Ryzen 5 9600X, WinLibs GCC 15.2.0 r7, relinker-only Release. WSL Ubuntu 24.04, GCC 13.3.

RelinkerPipeline fills [table.Begin, table.End) with 0x90 before the syscall scan, so I checked what the mask covers when code follows the table. Probe: the PS4 fixture() from test_sce_code_extent.py, rebuilt with two unwind functions, 0x200..0x210 and 0x230..0x240. The first is lea rcx,[rip+9]; movsxd rax,[rcx+rdi*4]; add rax,rcx; jmp rax, and its table starts at 0x210, after its FDE. Both the Linux default and --windows give the same result:

gap 0x210..0x230 main this PR
2 entries, cc x8, mov eax,59; syscall; ret at 0x220 rc 2 Forbidden syscall ... 0x225: syscall number 59 rc 2, same
2 entries, cc x8, xor eax,eax; syscall; ret rc 2 Forbidden syscall ... 0x222 rc 2, same
4 entries ending at 0x220, then mov eax,59; syscall; ret rc 2 Forbidden syscall ... 0x225 (no number) rc 2 ... 0x225: syscall number 59
4 entries ending at 0x220, then xor eax,eax; syscall; ret rc 0, the output still contains 0f 05 c3 rc 2 Forbidden syscall ... 0x222
2 entries, padding up to the next FDE rc 0 rc 0
2 entries, cc x8, ret rc 0 rc 0

On main, the table in rows 3 and 4 is rejected because code follows it. Its words are then decoded as instructions, and that decode runs into the code: in row 4 it swallows the syscall. With this PR, the table is masked only up to 0x220, and the scan decodes the code from its first byte. Only entries that TableEntries accepts (negative offsets back to instruction starts) and padding are masked. When padding runs to the end of the range, tableEnd is the end of the range, as on main. #8076 at e4034102a gives main's results for all six rows, row 4 included.

Other results:

  • ctest: Windows 221/221, WSL 226/226 (main: 221/221 and 226/226).
  • Negative control (WSL): with only OnlyPadding(code, end, aligned, ...) changed back to padding up to the end of the range, control_flow_graph_tests fails with Table padded to 16 bytes before more code was not found.
  • The four PS5 homebrew I have (PPSA99005, PPSA47402, PPSA99581, PPSA99995 with 16 Wine modules) have no PT_SCE_DYNLIBDATA, so FindRelativeJumpTables doesn't run for them. All 12 output sets (--windows --to-intel, --macos --to-rosetta, Linux --to-intel) are byte-identical to main.
  • #8166 alone converts rows 2, 3 and 4 with the syscall still present. With both merged, row 3 is refused again (syscall number 59), and rows 2 and 4 convert under #8166's rule for syscalls without a constant number (see my comment on #8166).

AI-assisted: yes (Claude Code); results above were run on this machine.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6289996153 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8168#issuecomment-6289996153). Originally posted by [wachi35676](https://github.com/wachi35676) on 2026-10-20T11:38:56Z. --- Verdict: confirm. Ending the table at the 16-byte boundary keeps code after the table in the syscall scan. In one layout it also closes a gap that exists on `main`. Tested at `4aadd1965`, merged onto `main` `02fb1ce53`. Windows 11 Home 10.0.26300, Ryzen 5 9600X, WinLibs GCC 15.2.0 r7, relinker-only Release. WSL Ubuntu 24.04, GCC 13.3. `RelinkerPipeline` fills `[table.Begin, table.End)` with `0x90` before the syscall scan, so I checked what the mask covers when code follows the table. Probe: the PS4 `fixture()` from `test_sce_code_extent.py`, rebuilt with two unwind functions, 0x200..0x210 and 0x230..0x240. The first is `lea rcx,[rip+9]; movsxd rax,[rcx+rdi*4]; add rax,rcx; jmp rax`, and its table starts at 0x210, after its FDE. Both the Linux default and `--windows` give the same result: | gap 0x210..0x230 | `main` | this PR | |---|---|---| | 2 entries, `cc` x8, `mov eax,59; syscall; ret` at 0x220 | rc 2 `Forbidden syscall ... 0x225: syscall number 59` | rc 2, same | | 2 entries, `cc` x8, `xor eax,eax; syscall; ret` | rc 2 `Forbidden syscall ... 0x222` | rc 2, same | | 4 entries ending at 0x220, then `mov eax,59; syscall; ret` | rc 2 `Forbidden syscall ... 0x225` (no number) | rc 2 `... 0x225: syscall number 59` | | 4 entries ending at 0x220, then `xor eax,eax; syscall; ret` | **rc 0, the output still contains `0f 05 c3`** | rc 2 `Forbidden syscall ... 0x222` | | 2 entries, padding up to the next FDE | rc 0 | rc 0 | | 2 entries, `cc` x8, `ret` | rc 0 | rc 0 | On `main`, the table in rows 3 and 4 is rejected because code follows it. Its words are then decoded as instructions, and that decode runs into the code: in row 4 it swallows the `syscall`. With this PR, the table is masked only up to 0x220, and the scan decodes the code from its first byte. Only entries that `TableEntries` accepts (negative offsets back to instruction starts) and padding are masked. When padding runs to the end of the range, `tableEnd` is the end of the range, as on `main`. #8076 at `e4034102a` gives `main`'s results for all six rows, row 4 included. Other results: - `ctest`: Windows 221/221, WSL 226/226 (`main`: 221/221 and 226/226). - Negative control (WSL): with only `OnlyPadding(code, end, aligned, ...)` changed back to padding up to the end of the range, `control_flow_graph_tests` fails with `Table padded to 16 bytes before more code was not found`. - The four PS5 homebrew I have (PPSA99005, PPSA47402, PPSA99581, PPSA99995 with 16 Wine modules) have no `PT_SCE_DYNLIBDATA`, so `FindRelativeJumpTables` doesn't run for them. All 12 output sets (`--windows --to-intel`, `--macos --to-rosetta`, Linux `--to-intel`) are byte-identical to `main`. - #8166 alone converts rows 2, 3 and 4 with the syscall still present. With both merged, row 3 is refused again (`syscall number 59`), and rows 2 and 4 convert under #8166's rule for syscalls without a constant number (see my comment on #8166). AI-assisted: yes (Claude Code); results above were run on this machine.
savvaniss commented 2026-10-20 12:33:56 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by savvaniss on 2026-10-20T12:33:56Z.


@SandstromPL @wachi35676 Thank you both. fb050223d addresses the review.

Long NOP across the boundary. Applied your order: padding to the end of the range is checked first, as on main, and the boundary rule is only the fallback.

Table ending on a boundary. Applied your bound, checkedTo = std::max(aligned, std::min(code.size(), unwindEnd)), in every place that used aligned. FindRelativeJumpTables passes std::min(end, segmentEnd) - begin. FindTrailingRelativeJumpTable takes it as a fourth argument that defaults to 0, so a call without an FDE end checks only up to the boundary.

Tested the two together with FindRelativeJumpTables on your layouts (code at 0xec00001000):

Layout main a569f47cb 4aadd1965 fb050223d
7-byte NOP at +0x1c across +0x20, end 0x30 [+0x10,+0x30) no table [+0x10,+0x30)
11-byte NOP at +0x18 across +0x20, end 0x40 [+0x10,+0x40) no table [+0x10,+0x40)
15+9-byte NOPs from +0x18, end 0x30 [+0x10,+0x30) no table [+0x10,+0x30)
controls: 90 to 0x20, 90 to 0x40, 7-byte NOP inside +0x20 found same same
two 9-byte NOPs across +0x20, code at +0x30 no table no table no table
padding to +0x20, then code, FDE [+0,+9) (Boggle) no table [+0x10,+0x20) [+0x10,+0x20)
your 0x38-byte example, one FDE over all of it no table [+0x10,+0x20) no table

Tests. Your cases are in control_flow_graph, with one change and two additions:

  • The 31-byte clamp cases no longer catch a missing clamp once the range-end check runs first: OnlyPadding(code, end, code.size()) accepts them and gives 31 with or without the clamp. The clamp check now uses a 4-byte NOP at +28 that crosses the 31-byte range end; without the clamp, the boundary check reads past the span and accepts the table.
  • Added the 15+9 layout (end 48, and rejected when code follows at +48) and your 0x38-byte example.

Each new check fails with the change it covers removed (tests built against each variant of RelativeJumpTables.cpp):

Change removed First failing check
4aadd1965 rule (boundary checked first) Table followed by a NOP across the boundary was not found
FDE end not passed (unwindEnd 0) Table followed by more of its function was accepted
code address ignored Table boundary ignored the code address
FindRelativeJumpTables passes 0 for the address Function address was not passed to the table search
+ 16 in place of + 15 Table ending on a 16-byte boundary was rejected
table end always the boundary Padding to the end of the range was cut at the boundary
no std::min clamp Padding check read past the inspected range
OnlyPadding decodes past its end Table ending inside a NOP was accepted

Runs (Windows 11 Pro 26300, WinLibs GCC 15.2.0, relinker-only Release):

  • Full ctest at fb050223d: 213/213.
  • Hasbro pack (CUSA03312), on the stack from the PR body (main, #6684, #7660, #8166, #6977's TLS relocation fix): Boggle (14 modules, including SavedGames.prx) and Trivial Pursuit (15) convert for Windows and Linux with --module-dir <Media>/Modules --module-dir <Media>/Plugins, and Risk and Monopoly with --executable. The outputs of 4aadd1965 and fb050223d are byte-identical; the Linux .desktop files differ only in their output path.

@wachi35676: in your six rows the FDE ends at 0x210, before the table, so unwindEnd is below the boundary and the boundary rule applies as it did at 4aadd1965. The padding-to-range-end check gives the same answer as before for those rows too. I expect the same six results but have not rerun your fixture.

The #8076 overlap is now in the PR body: OnlyPadding takes (code, from, to, decoder), so #8076's five three-argument calls need code.size() when the two are merged.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6290940630 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8168#issuecomment-6290940630). Originally posted by [savvaniss](https://github.com/savvaniss) on 2026-10-20T12:33:56Z. --- @SandstromPL @wachi35676 Thank you both. fb050223d addresses the review. **Long NOP across the boundary.** Applied your order: padding to the end of the range is checked first, as on `main`, and the boundary rule is only the fallback. **Table ending on a boundary.** Applied your bound, `checkedTo = std::max(aligned, std::min(code.size(), unwindEnd))`, in every place that used `aligned`. `FindRelativeJumpTables` passes `std::min(end, segmentEnd) - begin`. `FindTrailingRelativeJumpTable` takes it as a fourth argument that defaults to 0, so a call without an FDE end checks only up to the boundary. Tested the two together with `FindRelativeJumpTables` on your layouts (code at 0xec00001000): | Layout | `main` a569f47cb | 4aadd1965 | fb050223d | |---|---|---|---| | 7-byte NOP at +0x1c across +0x20, end 0x30 | [+0x10,+0x30) | no table | [+0x10,+0x30) | | 11-byte NOP at +0x18 across +0x20, end 0x40 | [+0x10,+0x40) | no table | [+0x10,+0x40) | | 15+9-byte NOPs from +0x18, end 0x30 | [+0x10,+0x30) | no table | [+0x10,+0x30) | | controls: `90` to 0x20, `90` to 0x40, 7-byte NOP inside +0x20 | found | same | same | | two 9-byte NOPs across +0x20, code at +0x30 | no table | no table | no table | | padding to +0x20, then code, FDE [+0,+9) (Boggle) | no table | [+0x10,+0x20) | [+0x10,+0x20) | | your 0x38-byte example, one FDE over all of it | no table | [+0x10,+0x20) | no table | **Tests.** Your cases are in `control_flow_graph`, with one change and two additions: - The 31-byte clamp cases no longer catch a missing clamp once the range-end check runs first: `OnlyPadding(code, end, code.size())` accepts them and gives 31 with or without the clamp. The clamp check now uses a 4-byte NOP at +28 that crosses the 31-byte range end; without the clamp, the boundary check reads past the span and accepts the table. - Added the 15+9 layout (end 48, and rejected when code follows at +48) and your 0x38-byte example. Each new check fails with the change it covers removed (tests built against each variant of `RelativeJumpTables.cpp`): | Change removed | First failing check | |---|---| | 4aadd1965 rule (boundary checked first) | `Table followed by a NOP across the boundary was not found` | | FDE end not passed (`unwindEnd` 0) | `Table followed by more of its function was accepted` | | code address ignored | `Table boundary ignored the code address` | | `FindRelativeJumpTables` passes 0 for the address | `Function address was not passed to the table search` | | `+ 16` in place of `+ 15` | `Table ending on a 16-byte boundary was rejected` | | table end always the boundary | `Padding to the end of the range was cut at the boundary` | | no `std::min` clamp | `Padding check read past the inspected range` | | `OnlyPadding` decodes past its end | `Table ending inside a NOP was accepted` | **Runs** (Windows 11 Pro 26300, WinLibs GCC 15.2.0, relinker-only Release): - Full `ctest` at fb050223d: 213/213. - Hasbro pack (CUSA03312), on the stack from the PR body (`main`, #6684, #7660, #8166, #6977's TLS relocation fix): Boggle (14 modules, including `SavedGames.prx`) and Trivial Pursuit (15) convert for Windows and Linux with `--module-dir <Media>/Modules --module-dir <Media>/Plugins`, and Risk and Monopoly with `--executable`. The outputs of 4aadd1965 and fb050223d are byte-identical; the Linux `.desktop` files differ only in their output path. @wachi35676: in your six rows the FDE ends at 0x210, before the table, so `unwindEnd` is below the boundary and the boundary rule applies as it did at 4aadd1965. The padding-to-range-end check gives the same answer as before for those rows too. I expect the same six results but have not rerun your fixture. The #8076 overlap is now in the PR body: `OnlyPadding` takes `(code, from, to, decoder)`, so #8076's five three-argument calls need `code.size()` when the two are merged. AI-assisted: yes (Claude Code)
wachi35676 commented 2026-10-20 13:13:39 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by wachi35676 on 2026-10-20T13:13:39Z.


Verdict: confirm. Your expectation holds: my six rows give the same results at fb050223d as at 4aadd1965, including the gap on main that this PR closes.

I re-ran fb050223d merged onto main 44e3389c8 (clean merge) on Windows 11 with WinLibs GCC 15.2.0 (relinker-only Release) and on Ubuntu 24.04 (WSL2) with GCC 13.3. I used the same fixture as before: the table at 0x210 after the function 0x200..0x210, and a second FDE at 0x230. Linux default and --windows give the same results.

gap 0x210..0x230 main 4aadd1965 fb050223d
2 entries, cc x8, mov eax,59; syscall rc 2 (0x225, number 59) same same
2 entries, cc x8, xor eax,eax; syscall rc 2 (0x222) same same
4 entries ending at 0x220, then mov eax,59; syscall rc 2 (0x225, no number) rc 2 (number 59) rc 2 (number 59)
4 entries ending at 0x220, then xor eax,eax; syscall rc 0, output still has 0f 05 c3 rc 2 (0x222) rc 2 (0x222)
2 entries, padding to the next FDE rc 0 rc 0 rc 0
2 entries, cc x8, ret rc 0 rc 0 rc 0

One more layout, which follows from the new FDE bound: the same six gaps, but the first FDE covers 0x200..0x230, so the code after the table is part of the table's function. Here fb050223d gives exactly main's results, including rc 0 with 0f 05 c3 still in the output for row 4. 4aadd1965 refused row 4. That is SandstromPL's rule working as designed (a table followed by more of its own function isn't masked), and it isn't a regression from main. It does mean that the decode of an unmasked table can still swallow a following syscall when the FDE covers it. That belongs to the syscall scan, not to this PR.

Other results:

  • ctest: Windows 223/223 and WSL 228/228, the same counts as main 44e3389c8 on each OS. Neither build has warnings from this change.
  • Negative control (WSL): with only RelativeJumpTables.cpp/.hpp set back to 4aadd1965, control_flow_graph fails with Table followed by a NOP across the boundary was not found. With them set back to main, the test doesn't compile (FindTrailingRelativeJumpTable takes one argument there).
  • PPSA99005, PPSA47402, PPSA99581 and PPSA99995 (with 16 Wine modules): all 12 output sets (--windows --to-intel, --macos --to-rosetta, Linux --to-intel) are byte-identical to main 44e3389c8.

AI-assisted: yes (Claude Code); results above were run on this machine.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6291690708 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8168#issuecomment-6291690708). Originally posted by [wachi35676](https://github.com/wachi35676) on 2026-10-20T13:13:39Z. --- Verdict: confirm. Your expectation holds: my six rows give the same results at `fb050223d` as at `4aadd1965`, including the gap on `main` that this PR closes. I re-ran `fb050223d` merged onto `main` `44e3389c8` (clean merge) on Windows 11 with WinLibs GCC 15.2.0 (relinker-only Release) and on Ubuntu 24.04 (WSL2) with GCC 13.3. I used the same fixture as before: the table at 0x210 after the function 0x200..0x210, and a second FDE at 0x230. Linux default and `--windows` give the same results. | gap 0x210..0x230 | `main` | `4aadd1965` | `fb050223d` | |---|---|---|---| | 2 entries, `cc` x8, `mov eax,59; syscall` | rc 2 (0x225, number 59) | same | same | | 2 entries, `cc` x8, `xor eax,eax; syscall` | rc 2 (0x222) | same | same | | 4 entries ending at 0x220, then `mov eax,59; syscall` | rc 2 (0x225, no number) | rc 2 (number 59) | rc 2 (number 59) | | 4 entries ending at 0x220, then `xor eax,eax; syscall` | **rc 0, output still has `0f 05 c3`** | rc 2 (0x222) | rc 2 (0x222) | | 2 entries, padding to the next FDE | rc 0 | rc 0 | rc 0 | | 2 entries, `cc` x8, `ret` | rc 0 | rc 0 | rc 0 | One more layout, which follows from the new FDE bound: the same six gaps, but the first FDE covers 0x200..0x230, so the code after the table is part of the table's function. Here `fb050223d` gives exactly `main`'s results, including rc 0 with `0f 05 c3` still in the output for row 4. `4aadd1965` refused row 4. That is SandstromPL's rule working as designed (a table followed by more of its own function isn't masked), and it isn't a regression from `main`. It does mean that the decode of an unmasked table can still swallow a following `syscall` when the FDE covers it. That belongs to the syscall scan, not to this PR. Other results: - `ctest`: Windows 223/223 and WSL 228/228, the same counts as `main` `44e3389c8` on each OS. Neither build has warnings from this change. - Negative control (WSL): with only `RelativeJumpTables.cpp`/`.hpp` set back to `4aadd1965`, `control_flow_graph` fails with `Table followed by a NOP across the boundary was not found`. With them set back to `main`, the test doesn't compile (`FindTrailingRelativeJumpTable` takes one argument there). - PPSA99005, PPSA47402, PPSA99581 and PPSA99995 (with 16 Wine modules): all 12 output sets (`--windows --to-intel`, `--macos --to-rosetta`, Linux `--to-intel`) are byte-identical to `main` `44e3389c8`. AI-assisted: yes (Claude Code); results above were run on this machine.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!8168
No description provided.