feat(libSceLibcInternal): return from eleven runtime hooks as firmware 13.42 does #15588

Merged
BunnyFl merged 13 commits from upstream-pr/15588 into main 2026-11-08 02:57:45 +00:00
BunnyFl commented 2026-11-03 20:44:36 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by BunnyFl on 2026-11-03T20:44:36Z.


What

Eleven libSceLibcInternal runtime hooks threw. In firmware 13.42 each one returns at once, reading none of its arguments, and this change does the same:

Export NID Prototype Returns
_init_tls 6NCOqr3cD74 void (void), FreeBSD 11.4 lib/libc/gen/tls.c:423 nothing
_thread_init PJW+-O4pj6I void (void), weak alias of _thread_init_stub (lib/libc/gen/_thread_init.c:34) nothing
_thread_init_stub 1kIpmZX1jw8 void (void), _thread_init.c:41 nothing
_rtld_atfork_pre i-7v8+UGglc void (int* locks), libexec/rtld-elf/rtld_lock.c:373 nothing
_rtld_atfork_post R2QKo3hBLkw void (int* locks), rtld_lock.c:397 nothing
_rtld_error dmHEVUqDYGw void (const char* format, ...), libexec/rtld-elf/rtld.c:876 nothing
_rtld_get_stack_prot AdYYKgtPlqg int (void), rtld.c:5307 7
_rtld_addr_phdr 5FoE+V3Aj0c int (const void*, struct dl_phdr_info*), rtld.c:3632 0
_malloc_thread_cleanup Sopthb9ztZI void (void), contrib/jemalloc/src/tsd.c:40 nothing
_malloc_finalize_lv2 RnqlvEmvkdw no public prototype 0 in all of rax
_sceLibcGetMallocParam 1nZ4Xfnyp38 no public prototype 0 in all of rax

Names and NIDs match tools/nid_names.py. The prototypes are the FreeBSD 11.4 definitions at the lines given (release/11.4.0). _malloc_finalize_lv2 and _sceLibcGetMallocParam have none. They return std::uint64_t 0: the firmware's xor %eax,%eax at 0xe7e0 and 0x12b10 clears all of rax, and a 64-bit 0 matches that for any integer or pointer return type. The debt entry says the type is unverified.

  • The exports keep their helper names in core/libs/prx/libSceLibcInternal/InventoryExports.cpp (6) and InventoryExports6.cpp (5). The six keep their one declaration in include/InventoryExports.hpp, changed to match. The five get one each in include/Api.hpp.
  • docs/dev/debt/libSceLibcInternal.md:
    • The five per-function "signature and behavior are unverified" entries for InventoryExports6.cpp are removed: their gaps are closed.
    • A new short entry covers the six from InventoryExports.cpp and the two unverified return types.

Source

Firmware 13.42 system/common/lib/libSceLibcInternal.sprx (sha256 a01795ab49df639dd40abd6194956ada062244826824ce486c9acab227bf5285), read from disassembly, not run on a console. Each body, to its return:

d5430: ret                    ; _init_tls
427f0: ret                    ; _thread_init, _thread_init_stub
8d490: ret                    ; _rtld_atfork_pre
8d4a0: ret                    ; _rtld_atfork_post
8d330: ret                    ; _rtld_error
8d4c0: mov $0x7,%eax          ; _rtld_get_stack_prot
8d4c5: ret
8d4b0: xor %eax,%eax          ; _rtld_addr_phdr
8d4b2: ret
13f10: ret                    ; _malloc_thread_cleanup
e7e0: xor %eax,%eax           ; _malloc_finalize_lv2
e7e2: ret
12b10: xor %eax,%eax          ; _sceLibcGetMallocParam
12b12: ret

No argument is read and nothing is written; the ret only returns to the caller. A null or invalid pointer is never dereferenced, here or in firmware.

Tested

  • Merged #15584's new head b85d7c5df4 (which carries main cdf371df68) into the branch; the head is now 699de01970. It conflicted in two places, both neighbours: main registered its guest_libc_internal_memory_resource test in core/libs/prx/libSceLibcInternal/CMakeLists.txt where this branch registers guest_libc_internal_runtime_hooks (both are kept), and main removed the _ZNSt8ios_baseD1Ev debt entry next to this branch's removed _malloc_thread_cleanup entry (both stay removed). On top of #15584 the branch still changes the same 7 files with only its own eleven hooks, their test and their debt entries.
    • On 699de01970, Windows 11 Pro 10.0.26300, WinLibs GCC, Release: 81 of 81 pass, none Not Run, with the test executables rebuilt: the 16 guest_libc_internal_* and guest_err tests registered at this head, public_headers and the 64 public_headers_compile_* batches.
    • The branch's own lines are unchanged, so the negative control below was not repeated.
    • tools/check_conventions.py --base upstream/main on the committed head 699de01970: all checks pass.
  • Windows 11 Pro 10.0.26300, WinLibs GCC, Release, head a5de116566 (main b96af01beb merged in): 76 of 76 pass, none Not Run, with the 11 test executables built at this head. That is the 11 guest_libc_internal_* and guest_err tests registered at this head (the new guest_libc_internal_runtime_hooks and #15584's guest_libc_internal_empty_facet_members included), public_headers and the 64 public_headers_compile_* batches.
  • New core/libs/tests/GuestLibcInternalRuntimeHooks.cpp (registered after guest_err_tests in core/libs/prx/libSceLibcInternal/CMakeLists.txt):
    • It calls all eleven and checks the three return values.
    • It checks that a lock array passed to both atfork hooks, and a dl_phdr_info stand-in passed to _rtld_addr_phdr, are unchanged.
  • Negative control at this head: I put NotImplemented_nid_no_patch(__func__) back at the top of the six bodies in InventoryExports.cpp, which is main's behaviour, and kept this branch's signatures and test. The new test then aborts with libSceLibcInternalInventory_268_nid_no_patch not implemented (1 of 1 failed).
  • tools/check_conventions.py --base upstream/main on the committed head a5de116566: all checks pass.
  • The merge of main b96af01beb conflicted where main had implemented __vfprintf (yAZ5vOpmBus) in Format.cpp, next to this branch's _268 and _269: its InventoryExports.cpp placeholder, export line and declaration go. InventoryExports.cpp now has 287 APS5_EXPORT lines, as on main.
  • tools/pr_overlap.py --branch feat/libcinternal-runtime-hook-returns --jobs 8 at this head, against 1,867 open pull requests: 48 share files or exports with the branch, and the run failed closed. It lists 10 with line conflicts (#13881, #14664, #14796, #14836, #14903, #15582, #15852, #16004, #16009, #16356) and 6 more in its "Some comparisons could not be completed" table, which it does not compare line by line. I searched the added and removed lines of all 16 for the eleven helper and hook names and their NIDs: GitHub's diff for 15 of them, and for #5021, whose diff is too large for GitHub to serve, a local diff of its head against its merge base with main (324 files). None of them names any of the eleven.
  • Linux and macOS were not built or run. No title was run.

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: #15584 (this branch is stacked on it; both edit the same debt entry)
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5144243298 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/15588). Originally posted by [BunnyFl](https://github.com/BunnyFl) on 2026-11-03T20:44:36Z. --- ### What Eleven libSceLibcInternal runtime hooks threw. In firmware 13.42 each one returns at once, reading none of its arguments, and this change does the same: | Export | NID | Prototype | Returns | |---|---|---|---| | `_init_tls` | `6NCOqr3cD74` | `void (void)`, FreeBSD 11.4 `lib/libc/gen/tls.c:423` | nothing | | `_thread_init` | `PJW+-O4pj6I` | `void (void)`, weak alias of `_thread_init_stub` (`lib/libc/gen/_thread_init.c:34`) | nothing | | `_thread_init_stub` | `1kIpmZX1jw8` | `void (void)`, `_thread_init.c:41` | nothing | | `_rtld_atfork_pre` | `i-7v8+UGglc` | `void (int* locks)`, `libexec/rtld-elf/rtld_lock.c:373` | nothing | | `_rtld_atfork_post` | `R2QKo3hBLkw` | `void (int* locks)`, `rtld_lock.c:397` | nothing | | `_rtld_error` | `dmHEVUqDYGw` | `void (const char* format, ...)`, `libexec/rtld-elf/rtld.c:876` | nothing | | `_rtld_get_stack_prot` | `AdYYKgtPlqg` | `int (void)`, `rtld.c:5307` | `7` | | `_rtld_addr_phdr` | `5FoE+V3Aj0c` | `int (const void*, struct dl_phdr_info*)`, `rtld.c:3632` | `0` | | `_malloc_thread_cleanup` | `Sopthb9ztZI` | `void (void)`, `contrib/jemalloc/src/tsd.c:40` | nothing | | `_malloc_finalize_lv2` | `RnqlvEmvkdw` | no public prototype | `0` in all of `rax` | | `_sceLibcGetMallocParam` | `1nZ4Xfnyp38` | no public prototype | `0` in all of `rax` | Names and NIDs match `tools/nid_names.py`. The prototypes are the FreeBSD 11.4 definitions at the lines given (release/11.4.0). `_malloc_finalize_lv2` and `_sceLibcGetMallocParam` have none. They return `std::uint64_t` 0: the firmware's `xor %eax,%eax` at `0xe7e0` and `0x12b10` clears all of `rax`, and a 64-bit 0 matches that for any integer or pointer return type. The debt entry says the type is unverified. - The exports keep their helper names in `core/libs/prx/libSceLibcInternal/InventoryExports.cpp` (6) and `InventoryExports6.cpp` (5). The six keep their one declaration in `include/InventoryExports.hpp`, changed to match. The five get one each in `include/Api.hpp`. - `docs/dev/debt/libSceLibcInternal.md`: - The five per-function "signature and behavior are unverified" entries for `InventoryExports6.cpp` are removed: their gaps are closed. - A new short entry covers the six from `InventoryExports.cpp` and the two unverified return types. ### Source Firmware 13.42 `system/common/lib/libSceLibcInternal.sprx` (sha256 `a01795ab49df639dd40abd6194956ada062244826824ce486c9acab227bf5285`), read from disassembly, not run on a console. Each body, to its return: ``` d5430: ret ; _init_tls 427f0: ret ; _thread_init, _thread_init_stub 8d490: ret ; _rtld_atfork_pre 8d4a0: ret ; _rtld_atfork_post 8d330: ret ; _rtld_error 8d4c0: mov $0x7,%eax ; _rtld_get_stack_prot 8d4c5: ret 8d4b0: xor %eax,%eax ; _rtld_addr_phdr 8d4b2: ret 13f10: ret ; _malloc_thread_cleanup e7e0: xor %eax,%eax ; _malloc_finalize_lv2 e7e2: ret 12b10: xor %eax,%eax ; _sceLibcGetMallocParam 12b12: ret ``` No argument is read and nothing is written; the `ret` only returns to the caller. A null or invalid pointer is never dereferenced, here or in firmware. ### Tested <!-- 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. --> - Merged #15584's new head `b85d7c5df4` (which carries `main` `cdf371df68`) into the branch; the head is now `699de01970`. It conflicted in two places, both neighbours: `main` registered its `guest_libc_internal_memory_resource` test in `core/libs/prx/libSceLibcInternal/CMakeLists.txt` where this branch registers `guest_libc_internal_runtime_hooks` (both are kept), and `main` removed the `_ZNSt8ios_baseD1Ev` debt entry next to this branch's removed `_malloc_thread_cleanup` entry (both stay removed). On top of #15584 the branch still changes the same 7 files with only its own eleven hooks, their test and their debt entries. - On `699de01970`, Windows 11 Pro 10.0.26300, WinLibs GCC, Release: **81 of 81 pass, none Not Run**, with the test executables rebuilt: the 16 `guest_libc_internal_*` and `guest_err` tests registered at this head, `public_headers` and the 64 `public_headers_compile_*` batches. - The branch's own lines are unchanged, so the negative control below was not repeated. - `tools/check_conventions.py --base upstream/main` on the committed head `699de01970`: all checks pass. - Windows 11 Pro 10.0.26300, WinLibs GCC, Release, head `a5de116566` (`main` `b96af01beb` merged in): **76 of 76 pass, none Not Run**, with the 11 test executables built at this head. That is the 11 `guest_libc_internal_*` and `guest_err` tests registered at this head (the new `guest_libc_internal_runtime_hooks` and #15584's `guest_libc_internal_empty_facet_members` included), `public_headers` and the 64 `public_headers_compile_*` batches. - New `core/libs/tests/GuestLibcInternalRuntimeHooks.cpp` (registered after `guest_err_tests` in `core/libs/prx/libSceLibcInternal/CMakeLists.txt`): - It calls all eleven and checks the three return values. - It checks that a lock array passed to both atfork hooks, and a `dl_phdr_info` stand-in passed to `_rtld_addr_phdr`, are unchanged. - **Negative control** at this head: I put `NotImplemented_nid_no_patch(__func__)` back at the top of the six bodies in `InventoryExports.cpp`, which is `main`'s behaviour, and kept this branch's signatures and test. The new test then aborts with `libSceLibcInternalInventory_268_nid_no_patch not implemented` (1 of 1 failed). - `tools/check_conventions.py --base upstream/main` on the committed head `a5de116566`: all checks pass. - The merge of `main` `b96af01beb` conflicted where `main` had implemented `__vfprintf` (`yAZ5vOpmBus`) in `Format.cpp`, next to this branch's `_268` and `_269`: its `InventoryExports.cpp` placeholder, export line and declaration go. `InventoryExports.cpp` now has 287 `APS5_EXPORT` lines, as on `main`. - `tools/pr_overlap.py --branch feat/libcinternal-runtime-hook-returns --jobs 8` at this head, against 1,867 open pull requests: 48 share files or exports with the branch, and the run failed closed. It lists 10 with line conflicts (#13881, #14664, #14796, #14836, #14903, #15582, #15852, #16004, #16009, #16356) and 6 more in its "Some comparisons could not be completed" table, which it does not compare line by line. I searched the added and removed lines of all 16 for the eleven helper and hook names and their NIDs: GitHub's diff for 15 of them, and for #5021, whose diff is too large for GitHub to serve, a local diff of its head against its merge base with `main` (324 files). None of them names any of the eleven. - Linux and macOS were not built or run. No title was run. ### 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: #15584 (this branch is stacked on it; both edit the same debt entry) - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes 🤖 Generated with [Claude Code](https://claude.com/claude-code)
XairRrR commented 2026-11-03 20:57:39 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by XairRrR on 2026-11-03T20:57:39Z.

Review: APPROVED


Reviewed — approved

The 11 libSceLibcInternal runtime hooks now return as the firmware 13.42 disassembly in the description shows, instead of throwing. Because this PR is stacked on #15584, the same diff also brings in that PR's 52 empty facet members. Checks, build and focused tests pass, and both new tests fail when the throws are put back.

What I ran

Head db4caa09b797b052b8a7371cd08aca73a05a5d8a, main 086c0686c8adff3ee648fdbe34e0b0b647e1d511, merged with --no-ff into tree 19ef719b472de20ee17591c54606b5aa67224155. Debian 13 VM, GCC 14.2.0, Release, Ninja.

git diff --check 086c0686c8adff3ee648fdbe34e0b0b647e1d511...db4caa09b797b052b8a7371cd08aca73a05a5d8a
python3 tools/check_conventions.py --base 086c0686c8adff3ee648fdbe34e0b0b647e1d511
ctest --test-dir build -j8 --test-load 32 --output-on-failure -R "^(guest_libc_internal_runtime_hooks|guest_libc_internal_empty_facet_members|guest_err|public_headers)$"
# negative control (see below)
ninja -C build -j32 -l32 guest_libc_internal_runtime_hooks_tests guest_libc_internal_empty_facet_members_tests
ctest --test-dir build --output-on-failure -R "^(guest_libc_internal_runtime_hooks|guest_libc_internal_empty_facet_members)$"
git status --porcelain

I also mapped each changed NID to its name in the debt table, to check that every signature fits its mangled name. D1, D2 and _Tidy take void* self. _Init(const _Locinfo&) takes self and locinfo. The hook names match the description's table.

Results

Check Result
git diff --check clean
check_conventions.py All conventions checks passed
Configure, build, libs (script) ok
Script test run no new failures and no timeouts. The 9 known failures also fail on main and are not related to this change. guest_net_ctl was skipped for an unexpected reason, and that also happens on main.
guest_libc_internal_runtime_hooks Passed (0.01 s)
guest_libc_internal_empty_facet_members Passed (0.01 s)
guest_err Passed
public_headers Passed (58.6 s; existing test, unchanged here)
Vulkan validation comparison skipped by the script: no AGC, shader or VideoOut file changed

Negative control

I kept this branch's signatures and tests and put NotImplemented_nid_no_patch(__func__); back at the top of every changed body:

  • 45 in InventoryExports.cpp (39 facet members and 6 hooks);
  • 18 in InventoryExports6.cpp (13 facet members and 5 hooks).

Then I rebuilt both test executables. Both tests failed:

output
1/2 Test #2820: guest_libc_internal_runtime_hooks .........Subprocess aborted***Exception:   0.01 sec
  what():  libSceLibcInternalInventory_268_nid_no_patch not implemented
2/2 Test #2821: guest_libc_internal_empty_facet_members ...Subprocess aborted***Exception:   0.01 sec
  what():  libSceLibcInternalInventory_021_nid_no_patch not implemented

Then I restored both files from the merged tree and rebuilt. Both tests pass again, and git status --porcelain is empty.

Each test aborts at the first call that throws, so this control proves only one export per test. The other exports are covered because the test calls every one of them in sequence.

Findings

Blocking

None.

Non-blocking

  1. The "disassembly, not run on a console" note covers only one of the two files. The two new entries at docs/dev/debt/libSceLibcInternal.md:10-11 both link InventoryExports.cpp. They record that the behaviour comes from firmware 13.42 disassembly and was not run on a console. They cover 39 facet members and 6 hooks.
    • The other 18 exports changed the same way live in InventoryExports6.cpp: 13 facet members (for example time_put D1/D2) and the 5 hooks _thread_init, _thread_init_stub, _malloc_thread_cleanup, _rtld_atfork_post and _rtld_addr_phdr.
    • Their per-function entries were removed, and nothing replaces them with the same note.
    • Also, the facet entry's list of facets omits time_put, which the commit message names. The reason is that its members are only in InventoryExports6.cpp.
    • Suggested fix: either say in the two entries that they also cover the InventoryExports6.cpp members, or drop the caveat from both files.

Not verified

  • Firmware disassembly. I had no firmware image, so I could not check the bodies quoted from firmware 13.42 libSceLibcInternal.sprx (single ret, mov $0x7,%eax, xor %eax,%eax). I also could not check the matching single-ret claim for the 52 facet and exception members. The firmware is the only source for these behaviours.
  • Windows and macOS. I did not build or run them; the Windows result is the author's. This includes the variadic APS5_VABI definition of _rtld_error, although the same pattern already exists in Err.cpp and other libraries.
  • Titles. No title was run.
  • Scope of the merge. This PR carries the two commits of #15584. Merging it before #15584 also merges those 52 facet members. I reviewed the whole diff against main, including those commits.
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5759363573 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/15588#pullrequestreview-5759363573). Originally posted by [XairRrR](https://github.com/XairRrR) on 2026-11-03T20:57:39Z. **Review:** APPROVED --- # Reviewed — approved The 11 libSceLibcInternal runtime hooks now return as the firmware 13.42 disassembly in the description shows, instead of throwing. Because this PR is stacked on #15584, the same diff also brings in that PR's 52 empty facet members. Checks, build and focused tests pass, and both new tests fail when the throws are put back. ## What I ran Head `db4caa09b797b052b8a7371cd08aca73a05a5d8a`, `main` `086c0686c8adff3ee648fdbe34e0b0b647e1d511`, merged with `--no-ff` into tree `19ef719b472de20ee17591c54606b5aa67224155`. Debian 13 VM, GCC 14.2.0, Release, Ninja. ``` git diff --check 086c0686c8adff3ee648fdbe34e0b0b647e1d511...db4caa09b797b052b8a7371cd08aca73a05a5d8a python3 tools/check_conventions.py --base 086c0686c8adff3ee648fdbe34e0b0b647e1d511 ctest --test-dir build -j8 --test-load 32 --output-on-failure -R "^(guest_libc_internal_runtime_hooks|guest_libc_internal_empty_facet_members|guest_err|public_headers)$" # negative control (see below) ninja -C build -j32 -l32 guest_libc_internal_runtime_hooks_tests guest_libc_internal_empty_facet_members_tests ctest --test-dir build --output-on-failure -R "^(guest_libc_internal_runtime_hooks|guest_libc_internal_empty_facet_members)$" git status --porcelain ``` I also mapped each changed NID to its name in the debt table, to check that every signature fits its mangled name. `D1`, `D2` and `_Tidy` take `void* self`. `_Init(const _Locinfo&)` takes `self` and `locinfo`. The hook names match the description's table. ## Results | Check | Result | |---|---| | `git diff --check` | clean | | `check_conventions.py` | All conventions checks passed | | Configure, build, `libs` (script) | ok | | Script test run | no new failures and no timeouts. The 9 known failures also fail on `main` and are not related to this change. `guest_net_ctl` was skipped for an unexpected reason, and that also happens on `main`. | | `guest_libc_internal_runtime_hooks` | Passed (0.01 s) | | `guest_libc_internal_empty_facet_members` | Passed (0.01 s) | | `guest_err` | Passed | | `public_headers` | Passed (58.6 s; existing test, unchanged here) | | Vulkan validation comparison | skipped by the script: no AGC, shader or VideoOut file changed | ## Negative control I kept this branch's signatures and tests and put `NotImplemented_nid_no_patch(__func__);` back at the top of every changed body: - 45 in `InventoryExports.cpp` (39 facet members and 6 hooks); - 18 in `InventoryExports6.cpp` (13 facet members and 5 hooks). Then I rebuilt both test executables. Both tests failed: <details><summary>output</summary> ``` 1/2 Test #2820: guest_libc_internal_runtime_hooks .........Subprocess aborted***Exception: 0.01 sec what(): libSceLibcInternalInventory_268_nid_no_patch not implemented 2/2 Test #2821: guest_libc_internal_empty_facet_members ...Subprocess aborted***Exception: 0.01 sec what(): libSceLibcInternalInventory_021_nid_no_patch not implemented ``` </details> Then I restored both files from the merged tree and rebuilt. Both tests pass again, and `git status --porcelain` is empty. Each test aborts at the first call that throws, so this control proves only one export per test. The other exports are covered because the test calls every one of them in sequence. ## Findings ### Blocking None. ### Non-blocking 1. **The "disassembly, not run on a console" note covers only one of the two files.** The two new entries at `docs/dev/debt/libSceLibcInternal.md:10-11` both link `InventoryExports.cpp`. They record that the behaviour comes from firmware 13.42 disassembly and was not run on a console. They cover 39 facet members and 6 hooks. - The other 18 exports changed the same way live in `InventoryExports6.cpp`: 13 facet members (for example `time_put` `D1`/`D2`) and the 5 hooks `_thread_init`, `_thread_init_stub`, `_malloc_thread_cleanup`, `_rtld_atfork_post` and `_rtld_addr_phdr`. - Their per-function entries were removed, and nothing replaces them with the same note. - Also, the facet entry's list of facets omits `time_put`, which the commit message names. The reason is that its members are only in `InventoryExports6.cpp`. - Suggested fix: either say in the two entries that they also cover the `InventoryExports6.cpp` members, or drop the caveat from both files. ## Not verified - **Firmware disassembly.** I had no firmware image, so I could not check the bodies quoted from firmware 13.42 `libSceLibcInternal.sprx` (single `ret`, `mov $0x7,%eax`, `xor %eax,%eax`). I also could not check the matching single-`ret` claim for the 52 facet and exception members. The firmware is the only source for these behaviours. - **Windows and macOS.** I did not build or run them; the Windows result is the author's. This includes the variadic `APS5_VABI` definition of `_rtld_error`, although the same pattern already exists in `Err.cpp` and other libraries. - **Titles.** No title was run. - **Scope of the merge.** This PR carries the two commits of #15584. Merging it before #15584 also merges those 52 facet members. I reviewed the whole diff against `main`, including those commits. <!-- anyps5-bots job=3597 head=db4caa09b797b052b8a7371cd08aca73a05a5d8a -->
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!15588
No description provided.