Relinker (Windows): OliSe Player (PPSA01153) stops at 'Empty import symbol name' on seven weak references with all-zero symbol entries #4437
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 orishamir on 2026-10-12T11:23:05Z.
With
--trap-sdk-syscall-stubs(#3804), OliSe Player (PPSA01153, catalog 02.001.000, sha256 matches the catalog, GPL-3.0) gets past the SDK syscall stubs of #2136. Its Windows relink then fails:Measured on
main3d8ffeb2witheboot.binandsce_module/libc.prxunwrapped. The relinker built on Windows (WinLibs GCC 15.2.0 r7, Release) fails this way. A relinker-only Linux build of the same commit fails the same way with--windows, and relinks the title without it.What is at that offset. Seven relocations in the eboot point at dynamic symbols whose entries are all zero: no name, local, undefined, value 0, the same bytes as the null symbol at index 0.
R_X86_64_GLOB_DATR_X86_64_JUMP_SLOTR_X86_64_GLOB_DATHow the title uses them. Each slot is a weak reference that the code expects to be 0 when the function is absent:
cmp qword [rip+…], 0followed byjeover acall 0xc12fb0. That PLT stub jumps through 0x18c60c8, so the function is only called when the slot is not 0.WindowsRelocationBuilder::Applythrows on the empty name before any of this matters. The Linux output keeps the seven as undefinedGLOBAL FUNCimports with an empty name. I did not run the Linux build of the title, so I can't say what the host loader does with them.None of the other 25 catalog titles I relink has a relocation against such an entry.
Should a relocation against an all-zero symbol entry resolve to 0, as one with symbol index 0 does? That is what this title's code is written for.
AI-assisted: yes (Claude Code Opus 5.5 xhigh)