relinker: Photo Splat VR (PPSA99770) is refused for overlapping PT_LOAD segments that map the same file bytes #12183

Closed
opened 2026-10-28 01:29:31 +00:00 by p3n1cillin · 0 comments
p3n1cillin commented 2026-10-28 01:29:31 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by p3n1cillin on 2026-10-28T01:29:31Z.


What happens

The relinker refuses Photo Splat VR's eboot with FAIL: Overlapping PT_LOAD memory ranges (offset 0x4288000). The two overlapping segments map the same file bytes at the same addresses; only their protections differ.

Title, test or build step

Photo Splat VR (PPSA99770) 0.1.1 from the homebrew catalog, source Papyszoo/photo-splat-vr. The failing step is the relinker conversion.

AnyPS5 commit

main de004fed72, nothing merged on top.

System

Windows 11 Pro 26300, Ryzen 5 7600X, WinLibs GCC 15.2.0, Release.

Steps to reproduce

relinker --windows --registry --rpath <libs> eboot.elf app.exe

The eboot was unpacked from the catalog zip's eboot.bin (fSELF). It fails at once.

Log

Output image           | eboot.elf |   0%
FAIL: Overlapping PT_LOAD memory ranges (offset 0x4288000)

readelf -lW of the unpacked eboot, PT_LOAD entries:

  Type   Offset    VirtAddr   FileSiz   MemSiz    Flg
  LOAD   0x004000  0x0000000  0xc34380  0xc34380  E
  LOAD   0xc3c000  0x0c38000  0x375ad34 0x375ad34 R
  LOAD   0x428c000 0x4288000  0x10b008  0x10b008  RW
  LOAD   0x4398000 0x4398000  0x01cf58  0x124db8  RW
  LOAD   0x43b8dc0 0x44bcdc0  0x082a08  0x082a08

plus GNU_RELRO at 0x4288000 (size 0x10c000) and the SCE process-parameter header (LOOS+0x1000001) at 0x4392d38, size 0x60.

What was checked

  • Where the overlap is. The R segment runs to 0x4392d34, just below the process-parameter block. That puts its last 0x10ad34 bytes inside the RW (RELRO) segment, which starts at 0x4288000.
  • The overlap is the same bytes. Both segments have a file offset 0x4000 above their address (0xc3c000 for 0xc38000, 0x428c000 for 0x4288000), so in the overlap they map the same file bytes at the same addresses. Only the protection differs: R in the first segment, RW in the second.
  • Where it comes from. The title links through ps5-pie-title.ld, a copy of the native-app boilerplate's ps5-pie.ld that reserves an extra page after the RELRO sections. Its header comment says ps5-native-tool link writes the process-parameter block into the padding after the last RELRO/rodata section. The R segment's size reaching up to that block looks like that tool's doing. I haven't checked the tool's source to confirm.
  • Not measured: how the console loader maps such an overlap, i.e. which protection the shared pages end up with. The title is published in the catalog for the console, so the console presumably loads it.
  • Why I'm not proposing a fix yet. #1238 and #10564 made overlapping PT_LOAD segments an error on purpose. Accepting overlaps that are congruent like this one (same offset-to-address delta, so the same bytes) would be narrower, but which protection the shared pages should get needs the console answer above. So this is a report, not a PR.
  • Same every run. I haven't tried other versions. Every other title in the same run, 35 new or updated catalog titles, converted without this error.

AI-assisted: yes (Claude Code).

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:6070807759 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/12183). Originally posted by [p3n1cillin](https://github.com/p3n1cillin) on 2026-10-28T01:29:31Z. --- ### What happens The relinker refuses Photo Splat VR's eboot with `FAIL: Overlapping PT_LOAD memory ranges (offset 0x4288000)`. The two overlapping segments map the same file bytes at the same addresses; only their protections differ. ### Title, test or build step Photo Splat VR (PPSA99770) 0.1.1 from the homebrew catalog, source [Papyszoo/photo-splat-vr](https://github.com/Papyszoo/photo-splat-vr). The failing step is the relinker conversion. ### AnyPS5 commit `main` `de004fed72`, nothing merged on top. ### System Windows 11 Pro 26300, Ryzen 5 7600X, WinLibs GCC 15.2.0, Release. ### Steps to reproduce ``` relinker --windows --registry --rpath <libs> eboot.elf app.exe ``` The eboot was unpacked from the catalog zip's `eboot.bin` (fSELF). It fails at once. ### Log ``` Output image | eboot.elf | 0% FAIL: Overlapping PT_LOAD memory ranges (offset 0x4288000) ``` `readelf -lW` of the unpacked eboot, PT_LOAD entries: ``` Type Offset VirtAddr FileSiz MemSiz Flg LOAD 0x004000 0x0000000 0xc34380 0xc34380 E LOAD 0xc3c000 0x0c38000 0x375ad34 0x375ad34 R LOAD 0x428c000 0x4288000 0x10b008 0x10b008 RW LOAD 0x4398000 0x4398000 0x01cf58 0x124db8 RW LOAD 0x43b8dc0 0x44bcdc0 0x082a08 0x082a08 ``` plus `GNU_RELRO` at 0x4288000 (size 0x10c000) and the SCE process-parameter header (`LOOS+0x1000001`) at 0x4392d38, size 0x60. ### What was checked - **Where the overlap is.** The R segment runs to 0x4392d34, just below the process-parameter block. That puts its last 0x10ad34 bytes inside the RW (RELRO) segment, which starts at 0x4288000. - **The overlap is the same bytes.** Both segments have a file offset 0x4000 above their address (0xc3c000 for 0xc38000, 0x428c000 for 0x4288000), so in the overlap they map the same file bytes at the same addresses. Only the protection differs: R in the first segment, RW in the second. - **Where it comes from.** The title links through [`ps5-pie-title.ld`](https://github.com/Papyszoo/photo-splat-vr/blob/HEAD/platform/ps5/title/ps5-pie-title.ld), a copy of the native-app boilerplate's `ps5-pie.ld` that reserves an extra page after the RELRO sections. Its header comment says `ps5-native-tool link` writes the process-parameter block into the padding after the last RELRO/rodata section. The R segment's size reaching up to that block looks like that tool's doing. I haven't checked the tool's source to confirm. - **Not measured:** how the console loader maps such an overlap, i.e. which protection the shared pages end up with. The title is published in the catalog for the console, so the console presumably loads it. - **Why I'm not proposing a fix yet.** #1238 and #10564 made overlapping PT_LOAD segments an error on purpose. Accepting overlaps that are congruent like this one (same offset-to-address delta, so the same bytes) would be narrower, but which protection the shared pages should get needs the console answer above. So this is a report, not a PR. - **Same every run.** I haven't tried other versions. Every other title in the same run, 35 new or updated catalog titles, converted without this error. AI-assisted: yes (Claude Code).
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#12183
No description provided.