fix(relinker): resolve kernel-family exports for libkernel-declared imports #12430

Merged
akkadbakkad89 merged 4 commits from upstream-pr/12430 into main 2026-10-30 05:54:36 +00:00
akkadbakkad89 commented 2026-10-28 13:26:04 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by akkadbakkad89 on 2026-10-28T13:26:04Z.


What

Windows scoped imports resolve through a per-import search order over the modules the converted executable actually loads. For kernel-family symbols that order had a one-way fallback added in #8853: a libkernel_sys.prx or libkernel_web.prx import also searches libkernel.prx. Nothing covers the other direction — a libkernel.prx-declared import never sees libkernel_sys.prx/libkernel_web.prx exports, even though the same NIDs are resolved on console and, on Linux, through the dynamic linker's global symbol scope.

Two places make up the search path on Windows and both learn the whole family:

  • WindowsImportBuilder::ReadLibraries — the DT_NEEDED augmentation now loads all of libkernel.prx, libkernel_sys.prx, libkernel_web.prx (and libc.prx) whenever any family member is needed, not only for the sys/web variants.
  • WindowsEntryStubBuilder — a scoped import declared on any family member searches the other two members before falling through to libc.prx.

GTA V (PPSA04264) hits this through its bundled libSceAmpr.sprx, which declares libkernel.prx for the sceKernelWrite*Command / sceKernelCallIndirectBuffer* / sceKernelGiveDirectMemoryToMapper / sceKernelWaitCommandBufferCompletion family — all implemented in libkernel_sys.prx. On Windows those imports died at startup (unresolved ELF import ... from libkernel.prx), forcing either diagnostic stubs or --lazy-binding --skip-sce-module. With the change the executable binds them to the real libkernel_sys implementations.

Tested

Windows 11, MinGW GCC. ctest -R "windows|entry_stub|kernel": 31/31 pass, including windows_kernel_variant_sys and windows_kernel_variant_web with three new cases — kernel-requests-variant (libkernel-declared import resolves through the variant), variant-requests-other (sys-declared resolves through web and vice versa) and kernel-prefers-declared (the declared module still wins). entry_stub and windows_dependency_diagnostics_tests expectations updated for the augmented dependency lists. Full build-relinker suite: 377/388 pass; the 11 failures are environmental — Windows Security quarantines freshly linked executables mid-test (relinker.exe, temp test binaries; WinError 225/FileNotFoundError), nested configures lack ninja on PATH, and two tools tests need GNU objdump / a git repository visible to the Windows toolchain. None touch the changed code.

GTA V PPSA04264 v01.011.001 on Windows: relinker --windows eboot.elf with the bundled module set converts cleanly and the game boots past the previous ~5 s unresolved-import/module-init stop — RAGE worker threads spawn, texture writebacks flow, controller connects; run killed at 90 s while still alive. Zero unresolved ELF import lines. (The title's later story-mode blocker is a separate guest-side issue tracked in #12247.)

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: #11628, #11661, #11689, #11698 (the GS-access stack shares WindowsEntryStubBuilder.cpp; this branch lands after it and is rebased on current main meanwhile)
  • Fixes: none (completes the asymmetric fallback added for #8853)
  • Unblocks: GTA V PPSA04264 Windows bring-up, #12247
  • GPUs tested: n/a (relinker change)
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5051251998 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12430). Originally posted by [akkadbakkad89](https://github.com/akkadbakkad89) on 2026-10-28T13:26:04Z. --- ### What Windows scoped imports resolve through a per-import search order over the modules the converted executable actually loads. For kernel-family symbols that order had a one-way fallback added in #8853: a `libkernel_sys.prx` or `libkernel_web.prx` import also searches `libkernel.prx`. Nothing covers the other direction — a `libkernel.prx`-declared import never sees `libkernel_sys.prx`/`libkernel_web.prx` exports, even though the same NIDs are resolved on console and, on Linux, through the dynamic linker's global symbol scope. Two places make up the search path on Windows and both learn the whole family: - `WindowsImportBuilder::ReadLibraries` — the DT_NEEDED augmentation now loads all of `libkernel.prx`, `libkernel_sys.prx`, `libkernel_web.prx` (and `libc.prx`) whenever any family member is needed, not only for the sys/web variants. - `WindowsEntryStubBuilder` — a scoped import declared on any family member searches the other two members before falling through to `libc.prx`. GTA V (PPSA04264) hits this through its bundled `libSceAmpr.sprx`, which declares `libkernel.prx` for the `sceKernelWrite*Command` / `sceKernelCallIndirectBuffer*` / `sceKernelGiveDirectMemoryToMapper` / `sceKernelWaitCommandBufferCompletion` family — all implemented in `libkernel_sys.prx`. On Windows those imports died at startup (`unresolved ELF import ... from libkernel.prx`), forcing either diagnostic stubs or `--lazy-binding --skip-sce-module`. With the change the executable binds them to the real `libkernel_sys` implementations. ### Tested Windows 11, MinGW GCC. `ctest -R "windows|entry_stub|kernel"`: 31/31 pass, including `windows_kernel_variant_sys` and `windows_kernel_variant_web` with three new cases — `kernel-requests-variant` (libkernel-declared import resolves through the variant), `variant-requests-other` (sys-declared resolves through web and vice versa) and `kernel-prefers-declared` (the declared module still wins). `entry_stub` and `windows_dependency_diagnostics_tests` expectations updated for the augmented dependency lists. Full `build-relinker` suite: 377/388 pass; the 11 failures are environmental — Windows Security quarantines freshly linked executables mid-test (`relinker.exe`, temp test binaries; `WinError 225`/`FileNotFoundError`), nested configures lack ninja on PATH, and two tools tests need GNU objdump / a git repository visible to the Windows toolchain. None touch the changed code. GTA V PPSA04264 v01.011.001 on Windows: `relinker --windows eboot.elf` with the bundled module set converts cleanly and the game boots past the previous ~5 s unresolved-import/module-init stop — RAGE worker threads spawn, texture writebacks flow, controller connects; run killed at 90 s while still alive. Zero `unresolved ELF import` lines. (The title's later story-mode blocker is a separate guest-side issue tracked in #12247.) ### 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: #11628, #11661, #11689, #11698 (the GS-access stack shares `WindowsEntryStubBuilder.cpp`; this branch lands after it and is rebased on current `main` meanwhile) - [x] Fixes: none (completes the asymmetric fallback added for #8853) - [x] Unblocks: GTA V PPSA04264 Windows bring-up, #12247 - [x] GPUs tested: n/a (relinker change) - [x] AI-assisted: yes
rooklz commented 2026-10-28 13:54:59 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by rooklz on 2026-10-28T13:54:59Z.

Review: COMMENTED


Review of 47fef9040f, run on macOS arm64 (Apple clang). The Windows lane ran the generated PE startup stubs under Wine 11.0. The fix direction looks right to me, but there is one blocking regression in what the startup has to load.

What I ran

  • relinker-only build, 270/270. ctest 378/378. Off Windows only entry_stub covers this change; windows_dependency_diagnostics and windows_kernel_variant_* are registered if(WIN32) only.
  • test_windows_kernel_variant_imports.py run unchanged except for two harness edits: the startup executables go through wine, and the missing-style checks match exception 0xc0000139 in stderr, because Wine exits with 57 instead of the NTSTATUS. With both libkernel_sys.prx and libkernel_web.prx it prints runtime, precedence and isolation checks passed, and all 12 labels match the expected values (11/22/33/44 and the unresolved cases).
  • Main-src revert, same harness: the new kernel-requests-variant case FAILS with unresolved ELF import shared from libkernel.prx, and the search list there is only libkernel.prx plus libc.prx. The test does exercise the change.
  • check_conventions --base upstream/main gives 0 errors. The one warning is debt-length: relinker.md line 25 is 945 characters on main and 1016 here. Trimming it under 1000 would clear it. merge-tree onto 750cf6cf48 is clean. pr_overlap: 32 file-sharers merged clean. #5021, #10861 and #11192 conflict with main on docs/dev/debt/relinker.md only.

Blocking: the variants become mandatory loads
Build sets imported[index] = true for every entry of a scoped import's search order. When a library is imported, the startup does a hard LoadLibraryExW and fails with Failed to load module. The GetFileAttributesW-optional path only covers libraries that are not imported. With this PR, every libkernel.prx import puts libkernel_sys.prx and libkernel_web.prx into its search order. A libkernel_sys import also puts in libkernel_web, and the other way round. So all three become required.

I reproduced it under Wine with a libs/ that has the variant, libkernel.prx and libc.prx, i.e. the set test_windows_timed_join_imports.py stages:

executable imports from main this PR
libkernel_sys.prx 11 (resolved) 53, Failed to load module ...\libs\libkernel_web.prx
libkernel_web.prx 11 53, Failed to load module ...\libs\libkernel_sys.prx
libkernel.prx (libs: libkernel + libc) 22 53, Failed to load module ...\libs\libkernel_sys.prx

A release libs/ has all three, so packaged runs and your GTA V run don't hit this. A partial libs/ does: tests that stage a subset, and users with a trimmed or self-built folder. guest_timed_join_import_libkernel_{sys,web} copy exactly variant + libkernel + libc, so I expect them to break on the Windows windows job. I could not run them here because they need the full libs build.

Suggested fix: a family member reached only through the fallback should be optional, the way libc.prx already is when it isn't imported directly. The declared module keeps its hard requirement. libkernel.prx stays required as on main, because a variant import has always required it.

@@ WindowsEntryStubBuilder::Build
     std::vector<bool> imported(libraries.size());
+    std::vector<bool> familyFallbacks(libraries.size());
     std::vector<bool> executableImports(guestModules.size());
@@
         std::vector<std::uint32_t> order;
+        std::size_t familyBegin = 0;
+        std::size_t familyEnd = 0;
@@
             if (library == "libkernel.prx" || library == "libkernel_sys.prx" || library == "libkernel_web.prx") {
+                familyBegin = order.size();
                 for (std::size_t index = guestModules.size(); index < libraries.size(); ++index) {
                     if ((libraries[index] == "libkernel.prx" || libraries[index] == "libkernel_sys.prx" || libraries[index] == "libkernel_web.prx") && libraries[index] != library)
                         order.push_back(CheckedRva(index));
                 }
+                familyEnd = order.size();
             }
@@
-        for (const auto index : order) {
+        for (std::size_t position = 0; position < order.size(); ++position) {
+            const auto index = order[position];
             Io::AppendU32(data, index);
-            if (!import.Library.empty()) imported[index] = true;
+            const bool fallback = position >= familyBegin && position < familyEnd && libraries[index] != "libkernel.prx";
+            if (fallback) familyFallbacks[index] = true;
+            else if (!import.Library.empty()) imported[index] = true;
         }
@@ library load loop
-        if (index >= guestModules.size() && !imported[index] && !unscopedImports) continue;
+        if (index >= guestModules.size() && !imported[index] && !familyFallbacks[index] && !unscopedImports) continue;
@@ "Searched libraries" listing
-            if (index >= guestModules.size() && !imported[index] && !unscopedImports) continue;
+            if (index >= guestModules.size() && !imported[index] && !familyFallbacks[index] && !unscopedImports) continue;

Results with the diff applied:

  • All three rows in the table resolve again (11, 11, 22), the same as main.
  • Your test file passes for both variants under Wine, all 12 labels.
  • entry_stub and the full ctest pass, 378/378.
  • A missing fallback variant goes through the existing optional-provider probe, so a present one is loaded and searched and an absent one is skipped.

A regression test would be one more case in test_windows_kernel_variant_imports.py that leaves other out of libs/ and still expects 11. The second loop already writes other, so the case only has to skip that file.

Non-blocking

  • ReadLibraries now adds libkernel_sys.prx and libkernel_web.prx for every libkernel.prx dependency. That adds them to the DT_NEEDED-derived list of almost every title (see the updated WindowsDependencyDiagnosticsTests expectations). With the fix above that costs a probe, not a failure.
  • I checked whether the ReadLibraries hunk is needed for this case: I reverted only it and kept the stub change, and kernel-requests-variant goes RED. The search order cannot reach a library that is not in the list.
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5683780142 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12430#pullrequestreview-5683780142). Originally posted by [rooklz](https://github.com/rooklz) on 2026-10-28T13:54:59Z. **Review:** COMMENTED --- Review of 47fef9040f, run on macOS arm64 (Apple clang). The Windows lane ran the generated PE startup stubs under Wine 11.0. The fix direction looks right to me, but there is one blocking regression in what the startup has to load. **What I ran** - relinker-only build, 270/270. `ctest` 378/378. Off Windows only `entry_stub` covers this change; `windows_dependency_diagnostics` and `windows_kernel_variant_*` are registered `if(WIN32)` only. - `test_windows_kernel_variant_imports.py` run unchanged except for two harness edits: the startup executables go through `wine`, and the `missing`-style checks match `exception 0xc0000139` in stderr, because Wine exits with 57 instead of the NTSTATUS. With both `libkernel_sys.prx` and `libkernel_web.prx` it prints `runtime, precedence and isolation checks passed`, and all 12 labels match the expected values (11/22/33/44 and the unresolved cases). - Main-src revert, same harness: the new `kernel-requests-variant` case FAILS with `unresolved ELF import shared from libkernel.prx`, and the search list there is only libkernel.prx plus libc.prx. The test does exercise the change. - `check_conventions --base upstream/main` gives 0 errors. The one warning is `debt-length`: relinker.md line 25 is 945 characters on main and 1016 here. Trimming it under 1000 would clear it. merge-tree onto 750cf6cf48 is clean. pr_overlap: 32 file-sharers merged clean. #5021, #10861 and #11192 conflict with main on `docs/dev/debt/relinker.md` only. **Blocking: the variants become mandatory loads** `Build` sets `imported[index] = true` for every entry of a scoped import's search order. When a library is `imported`, the startup does a hard `LoadLibraryExW` and fails with `Failed to load module`. The GetFileAttributesW-optional path only covers libraries that are *not* imported. With this PR, every `libkernel.prx` import puts `libkernel_sys.prx` and `libkernel_web.prx` into its search order. A `libkernel_sys` import also puts in `libkernel_web`, and the other way round. So all three become required. I reproduced it under Wine with a `libs/` that has the variant, `libkernel.prx` and `libc.prx`, i.e. the set `test_windows_timed_join_imports.py` stages: | executable imports from | main | this PR | |---|---|---| | `libkernel_sys.prx` | 11 (resolved) | 53, `Failed to load module ...\libs\libkernel_web.prx` | | `libkernel_web.prx` | 11 | 53, `Failed to load module ...\libs\libkernel_sys.prx` | | `libkernel.prx` (libs: libkernel + libc) | 22 | 53, `Failed to load module ...\libs\libkernel_sys.prx` | A release `libs/` has all three, so packaged runs and your GTA V run don't hit this. A partial `libs/` does: tests that stage a subset, and users with a trimmed or self-built folder. `guest_timed_join_import_libkernel_{sys,web}` copy exactly variant + libkernel + libc, so I expect them to break on the Windows `windows` job. I could not run them here because they need the full libs build. **Suggested fix:** a family member reached only through the fallback should be optional, the way `libc.prx` already is when it isn't imported directly. The declared module keeps its hard requirement. `libkernel.prx` stays required as on main, because a variant import has always required it. ```diff @@ WindowsEntryStubBuilder::Build std::vector<bool> imported(libraries.size()); + std::vector<bool> familyFallbacks(libraries.size()); std::vector<bool> executableImports(guestModules.size()); @@ std::vector<std::uint32_t> order; + std::size_t familyBegin = 0; + std::size_t familyEnd = 0; @@ if (library == "libkernel.prx" || library == "libkernel_sys.prx" || library == "libkernel_web.prx") { + familyBegin = order.size(); for (std::size_t index = guestModules.size(); index < libraries.size(); ++index) { if ((libraries[index] == "libkernel.prx" || libraries[index] == "libkernel_sys.prx" || libraries[index] == "libkernel_web.prx") && libraries[index] != library) order.push_back(CheckedRva(index)); } + familyEnd = order.size(); } @@ - for (const auto index : order) { + for (std::size_t position = 0; position < order.size(); ++position) { + const auto index = order[position]; Io::AppendU32(data, index); - if (!import.Library.empty()) imported[index] = true; + const bool fallback = position >= familyBegin && position < familyEnd && libraries[index] != "libkernel.prx"; + if (fallback) familyFallbacks[index] = true; + else if (!import.Library.empty()) imported[index] = true; } @@ library load loop - if (index >= guestModules.size() && !imported[index] && !unscopedImports) continue; + if (index >= guestModules.size() && !imported[index] && !familyFallbacks[index] && !unscopedImports) continue; @@ "Searched libraries" listing - if (index >= guestModules.size() && !imported[index] && !unscopedImports) continue; + if (index >= guestModules.size() && !imported[index] && !familyFallbacks[index] && !unscopedImports) continue; ``` Results with the diff applied: - All three rows in the table resolve again (11, 11, 22), the same as main. - Your test file passes for both variants under Wine, all 12 labels. - `entry_stub` and the full ctest pass, 378/378. - A missing fallback variant goes through the existing optional-provider probe, so a present one is loaded and searched and an absent one is skipped. A regression test would be one more case in `test_windows_kernel_variant_imports.py` that leaves `other` out of `libs/` and still expects 11. The second loop already writes `other`, so the case only has to skip that file. **Non-blocking** - `ReadLibraries` now adds `libkernel_sys.prx` and `libkernel_web.prx` for every `libkernel.prx` dependency. That adds them to the DT_NEEDED-derived list of almost every title (see the updated `WindowsDependencyDiagnosticsTests` expectations). With the fix above that costs a probe, not a failure. - I checked whether the `ReadLibraries` hunk is needed for this case: I reverted only it and kept the stub change, and `kernel-requests-variant` goes RED. The search order cannot reach a library that is not in the list.
MarcZX10 commented 2026-10-28 14:02:16 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-28T14:02:16Z.

Review: CHANGES_REQUESTED


The new family search order makes sibling variants mandatory DLLs during startup. In WindowsEntryStubBuilder::Build, every entry in a scoped import's order is marked imported[index] = true; the load loop then hard-loads imported host modules with LoadLibraryExW. Since this change adds both sibling variants to each kernel-family order, an executable importing from libkernel_sys.prx now fails when libkernel_web.prx is absent, and a libkernel.prx import fails when either sibling is absent. This is a regression for partial libs/ directories and the test staging pattern used by the timed-join imports.

A reviewer reproduced this with the variant + canonical kernel + libc set: startup succeeds on main but fails on this head with Failed to load module ...libkernel_web.prx (or the other sibling), even though that fallback provider need not be present to satisfy any import. The existing new scenarios always write the sibling variant into libs/, so they do not cover this case. Please keep fallback family members optional when they are not directly required, while still probing/searching them if present, and add a regression case that omits the unused sibling. The declared import library should remain a hard dependency. I am requesting changes for this startup regression; the bidirectional lookup itself is otherwise a useful fix.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5683891486 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12430#pullrequestreview-5683891486). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-28T14:02:16Z. **Review:** CHANGES_REQUESTED --- The new family search order makes sibling variants mandatory DLLs during startup. In `WindowsEntryStubBuilder::Build`, every entry in a scoped import's `order` is marked `imported[index] = true`; the load loop then hard-loads imported host modules with `LoadLibraryExW`. Since this change adds both sibling variants to each kernel-family order, an executable importing from `libkernel_sys.prx` now fails when `libkernel_web.prx` is absent, and a `libkernel.prx` import fails when either sibling is absent. This is a regression for partial `libs/` directories and the test staging pattern used by the timed-join imports. A reviewer reproduced this with the variant + canonical kernel + libc set: startup succeeds on `main` but fails on this head with `Failed to load module ...libkernel_web.prx` (or the other sibling), even though that fallback provider need not be present to satisfy any import. The existing new scenarios always write the sibling variant into `libs/`, so they do not cover this case. Please keep fallback family members optional when they are not directly required, while still probing/searching them if present, and add a regression case that omits the unused sibling. The declared import library should remain a hard dependency. I am requesting changes for this startup regression; the bidirectional lookup itself is otherwise a useful fix.
adriadam10 commented 2026-10-28 14:12:58 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-28T14:12:58Z.

Review: CHANGES_REQUESTED


Thanks, the bidirectional lookup is the right direction. One blocking regression, already reproduced by @rooklz under Wine and flagged by @MarcZX10:

  • core/relinker/elfpatcher/src/windows/WindowsEntryStubBuilder.cpp:242-245 — every entry of a scoped import's order sets imported[index] = true, and imported host modules are hard-loaded with LoadLibraryExW. Now that each kernel-family order contains both siblings, an import from libkernel_sys.prx fails with Failed to load module ...libkernel_web.prx when that file is absent (and vice versa); a libkernel.prx import fails when either variant is absent. On main the same libs/ (variant + libkernel.prx + libc.prx, as guest_timed_join_import_libkernel_{sys,web} stage it) starts fine. Fix: family members reached only through the fallback must stay optional (probed and searched if present, skipped if absent), while the declared module and libkernel.prx for variant imports stay required as on main. @rooklz posted a working diff in the thread (a separate familyFallbacks flag consulted by the load loop and the searched-libraries listing); it passed all 12 labels and the full ctest for them.
  • core/relinker/relinker/tests/test_windows_kernel_variant_imports.py:50,83 — every case writes other into libs/. Add a case that omits the unused sibling and still expects 11 (variant) / 22 (libkernel.prx), so this regression is pinned.
  • docs/dev/debt/relinker.md:25 — the entry is now 1016 characters and trips the debt-length warning; please trim it under 1000.
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5684053023 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12430#pullrequestreview-5684053023). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-28T14:12:58Z. **Review:** CHANGES_REQUESTED --- Thanks, the bidirectional lookup is the right direction. One blocking regression, already reproduced by @rooklz under Wine and flagged by @MarcZX10: - `core/relinker/elfpatcher/src/windows/WindowsEntryStubBuilder.cpp:242-245` — every entry of a scoped import's `order` sets `imported[index] = true`, and imported host modules are hard-loaded with `LoadLibraryExW`. Now that each kernel-family order contains both siblings, an import from `libkernel_sys.prx` fails with `Failed to load module ...libkernel_web.prx` when that file is absent (and vice versa); a `libkernel.prx` import fails when either variant is absent. On `main` the same `libs/` (variant + `libkernel.prx` + `libc.prx`, as `guest_timed_join_import_libkernel_{sys,web}` stage it) starts fine. Fix: family members reached only through the fallback must stay optional (probed and searched if present, skipped if absent), while the declared module and `libkernel.prx` for variant imports stay required as on `main`. @rooklz posted a working diff in the thread (a separate `familyFallbacks` flag consulted by the load loop and the searched-libraries listing); it passed all 12 labels and the full ctest for them. - `core/relinker/relinker/tests/test_windows_kernel_variant_imports.py:50,83` — every case writes `other` into `libs/`. Add a case that omits the unused sibling and still expects 11 (variant) / 22 (`libkernel.prx`), so this regression is pinned. - `docs/dev/debt/relinker.md:25` — the entry is now 1016 characters and trips the `debt-length` warning; please trim it under 1000.
MarcZX10 commented 2026-10-28 15:30:45 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-28T15:30:45Z.

Review: CHANGES_REQUESTED


The latest head 4aea329a24a89bf6ce9c6ab87a93c07303338abe adds the sibling-provider precedence case, but the blocking missing-sibling startup regression is still present in the production diff. ReadLibraries still unconditionally appends all three kernel-family names when any one is present, and WindowsEntryStubBuilder still places every sibling in the import search order. The startup stub therefore treats those fallback modules as required DLLs. The new synthetic case has all three family members present, so it does not cover the reported partial-libs/ failure.

Please make fallback family members optional when absent, while keeping the declared library and the existing required dependency hard-loaded, and add a case that omits an unused sibling. The bidirectional lookup and new sibling-precedence case can remain; this review is for the unresolved startup regression only.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5685271745 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12430#pullrequestreview-5685271745). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-28T15:30:45Z. **Review:** CHANGES_REQUESTED --- The latest head `4aea329a24a89bf6ce9c6ab87a93c07303338abe` adds the sibling-provider precedence case, but the blocking missing-sibling startup regression is still present in the production diff. `ReadLibraries` still unconditionally appends all three kernel-family names when any one is present, and `WindowsEntryStubBuilder` still places every sibling in the import search order. The startup stub therefore treats those fallback modules as required DLLs. The new synthetic case has all three family members present, so it does not cover the reported partial-`libs/` failure. Please make fallback family members optional when absent, while keeping the declared library and the existing required dependency hard-loaded, and add a case that omits an unused sibling. The bidirectional lookup and new sibling-precedence case can remain; this review is for the unresolved startup regression only.
adriadam10 commented 2026-10-28 18:01:09 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-28T18:01:09Z.

Review: CHANGES_REQUESTED


The new commit only adds the sibling-precedence case, with all three kernel-family modules present, so the blocking point from the previous review is unchanged:

  • core/relinker/elfpatcher/src/windows/WindowsImportBuilder.cpp:59-63 and core/relinker/elfpatcher/src/windows/WindowsEntryStubBuilder.cpp:186-190 — ReadLibraries still appends libkernel_sys.prx and libkernel_web.prx unconditionally, and the entry stub puts them in order, which marks them imported and hard-loads them with LoadLibraryExW. With a partial libs/ (variant + libkernel.prx + libc.prx, as on main) startup fails with Failed to load module ... for the absent sibling. Confirmed by @rooklz (Wine) and by @eliasbruno124-dev on native Windows (test_windows_timed_join_imports.py fails for both variants with this patch, passes with the familyFallbacks flag @rooklz proposed). Family members reached only through the fallback must stay optional (searched if present, skipped if absent); the declared module and libkernel.prx for variant imports stay required.
  • core/relinker/relinker/tests/test_windows_kernel_variant_imports.py:50,85 — every case writes the unused sibling into libs/. Add a case that omits it and still expects 11 (variant) / 22 (libkernel.prx).
  • docs/dev/debt/relinker.md:25 — the entry is over 1000 characters and trips debt-length; please trim it.
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5687368707 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12430#pullrequestreview-5687368707). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-28T18:01:09Z. **Review:** CHANGES_REQUESTED --- The new commit only adds the sibling-precedence case, with all three kernel-family modules present, so the blocking point from the previous review is unchanged: - `core/relinker/elfpatcher/src/windows/WindowsImportBuilder.cpp:59-63` and `core/relinker/elfpatcher/src/windows/WindowsEntryStubBuilder.cpp:186-190` — `ReadLibraries` still appends `libkernel_sys.prx` and `libkernel_web.prx` unconditionally, and the entry stub puts them in `order`, which marks them imported and hard-loads them with `LoadLibraryExW`. With a partial `libs/` (variant + `libkernel.prx` + `libc.prx`, as on `main`) startup fails with `Failed to load module ...` for the absent sibling. Confirmed by @rooklz (Wine) and by @eliasbruno124-dev on native Windows (`test_windows_timed_join_imports.py` fails for both variants with this patch, passes with the `familyFallbacks` flag @rooklz proposed). Family members reached only through the fallback must stay optional (searched if present, skipped if absent); the declared module and `libkernel.prx` for variant imports stay required. - `core/relinker/relinker/tests/test_windows_kernel_variant_imports.py:50,85` — every case writes the unused sibling into `libs/`. Add a case that omits it and still expects 11 (variant) / 22 (`libkernel.prx`). - `docs/dev/debt/relinker.md:25` — the entry is over 1000 characters and trips `debt-length`; please trim it.
MarcZX10 commented 2026-10-29 00:38:37 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T00:38:37Z.

Review: CHANGES_REQUESTED


Re-checked — new head, changes requested

The new head fixes the missing-sibling load regression and adds the corresponding cases, but merge order with four overlapping PRs is unresolved and this branch is behind current main.

What I ran

  • Reviewed exact PR head d87be8bac8b81f4282009884dd670bbddface349; its merge base with current main 3a2b91981651569163768854a1fcdc7193b6667b is 750cf6cf487f948017295b1f3717af6f886f0f85. The merge preview against current main is clean, with no changed-path overlap since that base.
  • Environment: Debian GNU/Linux x86_64, kernel 6.1.190-1; GCC 12.2.0, CMake, Ninja, Python 3.11.2. No Wine was available for local Windows runtime tests.
  • Commands:
    cmake -S /dev/shm/AnyPS5-review-12430 -B /dev/shm/AnyPS5-build-12430 -G Ninja -DCMAKE_BUILD_TYPE=Release -DANYPS5_RELINKER_ONLY=ON -DBUILD_TESTING=ON
    cmake --build /dev/shm/AnyPS5-build-12430 --parallel 8
    ctest --test-dir /dev/shm/AnyPS5-build-12430 --output-on-failure -R 'entry_stub|windows_dependency_diagnostics|windows_kernel_variant'
    ctest --test-dir /dev/shm/AnyPS5-build-12430 --output-on-failure
    python3 /dev/shm/AnyPS5-review-12430/tools/check_conventions.py --base 3a2b91981651569163768854a1fcdc7193b6667b --head HEAD
    git -C /dev/shm/AnyPS5-review-12430 diff --check 3a2b91981651569163768854a1fcdc7193b6667b...HEAD
    python3 tools/pr_overlap.py --base main --branch refs/review/pr-12430 --repo boykopovar/AnyPS5 --jobs 8
    git merge-tree --write-tree --name-only refs/review/pr-11628 refs/review/pr-12430
    git merge-tree --write-tree --name-only refs/review/pr-11661 refs/review/pr-12430
    git merge-tree --write-tree --name-only refs/review/pr-11689 refs/review/pr-12430
    git merge-tree --write-tree --name-only refs/review/pr-11698 refs/review/pr-12430
    

Results

Check Result
Release relinker-only build Pass; all 293 build steps completed
Focused entry_stub CTest Pass, 1/1. The two Windows-only tests in the regex were not registered on Linux
Full locally registered CTest suite 386/389 pass; three unrelated native tests terminate with ILLEGAL
Conventions Pass on exact PR head against current main
git diff --check Pass on exact PR head against current main
Merge preview against current main Clean
Pairwise merge previews with #11628, #11661, #11689 and #11698 Each conflicts in WindowsEntryStubBuilder.cpp
Hosted checks on exact PR head Relinker Linux, Windows, both macOS jobs, ASan, eligibility, labels, and conventions pass; standalone Windows, Linux, register-context, and write-watch jobs are skipped
Raw output

Build completion:

[293/293] Linking CXX executable core/relinker/relinker

Focused CTest:

1/1 Test #378: entry_stub .......................   Passed    0.01 sec
100% tests passed, 0 tests failed out of 1

Full CTest summary:

99% tests passed, 3 tests failed out of 389
Total Test time (real) = 184.39 sec

The following tests FAILED:
191 - masked_store_lowering (ILLEGAL)
205 - red_zone_framer_execution (ILLEGAL)
217 - amd64_only_converter (ILLEGAL)
Errors while running CTest

Conventions:

All conventions checks passed.

git diff --check exited 0 with no output. The current-main merge preview was clean; its tree hash was cc3f5dde54fcce439f7842fe6753c84b6783596f.

Overlap scan excerpt:

Other open pull requests touch the same code. If this one builds on them, list them in Depends on.
#11628 | core/relinker/elfpatcher/src/windows/WindowsEntryStubBuilder.cpp
#11661 | core/relinker/elfpatcher/src/windows/WindowsEntryStubBuilder.cpp
#11689 | core/relinker/elfpatcher/src/windows/WindowsEntryStubBuilder.cpp
#11698 | core/relinker/elfpatcher/src/windows/WindowsEntryStubBuilder.cpp

Pairwise merge-preview conflicts:

#11628: CONFLICT (content): core/relinker/elfpatcher/src/windows/WindowsEntryStubBuilder.cpp
#11661: CONFLICT (content): core/relinker/elfpatcher/src/windows/WindowsEntryStubBuilder.cpp
#11689: CONFLICT (content): core/relinker/elfpatcher/src/windows/WindowsEntryStubBuilder.cpp
#11698: CONFLICT (content): core/relinker/elfpatcher/src/windows/WindowsEntryStubBuilder.cpp

The exact-head GitHub check run reports relinker (ubuntu-latest, g++), relinker (windows-latest, g++), both relinker (macos-latest, clang++) jobs, relinker-asan, eligibility, labels, and conventions as success. The standalone windows, linux, register-context, and write-watch checks are skipped.

Negative control

Assertion Change to code under test Result
A missing, unused kernel-family sibling remains optional No revert control was run on this head Could not exercise locally; the exact-head Windows relinker CI passed

Findings

Blocking

  • The overlap scan and four pairwise merge previews confirm conflicts with #11628, #11661, #11689, and #11698 in WindowsEntryStubBuilder.cpp. The PR checklist currently says Depends on: none, and I found no recorded merge-order agreement in this thread. Please agree with the affected authors which change lands first and record the applicable sequence in Depends on; the current conflicts need to be resolved on the selected integration order.
  • The branch merge base is 750cf6cf487f948017295b1f3717af6f886f0f85, while current main is 3a2b91981651569163768854a1fcdc7193b6667b. Although the preview is clean and no touched path changed on main, CONTRIBUTING.md requires branches to stay up to date with main. Please rebase onto current main and refresh CI before merge.

Non-blocking

  • The exact-head implementation now tracks fallback family members separately, keeps absent siblings optional in the load and diagnostic paths, and includes cases that omit the unused sibling. The changed entry_stub test passes locally; exact-head hosted relinker CI passes on Linux, Windows, and macOS.
  • Three unrelated tests in the full local suite terminate with ILLEGAL; the changed entry_stub test passes. I did not treat these failures as defects in this PR.

Sources

Not verified

  • I could not execute the Windows startup scenarios locally because Wine is unavailable; the exact-head Windows relinker CI job passed. I did not test on console hardware.
  • I did not run a new main-source-revert control on this head. The three full-suite ILLEGAL failures remain unexplained locally and are outside the changed test path.

To get this to a good state

Agree and record an integration order for the four overlapping PRs, then rebase onto current main and resolve the resulting conflicts. Keep the missing-sibling tests and rerun the same build, CTest, conventions, overlap, and hosted checks on the new head; I will re-run the local checks listed above.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5691483948 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12430#pullrequestreview-5691483948). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-29T00:38:37Z. **Review:** CHANGES_REQUESTED --- # Re-checked — new head, changes requested The new head fixes the missing-sibling load regression and adds the corresponding cases, but merge order with four overlapping PRs is unresolved and this branch is behind current `main`. ## What I ran - Reviewed exact PR head `d87be8bac8b81f4282009884dd670bbddface349`; its merge base with current `main` `3a2b91981651569163768854a1fcdc7193b6667b` is `750cf6cf487f948017295b1f3717af6f886f0f85`. The merge preview against current `main` is clean, with no changed-path overlap since that base. - Environment: Debian GNU/Linux x86_64, kernel `6.1.190-1`; GCC 12.2.0, CMake, Ninja, Python 3.11.2. No Wine was available for local Windows runtime tests. - Commands: ```sh cmake -S /dev/shm/AnyPS5-review-12430 -B /dev/shm/AnyPS5-build-12430 -G Ninja -DCMAKE_BUILD_TYPE=Release -DANYPS5_RELINKER_ONLY=ON -DBUILD_TESTING=ON cmake --build /dev/shm/AnyPS5-build-12430 --parallel 8 ctest --test-dir /dev/shm/AnyPS5-build-12430 --output-on-failure -R 'entry_stub|windows_dependency_diagnostics|windows_kernel_variant' ctest --test-dir /dev/shm/AnyPS5-build-12430 --output-on-failure python3 /dev/shm/AnyPS5-review-12430/tools/check_conventions.py --base 3a2b91981651569163768854a1fcdc7193b6667b --head HEAD git -C /dev/shm/AnyPS5-review-12430 diff --check 3a2b91981651569163768854a1fcdc7193b6667b...HEAD python3 tools/pr_overlap.py --base main --branch refs/review/pr-12430 --repo boykopovar/AnyPS5 --jobs 8 git merge-tree --write-tree --name-only refs/review/pr-11628 refs/review/pr-12430 git merge-tree --write-tree --name-only refs/review/pr-11661 refs/review/pr-12430 git merge-tree --write-tree --name-only refs/review/pr-11689 refs/review/pr-12430 git merge-tree --write-tree --name-only refs/review/pr-11698 refs/review/pr-12430 ``` ## Results | Check | Result | | --- | --- | | Release relinker-only build | Pass; all 293 build steps completed | | Focused `entry_stub` CTest | Pass, 1/1. The two Windows-only tests in the regex were not registered on Linux | | Full locally registered CTest suite | 386/389 pass; three unrelated native tests terminate with `ILLEGAL` | | Conventions | Pass on exact PR head against current `main` | | `git diff --check` | Pass on exact PR head against current `main` | | Merge preview against current `main` | Clean | | Pairwise merge previews with #11628, #11661, #11689 and #11698 | Each conflicts in `WindowsEntryStubBuilder.cpp` | | Hosted checks on exact PR head | Relinker Linux, Windows, both macOS jobs, ASan, eligibility, labels, and conventions pass; standalone Windows, Linux, register-context, and write-watch jobs are skipped | <details> <summary>Raw output</summary> Build completion: ```text [293/293] Linking CXX executable core/relinker/relinker ``` Focused CTest: ```text 1/1 Test #378: entry_stub ....................... Passed 0.01 sec 100% tests passed, 0 tests failed out of 1 ``` Full CTest summary: ```text 99% tests passed, 3 tests failed out of 389 Total Test time (real) = 184.39 sec The following tests FAILED: 191 - masked_store_lowering (ILLEGAL) 205 - red_zone_framer_execution (ILLEGAL) 217 - amd64_only_converter (ILLEGAL) Errors while running CTest ``` Conventions: ```text All conventions checks passed. ``` `git diff --check` exited 0 with no output. The current-main merge preview was clean; its tree hash was `cc3f5dde54fcce439f7842fe6753c84b6783596f`. Overlap scan excerpt: ```text Other open pull requests touch the same code. If this one builds on them, list them in Depends on. #11628 | core/relinker/elfpatcher/src/windows/WindowsEntryStubBuilder.cpp #11661 | core/relinker/elfpatcher/src/windows/WindowsEntryStubBuilder.cpp #11689 | core/relinker/elfpatcher/src/windows/WindowsEntryStubBuilder.cpp #11698 | core/relinker/elfpatcher/src/windows/WindowsEntryStubBuilder.cpp ``` Pairwise merge-preview conflicts: ```text #11628: CONFLICT (content): core/relinker/elfpatcher/src/windows/WindowsEntryStubBuilder.cpp #11661: CONFLICT (content): core/relinker/elfpatcher/src/windows/WindowsEntryStubBuilder.cpp #11689: CONFLICT (content): core/relinker/elfpatcher/src/windows/WindowsEntryStubBuilder.cpp #11698: CONFLICT (content): core/relinker/elfpatcher/src/windows/WindowsEntryStubBuilder.cpp ``` The exact-head GitHub check run reports `relinker (ubuntu-latest, g++)`, `relinker (windows-latest, g++)`, both `relinker (macos-latest, clang++)` jobs, `relinker-asan`, `eligibility`, `labels`, and `conventions` as success. The standalone `windows`, `linux`, `register-context`, and `write-watch` checks are skipped. </details> ## Negative control | Assertion | Change to code under test | Result | | --- | --- | --- | | A missing, unused kernel-family sibling remains optional | No revert control was run on this head | Could not exercise locally; the exact-head Windows relinker CI passed | ## Findings ### Blocking - The overlap scan and four pairwise merge previews confirm conflicts with #11628, #11661, #11689, and #11698 in `WindowsEntryStubBuilder.cpp`. The PR checklist currently says `Depends on: none`, and I found no recorded merge-order agreement in this thread. Please agree with the affected authors which change lands first and record the applicable sequence in `Depends on`; the current conflicts need to be resolved on the selected integration order. - The branch merge base is `750cf6cf487f948017295b1f3717af6f886f0f85`, while current `main` is `3a2b91981651569163768854a1fcdc7193b6667b`. Although the preview is clean and no touched path changed on `main`, `CONTRIBUTING.md` requires branches to stay up to date with `main`. Please rebase onto current `main` and refresh CI before merge. ### Non-blocking - The exact-head implementation now tracks fallback family members separately, keeps absent siblings optional in the load and diagnostic paths, and includes cases that omit the unused sibling. The changed `entry_stub` test passes locally; exact-head hosted relinker CI passes on Linux, Windows, and macOS. - Three unrelated tests in the full local suite terminate with `ILLEGAL`; the changed `entry_stub` test passes. I did not treat these failures as defects in this PR. ## Sources - [Contribution rules, pinned to current main](https://github.com/boykopovar/AnyPS5/blob/3a2b91981651569163768854a1fcdc7193b6667b/CONTRIBUTING.md#L57-L68) - [Current PR implementation, pinned to its head](https://github.com/boykopovar/AnyPS5/blob/d87be8bac8b81f4282009884dd670bbddface349/core/relinker/elfpatcher/src/windows/WindowsEntryStubBuilder.cpp) - [Current missing-sibling regression cases, pinned to the same head](https://github.com/boykopovar/AnyPS5/blob/d87be8bac8b81f4282009884dd670bbddface349/core/relinker/relinker/tests/test_windows_kernel_variant_imports.py) - [#11628 source at reviewed head](https://github.com/boykopovar/AnyPS5/blob/00cfc900d6c4feeefc6ac109ea674ee5ca54f939/core/relinker/elfpatcher/src/windows/WindowsEntryStubBuilder.cpp), [#11661](https://github.com/boykopovar/AnyPS5/blob/339b7e0fd9bafe4bccbebb27777bb05752534b46/core/relinker/elfpatcher/src/windows/WindowsEntryStubBuilder.cpp), [#11689](https://github.com/boykopovar/AnyPS5/blob/60cd7a6c827922533ee28d036eefe6186e37bdbc/core/relinker/elfpatcher/src/windows/WindowsEntryStubBuilder.cpp), [#11698](https://github.com/boykopovar/AnyPS5/blob/034bfe7adfeb5c28372a98df6ceefbeb522a5574/core/relinker/elfpatcher/src/windows/WindowsEntryStubBuilder.cpp) - [Exact-head hosted relinker workflow run](https://github.com/boykopovar/AnyPS5/actions/runs/40751181739) ## Not verified - I could not execute the Windows startup scenarios locally because Wine is unavailable; the exact-head Windows relinker CI job passed. I did not test on console hardware. - I did not run a new main-source-revert control on this head. The three full-suite `ILLEGAL` failures remain unexplained locally and are outside the changed test path. ## To get this to a good state Agree and record an integration order for the four overlapping PRs, then rebase onto current `main` and resolve the resulting conflicts. Keep the missing-sibling tests and rerun the same build, CTest, conventions, overlap, and hosted checks on the new head; I will re-run the local checks listed above.
MarcZX10 commented 2026-10-29 05:20:12 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T05:20:12Z.

Review: APPROVED


Re-checked — looks good

The author’s new dependency order resolves the overlap blocker, the rebase preserves the reviewed patch, and the exact-head focused tests plus GTA V bring-up evidence support the reverse kernel-family fallback; I found no remaining blocking issue in the current-main preview.

What I ran

  • Reviewed head f2b7333ae28c4b36613fa094ce9a18fa17eb31ef against current main 52c09d567d2fa453494dd720fcf53a98149468e4.
  • Ran git merge-tree --write-tree and inspected changed paths since the merge base.
  • Checked the declared GS-access dependency order, current hosted checks, and the author’s Windows focused-test and GTA V report.

Results

Check Result
Current-main preview Clean; tree 3d6ba0ff33...
Main changes since branch base Seven commits; only shared changed path is docs/dev/debt/relinker.md, with a clean merged preview
Focused Windows tests Author reports 31/31 matching windows, entry_stub, and kernel cases pass, including the three new kernel-family routing cases
Full relinker suite Author reports 377/388 pass; 11 failures attributed to Windows Security quarantining test executables, missing Ninja in nested configure, GNU objdump, or a missing visible Git repository. They do not touch the changed code
Title evidence Author reports GTA V PPSA04264 converts with the bundled modules and boots past the prior unresolved-import/module-init stop for 90 seconds with no unresolved imports; later story-mode blocker is tracked separately in #12247
Hosted checks Eligibility, conventions, relinker on Ubuntu/Windows/macOS, relinker ASan pass; product test jobs skipped by workflow policy
Raw output
$ git merge-tree --write-tree refs/review/main-20261029b refs/review/pr-12430-20261029
3d6ba0ff33...
exit=0
merge-base: 059409ea165c980d20feaa0cbafe2ca069a58de4
current main: 52c09d567d2fa453494dd720fcf53a98149468e4
changed-path intersection:
docs/dev/debt/relinker.md

Negative control

  • The author reports the three new routing tests distinguish the direction-specific behavior: variant-declared import resolves through the other variant, and a kernel-declared import prefers the declared module. I did not rerun the controls locally.

Findings

Blocking

  • None found in the current diff or merge preview.

Non-blocking

  • The body now correctly declares the GS-access stack dependencies (#11628, #11661, #11689, #11698) and the GTA V bring-up discussion #12247. Keep the stated merge order and refresh/retest after those prerequisites land; the current tree has seven commits of main drift, limited to the debt file in the touched-path intersection.
  • Eleven author-reported full-suite failures are environmental; do not present the 377/388 result as a full-suite pass.

Sources

Not verified

  • I did not rerun the Windows tests, full relinker suite, or GTA V locally. Those results are author-provided.

To get this to a good state

Land the four declared GS-access prerequisites first, then refresh this branch onto current main, rerun the focused tests/conventions on that final stack tip, and update the bring-up discussion when the result changes.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5693204869 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12430#pullrequestreview-5693204869). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-29T05:20:12Z. **Review:** APPROVED --- # Re-checked — looks good The author’s new dependency order resolves the overlap blocker, the rebase preserves the reviewed patch, and the exact-head focused tests plus GTA V bring-up evidence support the reverse kernel-family fallback; I found no remaining blocking issue in the current-main preview. ## What I ran - Reviewed head `f2b7333ae28c4b36613fa094ce9a18fa17eb31ef` against current `main` `52c09d567d2fa453494dd720fcf53a98149468e4`. - Ran `git merge-tree --write-tree` and inspected changed paths since the merge base. - Checked the declared GS-access dependency order, current hosted checks, and the author’s Windows focused-test and GTA V report. ## Results | Check | Result | |---|---| | Current-main preview | Clean; tree `3d6ba0ff33...` | | Main changes since branch base | Seven commits; only shared changed path is `docs/dev/debt/relinker.md`, with a clean merged preview | | Focused Windows tests | Author reports 31/31 matching `windows`, `entry_stub`, and `kernel` cases pass, including the three new kernel-family routing cases | | Full relinker suite | Author reports 377/388 pass; 11 failures attributed to Windows Security quarantining test executables, missing Ninja in nested configure, GNU objdump, or a missing visible Git repository. They do not touch the changed code | | Title evidence | Author reports GTA V PPSA04264 converts with the bundled modules and boots past the prior unresolved-import/module-init stop for 90 seconds with no unresolved imports; later story-mode blocker is tracked separately in #12247 | | Hosted checks | Eligibility, conventions, relinker on Ubuntu/Windows/macOS, relinker ASan pass; product test jobs skipped by workflow policy | <details> <summary>Raw output</summary> ```text $ git merge-tree --write-tree refs/review/main-20261029b refs/review/pr-12430-20261029 3d6ba0ff33... exit=0 merge-base: 059409ea165c980d20feaa0cbafe2ca069a58de4 current main: 52c09d567d2fa453494dd720fcf53a98149468e4 changed-path intersection: docs/dev/debt/relinker.md ``` </details> ## Negative control - The author reports the three new routing tests distinguish the direction-specific behavior: variant-declared import resolves through the other variant, and a kernel-declared import prefers the declared module. I did not rerun the controls locally. ## Findings ### Blocking - None found in the current diff or merge preview. ### Non-blocking - The body now correctly declares the GS-access stack dependencies (#11628, #11661, #11689, #11698) and the GTA V bring-up discussion #12247. Keep the stated merge order and refresh/retest after those prerequisites land; the current tree has seven commits of main drift, limited to the debt file in the touched-path intersection. - Eleven author-reported full-suite failures are environmental; do not present the 377/388 result as a full-suite pass. ## Sources - [Implementation at reviewed head](https://github.com/boykopovar/AnyPS5/tree/f2b7333ae28c4b36613fa094ce9a18fa17eb31ef/core/relinker) - [Contribution rules at current main](https://github.com/boykopovar/AnyPS5/blob/52c09d567d2fa453494dd720fcf53a98149468e4/CONTRIBUTING.md#L57-L66) - [GTA V bring-up discussion](https://github.com/boykopovar/AnyPS5/discussions/12247) ## Not verified - I did not rerun the Windows tests, full relinker suite, or GTA V locally. Those results are author-provided. ## To get this to a good state Land the four declared GS-access prerequisites first, then refresh this branch onto current `main`, rerun the focused tests/conventions on that final stack tip, and update the bring-up discussion when the result changes.
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!12430
No description provided.