fix(tools): match guest module aliases in import audit #7179
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/7179"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-17T15:08:45Z.
What
Treat a converted
*.guest.prxmodule as satisfying imports that name its original*.prxmodule. Apply the alias to module import classification and host dependency checks, and add a regression test for a guest module without ELF identity metadata.Carries the ready patch offered in #7174. The original commit author, Leandro Soares, is preserved. This is complementary to #6171: the regression test fails on that branch because it has no identity metadata to map, while this change uses the converted filename alias. #6239 handles ordinary symbol names in registries; the overlap is limited to
tools/import_audit.pyand does not change module-name matching.Tested
python3 tools/tests/test_import_audit.py: 98 passed, 1 skipped.python3 tools/check_conventions.py --base upstream/main: passed locally.git diff --check: passed.tools/pr_overlap.py --branch codex/import-audit-guest-aliases-7174: no confirmed overlap; #6171 and #6239 required manual comparison due to branch conflicts.Checklist
main; no other open PR implements the same functions.mdfiles or images added to the repositoryImported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-17T15:30:31Z.
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.
tools/import_audit.pytools/tests/test_import_audit.pyImported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-17T16:02:02Z.
I manually reviewed the two overlap warnings. #6171 resolves ELF SONAME/SCE module identities and #6239 accepts ordinary ELF symbol names in registries. This PR handles converted PE filenames such as
libX.prx.guest.prxby recording the base guest module name for import lookup; it does not change ELF metadata parsing or named-symbol/NID fallback. I found no duplicated behavior. The initial conventions failure was for the required PR template sections; the follow-up conventions run passed.