libkernel: sceKernelGetLibkernelTextLocation is absent (NID AmJ0mn2l4lM) #4560

Closed
opened 2026-10-12 15:39:54 +00:00 by jagrat04 · 0 comments
jagrat04 commented 2026-10-12 15:39:54 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by jagrat04 on 2026-10-12T15:39:54Z.


Summary

libkernel does not export sceKernelGetLibkernelTextLocation (NID AmJ0mn2l4lM).

Context & Evidence

  • Running python tools/nid_names.py --nid AmJ0mn2l4lM resolves NID AmJ0mn2l4lM in the symbol database (aerolib.csv) to:
    NID          STATUS       SUGGESTION
    AmJ0mn2l4lM  rename-ready sceKernelGetLibkernelTextLocation
    
  • In fpPS4, ps4_sceKernelInternalMemoryGetModuleSegmentInfo (NID -YTW+qXc3CQ, see #4173) delegates directly to this helper:
    function ps4_sceKernelInternalMemoryGetModuleSegmentInfo(pOut: PInternalSegmentInfo): Integer;
    begin
      Result := ps4_sceKernelGetLibkernelTextLocation(@pOut^.address, @pOut^.size)
    end;
    
  • In fpPS4, its signature is int sceKernelGetLibkernelTextLocation(uint64_t* address, uint64_t* size) returning 0 on success.

Current Behavior in AnyPS5

sceKernelGetLibkernelTextLocation is entirely absent from core/libs/prx/libkernel. Any title, homebrew port, or loader that queries this symbol directly fails at module load time with an unresolved import.

AI-assisted: yes

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5816421308 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/4560). Originally posted by [jagrat04](https://github.com/jagrat04) on 2026-10-12T15:39:54Z. --- ### Summary `libkernel` does not export `sceKernelGetLibkernelTextLocation` (NID `AmJ0mn2l4lM`). ### Context & Evidence - Running `python tools/nid_names.py --nid AmJ0mn2l4lM` resolves NID `AmJ0mn2l4lM` in the symbol database (`aerolib.csv`) to: ```text NID STATUS SUGGESTION AmJ0mn2l4lM rename-ready sceKernelGetLibkernelTextLocation ``` - In [fpPS4](https://github.com/red-prig/fpPS4/blob/04cefd43e6fddd1ab033e7980cd356d14c964905/kernel/ps4_libkernel.pas#L354), `ps4_sceKernelInternalMemoryGetModuleSegmentInfo` (NID `-YTW+qXc3CQ`, see #4173) delegates directly to this helper: ```pascal function ps4_sceKernelInternalMemoryGetModuleSegmentInfo(pOut: PInternalSegmentInfo): Integer; begin Result := ps4_sceKernelGetLibkernelTextLocation(@pOut^.address, @pOut^.size) end; ``` - In fpPS4, its signature is `int sceKernelGetLibkernelTextLocation(uint64_t* address, uint64_t* size)` returning 0 on success. ### Current Behavior in AnyPS5 `sceKernelGetLibkernelTextLocation` is entirely absent from `core/libs/prx/libkernel`. Any title, homebrew port, or loader that queries this symbol directly fails at module load time with an unresolved import. AI-assisted: yes
Sign in to join this conversation.
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#4560
No description provided.