refactor(prx): name 191 more LibreSsl3 parent-export aliases the NID databases resolve #17303
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/17303"
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 dkdhanda8 on 2026-11-08T17:28:25Z.
What
The remaining 187 of the 387 parent-library aliases that
libSceLibreSsl3'sParentExports.cppforwards on Windows resolve in the pinned public symbol databases and are renamed from theirlibreSsl3Forward_*placeholder names to their real export names. This is the second half of the same rename series as #17299; the branch is stacked on it, and each half touches disjoint lines ofParentExports.cpp.Every resolved name was verified by reproducing its NID with
tools/nid_names.py'scompute_nidand matching it against aerolib.csv and the ps5rs catalog. The 14 exports currently touched by other open PRs are left untouched, andsceLibreSslInitEx,sceLibreSslInitEx2,sceLibreSslTermandsceLibreSslGetMemoryPoolStatskeep their forwarding aliases because those names are already exported by the parentlibSceLibreSsl. No behavior changes; the IAT tail-jump forwarding bodies are byte-identical.Tested
tools/check_conventions.py --base origin/mainpasses;git diff --checkis clean.-fsyntax-only(MinGW g++ 15); this environment cannot link standalone throw-using objects or build the full CMake tree, so test/CI execution is deferred to the project's rig.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); no silent stubs added.mdfiles or images added to the repository (attach them to this PR)Summary by CodeRabbit
Imported from boykopovar/AnyPS5. Originally posted by gabichuuuuu on 2026-11-08T19:20:36Z.
Review: COMMENTED
Windows build of this head merged onto
main9fabd4aa7e, in one tree with the other open NID-naming PRs in this series (#17271, #17254, #17297, #17298 and #17303, which contains #17299); all merged cleanly. Setup: Windows 11, WinLibs GCC 15.2, Release,BUILD_TESTING=ON.guest_hmd2*,guest_user_service*,guest_icu*,guest_nkwebkit_requirements*andguest_libre_ssl*tests pass.tools/nid_names.py's own rules:APS5_EXPORTliterals, pluscompute_nidof eachAPS5_VABI, assembly and data definition that isn't_nid_no_patch. The set is identical tomain's, with no NID defined twice.ParentExports.cppforwards are renamed. Each new assembly name equals the stem of the__imp_<name>_nid_postfixit jumps to, and the multiset of jump targets is unchanged frommain. The 11 that keep alibreSsl3Forward_*placeholder aresceLibreSslInit,sceLibreSslInitEx,sceLibreSslInitEx2,sceLibreSslTerm,sceLibreSslGetMemoryPoolStats,UI_get_input_flags,EVP_aes_128_gcm,EVP_aes_128_ctr,BN_print,SSL_CTX_use_PrivateKey_ASN1andSSL_CTX_set_alpn_select_cb.objdump -pon the builtlibSceLibreSsl3.prxlistsSSL_shutdownand no longerlibreSsl3Forward_SSL_shutdown_nid_no_patch.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-17T16:10:09Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this; the points below are optional.
What I ran
64574ab80024aa2ef7b5f293a644ee5b48f499cd, basemain. Read the PR description, the commit list, the manifest and the fulldiff.patch(1566 lines) covering all three reviewed files.Commands
Diff counts were taken with Grep on
diff.patch. One inline NID recomputation was refused by the approval gate.ParentExports.cppat head was read only by search and its first six lines. Excluded by rule: none.Results
libreSsl3Forward_check_conventions.py --base origin/main-fsyntax-onlyFindings
Blocking
None.
Non-blocking
docs/dev/debt/changes/libressl3-20171-inventory.md:25says 386 exports, 375 resolved. The diff agrees with the totals: 375 renamed plus 11 unchangedAPS5_EXPORTforwarders make 386. The title says "name 191 more", the body says "remaining 187", and the first commit subject says "name 190". The diff againstmaincovers all 375 renames, so it includes the earlier half and is not only the second. Make the title and body state the count this PR changes.Not verified
tools/export_gap.pytreats it. The description says each was checked withcompute_nidagainst the pinned databases; I did not reproduce it. If one NID changed, imports by that NID would fail silently.libSceLibreSsl3, would fail at link time. Not checked; no build.sceLibreSsl*names are unchanged here:UI_get_input_flags,EVP_aes_128_gcm,BN_print,EVP_aes_128_ctr,SSL_CTX_use_PrivateKey_ASN1,SSL_CTX_set_alpn_select_cb. Whether the other eight are among the 375 renames needs those PRs.check_conventions.py --base origin/main, which the description reports as passing. Not run.To get this to a good state
Nothing is required.
Optional:
Sources
APS5_EXPORTdefines a<NID>_nid_no_patch_cutaliascompute_nidis SHA-1 over the name plus a fixed suffixImported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-20T17:18:02Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this naming refactor; the changed forwarding bodies preserve their IAT tail jumps, and I found no concrete defect in the inspected changes.
What I ran
Read the prepared diff and changed files at head
1c46c5c1621353cad70a368de8a9b0dc5341f515. No commands or tests were run; the description reports convention checks and syntax-only compilation, which I did not verify.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
core/libs/prx/libSceLibreSsl3/ParentExports.cppanddocs/dev/debt/libSceLibreSsl3.mdwere read. No files were excluded byfiles.json; that document was not available through the review reader, so its exclusions could not be checked directly. The complete 791-line source file was not read, and the NID database matches, all aliases, Windows loading/runtime behavior, and the reported checks were not independently verified.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-22T14:53:41Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this change; the optional point below is informational.
What I ran
Reviewed head
c841996ecab72d114bca54630cb65e9c646f7c2fagainst the prepared diff. No commands or tests were run.Results
Findings
Blocking
None.
Non-blocking
docs/dev/debt/libSceLibreSsl3.md:65). Consider updating the older entry or consolidating the two so the debt summary has one current count.Not verified
No tests, build, Windows loading, or runtime behavior were verified. The description reports convention and syntax checks, but these were not run in this review. Read the changed lines in
core/libs/prx/libSceLibreSsl3/ParentExports.cppanddocs/dev/debt/libSceLibreSsl3.md; no files were excluded according to the changed-file listing.To get this to a good state
Nothing is required. The debt-entry consolidation is optional.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-22T15:09:04Z.
Review: DISMISSED
Reviewed — changes requested
Changes are required before merge: restore the NID export aliases for the renamed Windows parent forwarders.
What I ran
Reviewed head
746b6521cf7a7a4967e2ed0d685eb099bbe5a9d9usingrepo_read.pyreader tools. I ran no build or tests; the author reports convention, syntax-only, and diff checks, which I did not independently run.Results
Findings
Blocking
APS5_EXPORTforASN1_TIME_printis removed and replaced by a plain assembly function symbol atcore/libs/prx/libSceLibreSsl3/ParentExports.cpp:11.APS5_ASM_FUNCTIONonly declares a COFF function symbol;APS5_EXPORTis what emits the<NID>_nid_no_patch_cutexport alias. Without those aliases, callers resolving parent exports by NID cannot resolve these renamed entries. Restore anAPS5_EXPORTfor each renamed forwarder using its resolved name’s NID. Pinned source · Export macro · Assembly macroNon-blocking
None.
Not verified
I read the complete changed
ParentExports.cppanddocs/dev/debt/libSceLibreSsl3.md, plus the relevant export and assembly macros. Both changed files were listed as included; no changed file was reported excluded. I did not independently validate every claimed NID against the external databases, inspect a linked Windows PRX, or run the reported checks. The prepared bundle did not exposefiles.jsonthrough the reader.To get this to a good state
Restore the NID export aliases for all renamed parent forwarders, then verify the Windows export table and rerun the relevant build and convention checks.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-22T19:36:51Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing in the inspected export renames indicates a forwarding behavior change; the review is incomplete for the required approval criteria because the full changed file was not read.
What I ran
da856b837755d7bd33e2684d3dbfdf6daad0d061from the prepared bundle.description.md,commits.md,manifest.json,diff.patch, and the changedParentExports.cppat lines 1–45 and 1110–1152 usingrepo_read.py.Results
Findings
Blocking
None verified in the inspected ranges.
Non-blocking
None.
Not verified
ParentExports.cppwere not read; therefore the full set of renames, NID/name matches, duplicate exports, and forwarding bodies was not verified.files.jsonwas not available as a review-folder document; the reader’s listing identifiedParentExports.cppas the sole changed file.To get this to a good state
Nothing is required. Optional: complete review of the remaining changed lines and run the project checks before merging.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-28T14:41:14Z.
Review: APPROVED
Reviewed — looks good
The reviewed change consistently replaces placeholder aliases with resolved export names while preserving the NIDs and tail-jump targets; the full reviewable diff contains only this file.
What I ran
f100e2d30fa492bf234fd070672bca7ef5c2d86e; base ismain.description.md,commits.md,manifest.json,diff.patch, and the changedcore/libs/prx/libSceLibreSsl3/ParentExports.cpp(lines 1–30). The manifest shows that file is included; no files are excluded.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
ParentExports.cppwere not read line by line. The supplied diff shows consistent name substitutions; a full compile and runtime forwarding behavior were not verified.To get this to a good state
Nothing is required.