feat(libSceLibreSsl3): complete callable declarations and parent forwarding #12369

Merged
kyon-eth merged 9 commits from upstream-pr/12369 into main 2026-10-29 23:59:07 +00:00
kyon-eth commented 2026-10-28 11:22:50 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by kyon-eth on 2026-10-28T11:22:50Z.


What

Declare 183 missing callable exports: 57 identified names and 126 literal NID aliases. All 183 new entries unconditionally call NotImplemented_nid_no_patch; none is a new runtime implementation. Their signatures remain unverified placeholders. Add Windows forwarding for 395 existing libSceLibreSsl providers through ABI-transparent IAT tail jumps, preserving argument registers, stack and return path. Other hosts retain dependency lookup. This accounts for the 665 callable NIDs as 87 existing direct entries, 395 parent providers and 183 new declarations. Forwarding retains the parent implementations and their existing limitations.

These declarations improve import discovery only; calling an unsupported entry still throws. No implemented-coverage increase or title unblock is claimed.

Tested

Review fix (2026-10-28), 99e59a3d00: removed all 395 raw .drectve strings. The existing APS5_EXPORT global aliases are sufficient for MinGW automatic DLL exports. Forwarding instruction bytes are unchanged. Clang-generated COFF linked through LLVM's GNU-style PE driver retains all 395 NID aliases and parent imports after production patching. GNU MinGW ld and Windows execution are not available locally; the reviewer's actual-MinGW reproduction established the directive-free control, and a rerun is requested on this head.

  • Based on main 3a40945e62.
  • macOS x86-64: the added production declaration component compiles and links with warnings treated as errors. Its production-patched export trie contains all 183 selected NIDs. This is component verification, not a full product or title run.
  • Static COFF inspection verifies all 395 parent IAT imports, literal NID exports and indirect tail jumps through the production NID patcher. This is binary-format verification, not Windows execution.
  • Public-header uniqueness/umbrella audit, conventions, whitespace and privacy checks pass.
  • Refreshed all-open-PR scan plus target/actual-parent NID checks: no selected-export duplicates. No duplicate missing exports or competing new forwarders. Debt-file edits intersect pending work; these documentation conflicts require reconciliation before landing. This PR has no implementation dependency on that work.
  • No Linux/Windows runtime, console, title execution, performance improvement or game unblock is claimed.
  • Confirmed shared-file conflicts: #12315, #10960, #10493, #10491, #10490, #10452.
  • Stale comparisons requiring landing-time review: #9970.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none; shared-file reconciliation noted above
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes

Refreshed Windows gate

The hosted Windows check passes for corrected head 99e59a3d00. The reviewer also recompiled and linked that exact directive-free source with the repository MinGW toolchain and confirmed the alias export. These resolve the reported linker defect; no Windows runtime behavior is claimed.

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5049641593 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12369). Originally posted by [kyon-eth](https://github.com/kyon-eth) on 2026-10-28T11:22:50Z. --- ### What Declare 183 missing callable exports: 57 identified names and 126 literal NID aliases. All 183 new entries unconditionally call `NotImplemented_nid_no_patch`; none is a new runtime implementation. Their signatures remain unverified placeholders. Add Windows forwarding for 395 existing `libSceLibreSsl` providers through ABI-transparent IAT tail jumps, preserving argument registers, stack and return path. Other hosts retain dependency lookup. This accounts for the 665 callable NIDs as 87 existing direct entries, 395 parent providers and 183 new declarations. Forwarding retains the parent implementations and their existing limitations. These declarations improve import discovery only; calling an unsupported entry still throws. No implemented-coverage increase or title unblock is claimed. ### Tested Review fix (2026-10-28), `99e59a3d00`: removed all 395 raw `.drectve` strings. The existing `APS5_EXPORT` global aliases are sufficient for MinGW automatic DLL exports. Forwarding instruction bytes are unchanged. Clang-generated COFF linked through LLVM's GNU-style PE driver retains all 395 NID aliases and parent imports after production patching. GNU MinGW ld and Windows execution are not available locally; the reviewer's actual-MinGW reproduction established the directive-free control, and a rerun is requested on this head. - Based on main `3a40945e62`. - macOS x86-64: the added production declaration component compiles and links with warnings treated as errors. Its production-patched export trie contains all 183 selected NIDs. This is component verification, not a full product or title run. - Static COFF inspection verifies all 395 parent IAT imports, literal NID exports and indirect tail jumps through the production NID patcher. This is binary-format verification, not Windows execution. - Public-header uniqueness/umbrella audit, conventions, whitespace and privacy checks pass. - Refreshed all-open-PR scan plus target/actual-parent NID checks: no selected-export duplicates. No duplicate missing exports or competing new forwarders. Debt-file edits intersect pending work; these documentation conflicts require reconciliation before landing. This PR has no implementation dependency on that work. - No Linux/Windows runtime, console, title execution, performance improvement or game unblock is claimed. - Confirmed shared-file conflicts: #12315, #10960, #10493, #10491, #10490, #10452. - Stale comparisons requiring landing-time review: #9970. <!-- OS, title or homebrew, what was checked. "Not tested" is a valid answer. A performance change: the summary lines of main and of this PR from the same machine and scene, with the traces attached, captured as the Performance report issue form describes. --> ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none; shared-file reconciliation noted above - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes ### Refreshed Windows gate The hosted [Windows check](https://github.com/boykopovar/AnyPS5/actions/runs/40681699626/job/122795952647) passes for corrected head `99e59a3d00`. The reviewer also recompiled and linked that exact directive-free source with the repository MinGW toolchain and confirmed the alias export. These resolve the reported linker defect; no Windows runtime behavior is claimed.
MarcZX10 commented 2026-10-28 11:29:46 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-28T11:29:46Z.

Review: COMMENTED


I compiled both AdditionalExports.cpp and ParentExports.cpp from exact head 4f5fec1a with MinGW GCC (-std=c++20 -Wall -Wextra -Werror); both passed. Object inspection confirms the first NID alias and IAT tail-jump symbols are emitted. Exact-head conventions, intake and eligibility pass; Windows CI is still running, and this is not a full DLL link or runtime test, so I have not approved.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5681898712 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12369#pullrequestreview-5681898712). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-28T11:29:46Z. **Review:** COMMENTED --- I compiled both `AdditionalExports.cpp` and `ParentExports.cpp` from exact head `4f5fec1a` with MinGW GCC (`-std=c++20 -Wall -Wextra -Werror`); both passed. Object inspection confirms the first NID alias and IAT tail-jump symbols are emitted. Exact-head conventions, intake and eligibility pass; Windows CI is still running, and this is not a full DLL link or runtime test, so I have not approved.
MarcZX10 commented 2026-10-28 11:31:56 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-28T11:31:56Z.

Review: CHANGES_REQUESTED


Blocking Windows link failure in ParentExports.cpp. I compiled the exact-head file to COFF with the repo MinGW GCC toolchain, then linked it against a temporary import library containing the 395 referenced parent symbols. The link fails while processing the generated .drectve exports (unrecognized directives and cannot export errors for the NID names, including names containing +/-). As a control, I removed only the object’s .drectve section and repeated the same link: it succeeded, and the output DLL contains +MuYdJPypkE_nid_no_patch_cut. The existing APS5_EXPORT alias emits the required COFF symbol; the added raw .drectve strings are not accepted by the MinGW linker used by the Windows CI. Please make the directives toolchain-correct or limit them to the linker that needs them, then rerun the Windows link/build. The current Windows hosted job is still running, but the local exact-source link failure is reproducible.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5681921888 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12369#pullrequestreview-5681921888). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-28T11:31:56Z. **Review:** CHANGES_REQUESTED --- Blocking Windows link failure in `ParentExports.cpp`. I compiled the exact-head file to COFF with the repo MinGW GCC toolchain, then linked it against a temporary import library containing the 395 referenced parent symbols. The link fails while processing the generated `.drectve` exports (unrecognized directives and `cannot export` errors for the NID names, including names containing `+`/`-`). As a control, I removed only the object’s `.drectve` section and repeated the same link: it succeeded, and the output DLL contains `+MuYdJPypkE_nid_no_patch_cut`. The existing `APS5_EXPORT` alias emits the required COFF symbol; the added raw `.drectve` strings are not accepted by the MinGW linker used by the Windows CI. Please make the directives toolchain-correct or limit them to the linker that needs them, then rerun the Windows link/build. The current Windows hosted job is still running, but the local exact-source link failure is reproducible.
MarcZX10 commented 2026-10-28 11:44:03 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-28T11:44:03Z.

Review: COMMENTED


Rechecked the exact new head 99e59a3d00dfce6333abd2c0e8cef2592ec455f6. The only code change from the failing head removes the 395 raw .drectve strings and retains the existing APS5_EXPORT aliases. I recompiled ParentExports.cpp with the repository MinGW GCC (-std=c++20 -Wall -Wextra -Werror), linked it with the same temporary import-only parent library, and inspected the resulting DLL: the link now succeeds and +MuYdJPypkE_nid_no_patch_cut is present. This reproduces the prior control against the corrected exact source and resolves my linker blocker. Refreshed conventions, eligibility, labels/report and the hosted Windows build are still pending, so this is a COMMENTED re-review rather than approval.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5682051051 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12369#pullrequestreview-5682051051). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-28T11:44:03Z. **Review:** COMMENTED --- Rechecked the exact new head `99e59a3d00dfce6333abd2c0e8cef2592ec455f6`. The only code change from the failing head removes the 395 raw `.drectve` strings and retains the existing `APS5_EXPORT` aliases. I recompiled `ParentExports.cpp` with the repository MinGW GCC (`-std=c++20 -Wall -Wextra -Werror`), linked it with the same temporary import-only parent library, and inspected the resulting DLL: the link now succeeds and `+MuYdJPypkE_nid_no_patch_cut` is present. This reproduces the prior control against the corrected exact source and resolves my linker blocker. Refreshed conventions, eligibility, labels/report and the hosted Windows build are still pending, so this is a COMMENTED re-review rather than approval.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!12369
No description provided.