fix(tools): audit bundled module imports #4208
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/4208"
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-12T01:24:46Z.
What
When
--modulesis supplied, discover the relinker's module registry sidecars and audit those imports against built libraries and bundled module exports. Main executable imports that name a bundled module retain the existing module classification; imports originating inside a module are checked, including imports naming a sibling module. Fail with a clear error when a sidecar or converted module artifact is missing. Parse dynamic exports from sectionless ELF module outputs, and document the workflow.Tested
python3 -m unittest tools.tests.test_import_audit— 38 tests passed on Linux.python3 tools/check_conventions.py --base upstream/main --head HEAD— passed.git diff --check— passed.Checklist
upstream/main.Limitations
Sectionless dynamic export parsing currently expects the SysV
DT_HASHtable emitted by the relinker. The audit must run beside the relinker output so it can locateapp0/converted modules.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-12T01:44:02Z.
The duplicate implementation appears in issue #4202: LeandroSSB posted commit
7ddd00a57implementing module ELF import parsing, sibling exports, and regression coverage. The PR implementation adds relinker sidecar discovery and sectionless converted ELF exports beyond that issue comment, so could you clarify whether those additional workflows are needed to address the original report? In the meantime, I will close this PR to avoid competing implementations.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-12T01:44:03Z.
Closing as duplicate of the implementation posted in #4202 by LeandroSSB. That implementation also addresses module import auditing and its regression tests.
Pull request closed