fix(relinker): match audio decoder import module to native provider #13475
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/13475"
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 kyon-eth on 2026-10-30T16:30:58Z.
What
Match imports qualified as
libSceAudiodecto their declaredlibSceAudiodec.native.prxdependency when no exactlibSceAudiodec.prxdependency is present. Exact dependencies still take precedence, unrelated versions remain distinct, and ambiguous alias matches fail.The two names occur together in both version-labelled inventories and their imported NIDs match the declared provider. The labels do not authenticate firmware provenance. No title unblock is claimed.
This branch builds on #13143, #13472 and #13473 and includes their commits. It must be rebased after those prerequisites land.
Tested
Preserves the existing normalized-dependency match before trying the new alias; the guest-reader test includes a regression for a
-moduledependency.The updated mapping is one-way: the observed logical name can match its declared provider, but an import of the provider name is not redirected back to the logical-name library. A regression test covers the reverse case.
macOS x86-64: built and ran relinker-only
import_module_tests, including the guest image reader, exact-dependency precedence, version separation and ambiguity rejection.A focused probe fails on the #13473 base and passes with this change. Conventions and diff whitespace checks pass.
The overlap checker could not compare the parent CMake changes with #5021, #7173, #7531, #9793, #10792, #10861, #11628, #11661, #11689 and #11698 because those branches conflict with main. Their CMake diffs do not reference the new test target. The overlap checklist remains unchecked pending complete comparison.
No Linux, Windows, console or title run; no full product build.
Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-25T20:29:13Z.
Review: COMMENTED
Reviewed — no blocking findings
The changed implementation and its regression tests were read at the exact head; no checks could be run in this review session.
What I ran
Head:
81c185c9aaf97cea758611039d054028ec7c143a. I read the prepared description, commit list, diff, manifest, and both changed files. No build, test, or other command was run. The author reports macOS x86-64 relinker tests and a focused probe; those results were not independently verified.Results
Findings
Blocking
None found in the code read.
Non-blocking
None.
Not verified
I did not run the build, tests, or focused probe. Linux, Windows, console, title behavior, full product build, and the overlap comparison described by the author were not verified. Both files listed as reviewed in the manifest were read; no changed files were excluded.
files.jsonwas not available through the review reader.To get this to a good state
Nothing is required. Optionally, run the reported checks on this head and complete the overlap comparison when the conflicting branches permit it.
Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T17:03:25Z.
Review: COMMENTED
The exact
import_moduleCTest passed in a Linux relinker-only build. The audio decoder cases check that guest import metadata resolves to the native provider when it is the matching dependency, and that the legacy provider takes priority when explicitly present.AI-assisted: yes.
Pull request closed