fix(tools): audit converted PE guest modules #7159

Merged
MarcZX10 merged 1 commit from upstream-pr/7159 into main 2026-10-19 03:52:17 +00:00
MarcZX10 commented 2026-10-17 14:32:04 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-17T14:32:04Z.


What

Fixes #6378. Import audit now discovers converted PE modules ending in .guest.prx, reads their named exports, and records no module imports because the converted PE import table contains host DLLs while PS5 imports are in registry sidecars. PE module exports receive the same # suffix normalization as ELF exports. Other PE files and malformed module files still fail validation.

Tested

Linux: python3 -m unittest tools.tests.test_import_audit (99 tests passed, 1 skipped); python3 tools/check_conventions.py --base upstream/main; python3 tools/pr_overlap.py --branch codex/import-audit-pe-modules-6378 (no overlap).

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: #6378
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4900915817 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7159). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-17T14:32:04Z. --- ### What Fixes #6378. Import audit now discovers converted PE modules ending in `.guest.prx`, reads their named exports, and records no module imports because the converted PE import table contains host DLLs while PS5 imports are in registry sidecars. PE module exports receive the same `#` suffix normalization as ELF exports. Other PE files and malformed module files still fail validation. ### Tested Linux: `python3 -m unittest tools.tests.test_import_audit` (99 tests passed, 1 skipped); `python3 tools/check_conventions.py --base upstream/main`; `python3 tools/pr_overlap.py --branch codex/import-audit-pe-modules-6378` (no overlap). ### 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: #6378 - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes
github-actions[bot] commented 2026-10-17 14:42:42 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-17T14:42:42Z.


Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.

Pull request Conflicting files (lines on main) Same exports Same new files
PR 6171 tools/import_audit.py L434-439
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6235231975 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7159#issuecomment-6235231975). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-17T14:42:42Z. --- <!-- pr-overlap --> Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in **Depends on**. | Pull request | Conflicting files (lines on `main`) | Same exports | Same new files | |---|---|---|---| | [PR 6171](https://www.github.com/boykopovar/AnyPS5/pull/6171) | `tools/import_audit.py` [L434-439](https://github.com/boykopovar/AnyPS5/blob/1e2d9b369b692bb3391160b6ec45291dffeee17b/tools/import_audit.py#L434-L439) | | |
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!7159
No description provided.