Skip to content

feat(libc): expose 345 read-only runtime data exports - #225

Draft
Thimo188 wants to merge 12 commits into
mainfrom
upstream-pr/13449
Draft

Thimo188 wants to merge 12 commits into
mainfrom
upstream-pr/13449

Conversation

@Thimo188

@Thimo188 Thimo188 commented Dec 2, 2026 •

Copy link
Copy Markdown
Owner

Imported from boykopovar/AnyPS5#13449, originally opened by kyon-eth.

Source commit: c467f9efa50ca05dfd3145e10deec321a82c5289. The import branch preserves this fetched upstream PR snapshot. The description and validation below are copied from upstream; no new code changes or test runs were made for this import. Original reviews, discussions, and attachments remain at the linked upstream PR.


What

Expose 345 read-only runtime data objects through libc: 146 RTTI type-name strings, six aliases to existing compiler-generated RTTI strings, 128 numeric-limit constants, 20 one-byte placeholder objects, and 45 additional floating-point, locale and standard-library constants. Each NID hashes from its corresponding public name. The strings, constant bytes, object sizes and distinct addresses match both version-labelled images; their labels do not authenticate retail firmware provenance.

The RTTI entries are name strings only; the change does not implement the corresponding type-info objects. Cross-module type-info identity, the relationship between these strings and runtime-generated RTTI objects, the numeric constants’, placeholders’ and other constants’ underlying types and title behavior are unverified. The loader's libSceLibcInternal to libc data fallback was checked with a separate macOS guest-import fixture using synthetic providers. No game unblock is claimed.

The six RTTI aliases point to existing compiler-emitted objects, preserving their storage identity in the tested macOS build. Linux and Windows alias emission remains unverified. This branch includes and depends on boykopovar#13452, which teaches the public-header audit to accept data alias declarations.

The writable locale guard and facet-ID objects are excluded. Two inspected facet-ID paths in both version-labelled images assign IDs under a lock and register facets during classic-locale initialization; the current implementation has an incomplete classic facet table. The remaining paths and runtime lifecycle have not been verified.

Tested

Checklist

  • Based on current main; no other open PR implements the same functions (the scanner cannot compare the branches listed above)
  • 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: fix(tests): recognize data alias header declarations boykopovar/AnyPS5#13452
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes

@coderabbitai

coderabbitai Bot commented Dec 3, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants