fix(relinker): resolve LibreSSL import module aliases #13472
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/13472"
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:25:15Z.
What
Match the two observed LibreSSL import-module spellings to their declared dependencies:
libSceLibreSSl3tolibSceLibreSsl3.prx, andlibSceLibreSSLtolibSceLibreSsl.prx. Previously these imports lost their qualified dependency association because the names differ in case. Other names keep the existing matching rules; the two library versions remain distinct and ambiguous matches still fail.The first pairing is present in both version-labelled WebKit and curl images; the second is present in the 3.20-labelled inventory. Those labels do not authenticate firmware provenance. No title unblock is claimed.
This branch builds on #13143 and includes its commits; it must land after that PR and be rebased before merge.
Tested
Preserves the existing normalized-dependency match before trying the new alias; the guest-reader test includes a regression for a
-moduledependency.The mapping applies only in the observed direction; a regression case verifies that importing the physical provider name does not select the logical-name library. The updated macOS guest-reader test passes.
macOS x86-64: built the relinker-only
import_module_teststarget and ranimport_module, including a guest-image-reader fixture for the LibreSSL 3 spelling, both aliases, version separation and ambiguity rejection.A focused probe fails on the #13143 base and passes with this change. Conventions and diff whitespace checks pass.
The overlap checker could not compare shared CMake changes from the parent PR against #5021, #7173, #7531, #9793, #10792, #10861, #11628, #11661, #11689 and #11698 because those branches conflict with main. Their CMake diffs do not reference this test target. The overlap checklist is left 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 CnRJay on 2026-11-01T19:51:18Z.
Review: COMMENTED
Neutral note: this is the third of a chain (#13143 -> #13472 -> #13473 -> #13475 -> #13477 -> #13482 -> #13486), each carrying the previous PRs' commits and each editing the same
ImportModulelookup function with one more hard-coded name (libSceLibreSSl3,libSceLibreSSL). See my comment on #13143: this should be one general matching rule, not one PR per observed spelling.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-25T16:33:43Z.
Review: APPROVED
Reviewed — looks good
The changed code preserves normalized dependency matching, applies the two aliases only as fallback matches, and I found no defect in the reviewed changes.
What I ran
Reviewed head
6f88e5f7540bb4a1a0eda63ef0e2363bb1adcab8using the prepared review bundle and the pinned repository reader. I read every added line in both changed files and checked theImportModulecallers. I did not run tests or a build.Results
Findings
Blocking
None.
Non-blocking
None.
Sources
core/relinker/domain/include/domain/ImportModule.hppat head6f88e5f7540bb4a1a0eda63ef0e2363bb1adcab8core/relinker/relinker/tests/ImportModuleTests.cppat head6f88e5f7540bb4a1a0eda63ef0e2363bb1adcab8core/relinker/relinker/src/guest/GuestImageReader.cppandcore/relinker/relinker/src/pipeline/RelinkerPipeline.cppat the same headNot verified
I did not run the test target or build, and did not verify behavior on Linux, Windows, or a console. The manifest lists two changed files and both were read. The bundle’s
files.jsonwas not available through the reader, so additional exclusions beyond those described for the prepared diff were not verified.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T17:03:21Z.
Review: COMMENTED
The exact
import_moduleCTest passed in a Linux relinker-only build. The LibreSSL cases cover both spellings and check that a version-3 import stays distinct from the versionless provider.AI-assisted: yes.
Pull request closed