fix(import-audit): audit imports from guest modules #4243
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/4243"
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-12T02:06:34Z.
What
Carries Leandro Soares's implementation for #4202, preserving the original commit author.
tools/import_audit.py --modulesnow parses each shipped ELF module's undefined symbols andDT_NEEDEDentries. It classifies those imports against built libraries and sibling module exports, attributes records to the importing module, and reports needed libraries missing from both input sets. With no--modules, existing audit output stays unchanged.The
--modulesbehavior change and supported ELF format are documented indocs/user/USAGE.md. This is an independent tooling fix from open #4196, which changes alias parsing in two shared files. The two current PR heads combine without merge conflicts; a rebase may still be needed depending on merge order.Tested
Linux, Python 3:
python3 -m unittest tools.tests.test_import_audit tools.tests.test_nid_names: passed (24 tests).python3 -m unittest discover -s tools/tests -p 'test_*.py': passed (95 tests).tools/check_conventions.py --base upstream/main --head HEAD: passed.git diff --check upstream/main...HEAD: passed.This validates the diagnostic tool; no game run or native build was performed.
Checklist
main; no other open PR implements the same behaviorNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt (n/a).mdfiles or images added to the repositoryImported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-12T07:37:30Z.
Closing: a title's
sce_modulefiles have no section header table and their symbols carry a#lib#modsuffix, so with this the documented--modules source/sce_modulerun stops withELF file without a section header table is not supported. A module's own imports are already audited from itsapp.<module>.registry.json; reopen if a real module shows an import that misses.Pull request closed