fix(relinker): load candidates for unscoped Windows imports #3344

Closed
authurtabo-byte wants to merge 1 commit from upstream-pr/3344 into main
authurtabo-byte commented 2026-10-11 08:20:35 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by authurtabo-byte on 2026-10-11T08:20:35Z.


What

Windows startup skips DT_NEEDED files that have no import matched by module name. This loses valid providers for unscoped imports, including Pinball FX's libSceJson imports supplied by libSceJson2.prx, and fails with unresolved OJPTonqdg0I despite the implementation being present.

Probe candidate dependencies when an unscoped import exists. Missing optional candidates remain optional; named dependencies and unresolved symbols retain their errors. Add Windows fixtures for unmatched module names and unqualified imports, with a missing unused dependency in both cases.

Tested

  • Windows 11: reproduced the unresolved-symbol failure with the new fixture before the fix; all four focused tests pass: windows_import_modules, guest_module_identity, guest_needed_nested_modules, guest_host_libc.
  • Pinball FX (PPSA08755), NVIDIA RTX 3050 Laptop: confirmed dependency binding proceeds to Vulkan initialization with the fix. The runtime also contains local AGC bring-up patches; this is not a gameplay claim.
  • Conventions check passes against current main (05c870cc0). No relinker changes landed between the tested base and this base.

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; no silent stubs added
  • No notes, investigation .md files or images added to the repository
  • New third-party code is a submodule built from source; none added
  • Generic behaviour, not specific to one title
  • Depends on: none
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4817682387 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3344). Originally posted by [authurtabo-byte](https://github.com/authurtabo-byte) on 2026-10-11T08:20:35Z. --- ### What Windows startup skips DT_NEEDED files that have no import matched by module name. This loses valid providers for unscoped imports, including Pinball FX's `libSceJson` imports supplied by `libSceJson2.prx`, and fails with unresolved `OJPTonqdg0I` despite the implementation being present. Probe candidate dependencies when an unscoped import exists. Missing optional candidates remain optional; named dependencies and unresolved symbols retain their errors. Add Windows fixtures for unmatched module names and unqualified imports, with a missing unused dependency in both cases. ### Tested - Windows 11: reproduced the unresolved-symbol failure with the new fixture before the fix; all four focused tests pass: `windows_import_modules`, `guest_module_identity`, `guest_needed_nested_modules`, `guest_host_libc`. - Pinball FX (PPSA08755), NVIDIA RTX 3050 Laptop: confirmed dependency binding proceeds to Vulkan initialization with the fix. The runtime also contains local AGC bring-up patches; this is not a gameplay claim. - Conventions check passes against current `main` (`05c870cc0`). No relinker changes landed between the tested base and this base. ### Checklist - [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 - [x] Unimplemented paths throw; no silent stubs added - [x] No notes, investigation `.md` files or images added to the repository - [x] New third-party code is a submodule built from source; none added - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] AI-assisted: yes
github-actions[bot] commented 2026-10-11 08:20:52 +00:00 (Migrated from github.com)

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


Thank you for your interest in the project! We are sorry, but we cannot accept more PRs while we work through the existing backlog. This PR has been automatically closed and labeled "intake paused". This is not a judgment of the quality of your changes.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6107075486 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3344#issuecomment-6107075486). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-11T08:20:52Z. --- Thank you for your interest in the project! We are sorry, but we cannot accept more PRs while we work through the existing backlog. This PR has been automatically closed and labeled "intake paused". This is not a judgment of the quality of your changes.

Pull request closed

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!3344
No description provided.