Relinker fails during binary conversion: Dynamic segment out of bounds (offset 0x10298) #2663

Closed
opened 2026-10-10 10:23:51 +00:00 by LightStorm72 · 18 comments
LightStorm72 commented 2026-10-10 10:23:51 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by LightStorm72 on 2026-10-10T10:23:51Z.


Title: Relinker fails during binary conversion: Dynamic segment out of bounds (offset 0x10298)

Description

A game conversion that was working completely fine yesterday on an earlier build is now failing on the latest main commit. When running relinker, the process halts immediately with a dynamic segment out of bounds error (offset 0x10298).

When attempting to run relinker against the decrypted main executable for **Dreaming Sarah /PPSA02929 ** on Windows 11, the conversion pipeline halts immediately with a segment parsing error (Dynamic segment out of bounds).

The Relinker correctly detects the platform, directories, and processes NID references (815 total), but fails when attempting to parse the ELF's PT_DYNAMIC section header offset at 0x10298.

Since the exact same ELF file converted successfully on previous builds, this appears to be a recent regression introduced in the Relinker binary parsing logic.

Steps to Reproduce

  1. Obtain the decrypted eboot.elf for Dreaming Sarah.
  2. Run relinker.exe --windows specifying the input ELF and output path D:\Dreaming Sarah\app.exe.
  3. Relinker parses initial NIDs (815 total) and fails during dynamic segment resolution with FAIL: Dynamic segment out of bounds (offset 0x10298).

Environment & Specifications
Title: Dreaming Sarah PPSA02929
OS: Windows 11 64-bit
CPU: AMD Ryzen 5 3600 (6-Core / 12-Thread)
GPU: NVIDIA GeForce RTX 2070 SUPER
RAM: 32 GB DDR4 @ 3200 MHz
AnyPS5 Build: Latest main (Compiled via MinGW-w64)

Console Output

Setting up directories in D:\Dreaming Sarah...

Running Relinker...
System: Windows; unused-filter=0
sce_module/sce_modules/prx processing: enabled
NID input: 815 references
Unused NID filtering: disabled; filtered=0
NID total: 815 -> 815; filtered=0
FAIL: Dynamic segment out of bounds (offset 0x10298)

[ERROR] Relinker failed Check the paths and make sure your ELF name is correct.

   Label: D:\Game\eboot.bin

          Offset Bytes                                           Ascii
                 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
          ------ ----------------------------------------------- -----
0000000000000000 7F 45 4C 46 02 01 01 09                         �ELF����
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5790347464 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/2663). Originally posted by [LightStorm72](https://github.com/LightStorm72) on 2026-10-10T10:23:51Z. --- ## Title: Relinker fails during binary conversion: Dynamic segment out of bounds (offset 0x10298) ### Description A game conversion that was working completely fine yesterday on an earlier build is now failing on the latest `main` commit. When running `relinker`, the process halts immediately with a dynamic segment out of bounds error (`offset 0x10298`). When attempting to run `relinker` against the decrypted main executable for **Dreaming Sarah /PPSA02929 ** on Windows 11, the conversion pipeline halts immediately with a segment parsing error (`Dynamic segment out of bounds`). The Relinker correctly detects the platform, directories, and processes NID references (815 total), but fails when attempting to parse the ELF's `PT_DYNAMIC` section header offset at `0x10298`. Since the exact same ELF file converted successfully on previous builds, this appears to be a recent regression introduced in the Relinker binary parsing logic. Steps to Reproduce 1. Obtain the decrypted eboot.elf for Dreaming Sarah. 2. Run relinker.exe --windows specifying the input ELF and output path D:\Dreaming Sarah\app.exe. 3. Relinker parses initial NIDs (815 total) and fails during dynamic segment resolution with FAIL: Dynamic segment out of bounds (offset 0x10298). Environment & Specifications Title: Dreaming Sarah PPSA02929 OS: Windows 11 64-bit CPU: AMD Ryzen 5 3600 (6-Core / 12-Thread) GPU: NVIDIA GeForce RTX 2070 SUPER RAM: 32 GB DDR4 @ 3200 MHz AnyPS5 Build: Latest main (Compiled via MinGW-w64) ### Console Output ```text Setting up directories in D:\Dreaming Sarah... Running Relinker... System: Windows; unused-filter=0 sce_module/sce_modules/prx processing: enabled NID input: 815 references Unused NID filtering: disabled; filtered=0 NID total: 815 -> 815; filtered=0 FAIL: Dynamic segment out of bounds (offset 0x10298) [ERROR] Relinker failed Check the paths and make sure your ELF name is correct. Label: D:\Game\eboot.bin Offset Bytes Ascii 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F ------ ----------------------------------------------- ----- 0000000000000000 7F 45 4C 46 02 01 01 09 �ELF����
MarcZX10 commented 2026-10-10 10:28:26 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-10T10:28:26Z.


Thanks for the detailed reproduction. The reported offset points to the PT_DYNAMIC file offset, but the failure is raised when the relinker checks whether the complete [p_offset, p_offset + p_filesz) range fits inside the ELF file. The offset by itself does not show whether p_filesz is unexpectedly large, the file differs between runs, or the parser is seeing an unusual segment layout.

Could you share these details from the same decrypted eboot.elf (no need to upload the game binary)?

  • The output of llvm-readelf -h -lW -d eboot.elf or readelf -h -lW -d eboot.elf, especially the PT_DYNAMIC and PT_LOAD entries.
  • The file size and SHA-256 hash.
  • The AnyPS5 commit used by the successful build and the failing build.

That should let us check the bounds against the ELF's declared program headers and identify whether a recent parser change caused the regression.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6096566467 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/2663#issuecomment-6096566467). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-10T10:28:26Z. --- Thanks for the detailed reproduction. The reported offset points to the `PT_DYNAMIC` file offset, but the failure is raised when the relinker checks whether the complete `[p_offset, p_offset + p_filesz)` range fits inside the ELF file. The offset by itself does not show whether `p_filesz` is unexpectedly large, the file differs between runs, or the parser is seeing an unusual segment layout. Could you share these details from the same decrypted `eboot.elf` (no need to upload the game binary)? - The output of `llvm-readelf -h -lW -d eboot.elf` or `readelf -h -lW -d eboot.elf`, especially the `PT_DYNAMIC` and `PT_LOAD` entries. - The file size and SHA-256 hash. - The AnyPS5 commit used by the successful build and the failing build. That should let us check the bounds against the ELF's declared program headers and identify whether a recent parser change caused the regression.
LightStorm72 commented 2026-10-10 10:33:51 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by LightStorm72 on 2026-10-10T10:33:51Z.


@MarcZX100 Here you go and thanks for reply, I'm trying my best to help too! the successful build was deleted and replaced with the latest build. but the I have the game that was succesfully Converted with the app.exe, running about 20fps and ingame about 9fps too.

Console Output

PS D:\Game> readelf -h -lW -d eboot.bin
ELF Header:
  Magic:   7f 45 4c 46 02 01 01 09 02 00 00 00 00 00 00 00
  Class:                             ELF64
  Data:                              2's complement, little endian
  Version:                           1 (current)
  OS/ABI:                            UNIX - FreeBSD
  ABI Version:                       2
  Type:                              OS Specific: (fe10)
  Machine:                           Advanced Micro Devices X86-64
  Version:                           0x1
  Entry point address:               0x70
  Start of program headers:          64 (bytes into file)
  Start of section headers:          36299856 (bytes into file)
  Flags:                             0x0
  Size of this header:               64 (bytes)
  Size of program headers:           56 (bytes)
  Number of program headers:         14
  Size of section headers:           64 (bytes)
  Number of section headers:         46
  Section header string table index: 44
readelf: Error: Reading 2944 bytes extends past end of file for section headers

Program Headers:
  Type           Offset   VirtAddr           PhysAddr           FileSiz  MemSiz   Flg Align
  LOAD           0x004000 0x0000000000000000 0x0000000000000000 0x2e70bc 0x2e70bc   E 0x4000
  LOAD           0x2ec000 0x00000000002e8000 0x00000000002e8000 0x08b1c1 0x08b1c1 R   0x4000
  LOAD           0x378000 0x0000000000374000 0x0000000000374000 0x121380 0x121380 RW  0x4000
  GNU_RELRO      0x378000 0x0000000000374000 0x0000000000374000 0x121380 0x124000 R   0x1
  LOAD           0x49c000 0x0000000000498000 0x0000000000498000 0x008200 0x02ee48 RW  0x4000
  LOOS+0x1000001 0x499318 0x0000000000495318 0x0000000000495318 0x000060 0x000060 R   0x8
  DYNAMIC        0x770790 0x0000000000790790 0x0000000000790790 0x0006e0 0x0006e0 RW  0x8
  TLS            0x499380 0x0000000000495380 0x0000000000495380 0x000000 0x001868 R   0x10
  GNU_EH_FRAME   0x36528c 0x000000000036128c 0x000000000036128c 0x011f35 0x011f35 R   0x4
  LOAD           0x4a6e50 0x00000000004c6e50 0x00000000004c6e50 0x2ca020 0x2ca020     0x4000
  LOOS+0xfffff00 0x770e70 0x0000000000000000 0x0000000000000000 0x00004c 0x000000     0x10
  LOOS+0xfffff01 0x770ebc 0x0000000000000000 0x0000000000000000 0x0010d2 0x0010d2     0x1
  NOTE           0x770768 0x0000000000790768 0x0000000000790768 0x000024 0x000024     0x4
  NOTE           0x771f90 0x0000000000000000 0x0000000000000000 0x000018 0x000000     0x4

Dynamic section at offset 0x770790 contains 110 entries:
  Tag        Type                         Name/Value
 0x0000000000000001 (NEEDED)             Shared library: [libSceAgc.prx]
 0x0000000061000045 (Operating System specific: 61000045)                0x1010100001e5f
 0x0000000061000049 (Operating System specific: 61000049)                0x100001e5f
 0x0000000061000019 (Operating System specific: 61000019)                0x9
 0x0000000000000001 (NEEDED)             Shared library: [libSceAgcDriver.prx]
 0x0000000061000045 (Operating System specific: 61000045)                0x2010100001e7d
 0x0000000061000049 (Operating System specific: 61000049)                0x1000100001e7d
 0x0000000061000019 (Operating System specific: 61000019)                0x1000000000009
 0x0000000000000001 (NEEDED)             Shared library: [libSceVideoOut.prx]
 0x0000000061000045 (Operating System specific: 61000045)                0x3010100001ea0
 0x0000000061000049 (Operating System specific: 61000049)                0x2000100001ea0
 0x0000000061000019 (Operating System specific: 61000019)                0x2000000000009
 0x0000000000000001 (NEEDED)             Shared library: [libSceSysmodule.prx]
 0x0000000061000045 (Operating System specific: 61000045)                0x4010100001ec3
 0x0000000061000049 (Operating System specific: 61000049)                0x3000100001ec3
 0x0000000061000019 (Operating System specific: 61000019)                0x3000000000009
 0x0000000000000001 (NEEDED)             Shared library: [libSceNpUniversalDataSystem.prx]
 0x0000000061000045 (Operating System specific: 61000045)                0x5010100001ef3
 0x0000000061000049 (Operating System specific: 61000049)                0x4000100001ef3
 0x0000000061000019 (Operating System specific: 61000019)                0x4000000000009
 0x0000000000000001 (NEEDED)             Shared library: [libSceNpTrophy2.prx]
 0x0000000061000045 (Operating System specific: 61000045)                0x6010100001f23
 0x0000000061000049 (Operating System specific: 61000049)                0x5000100001f23
 0x0000000061000019 (Operating System specific: 61000019)                0x5000000000009
 0x0000000000000001 (NEEDED)             Shared library: [libSceSaveData.native.prx]
 0x0000000061000045 (Operating System specific: 61000045)                0x7010100001f4d
 0x0000000061000049 (Operating System specific: 61000049)                0x6000100001f4d
 0x0000000061000019 (Operating System specific: 61000019)                0x6000000000009
 0x0000000000000001 (NEEDED)             Shared library: [libSceSaveDataDialog.native.prx]
 0x0000000061000045 (Operating System specific: 61000045)                0x8010100001f83
 0x0000000061000049 (Operating System specific: 61000049)                0x7000100001f98
 0x0000000061000019 (Operating System specific: 61000019)                0x7000000000009
 0x0000000000000001 (NEEDED)             Shared library: [libSceIme.prx]
 0x0000000061000045 (Operating System specific: 61000045)                0x9010100001fc2
 0x0000000061000049 (Operating System specific: 61000049)                0x8000100001fc2
 0x0000000061000019 (Operating System specific: 61000019)                0x8000000000009
 0x0000000000000001 (NEEDED)             Shared library: [libSceImeBackend.prx]
 0x0000000061000045 (Operating System specific: 61000045)                0xa010100001fe1
 0x0000000061000049 (Operating System specific: 61000049)                0x9000100001fe1
 0x0000000061000019 (Operating System specific: 61000019)                0x9000000000009
 0x0000000000000001 (NEEDED)             Shared library: [libSceImeDialog.prx]
 0x0000000061000045 (Operating System specific: 61000045)                0xb010100002006
 0x0000000061000049 (Operating System specific: 61000049)                0xa000100002006
 0x0000000061000019 (Operating System specific: 61000019)                0xa000000000009
 0x0000000000000001 (NEEDED)             Shared library: [libScePad.prx]
 0x0000000061000045 (Operating System specific: 61000045)                0xc010100002024
 0x0000000061000049 (Operating System specific: 61000049)                0xb000100002024
 0x0000000061000019 (Operating System specific: 61000019)                0xb000000000009
 0x0000000000000001 (NEEDED)             Shared library: [libkernel.prx]
 0x0000000061000045 (Operating System specific: 61000045)                0xd01010000203c
 0x0000000061000049 (Operating System specific: 61000049)                0xc000100002046
 0x0000000061000019 (Operating System specific: 61000019)                0xc000000000009
 0x0000000000000001 (NEEDED)             Shared library: [libSceAudioOut.prx]
 0x0000000061000045 (Operating System specific: 61000045)                0xe010100002065
 0x0000000061000049 (Operating System specific: 61000049)                0xd000100002065
 0x0000000061000019 (Operating System specific: 61000019)                0xd000000000009
 0x0000000000000001 (NEEDED)             Shared library: [libSceCommonDialog.prx]
 0x0000000061000045 (Operating System specific: 61000045)                0xf01010000208b
 0x0000000061000049 (Operating System specific: 61000049)                0xe00010000208b
 0x0000000061000019 (Operating System specific: 61000019)                0xe000000000009
 0x0000000000000001 (NEEDED)             Shared library: [libSceUlt.prx]
 0x0000000061000045 (Operating System specific: 61000045)                0x100101000020ac
 0x0000000061000049 (Operating System specific: 61000049)                0xf0001000020ac
 0x0000000061000019 (Operating System specific: 61000019)                0xf000000000009
 0x0000000000000001 (NEEDED)             Shared library: [libSceSystemService.prx]
 0x0000000061000045 (Operating System specific: 61000045)                0x110101000020ce
 0x0000000061000049 (Operating System specific: 61000049)                0x100001000020ce
 0x0000000061000019 (Operating System specific: 61000019)                0x10000000000009
 0x0000000000000001 (NEEDED)             Shared library: [libSceNpGameIntent.prx]
 0x0000000061000045 (Operating System specific: 61000045)                0x120101000020f9
 0x0000000061000049 (Operating System specific: 61000049)                0x110001000020f9
 0x0000000061000019 (Operating System specific: 61000019)                0x11000000000009
 0x0000000061000049 (Operating System specific: 61000049)                0x1200010000203c
 0x0000000061000019 (Operating System specific: 61000019)                0x12000000000009
 0x0000000000000001 (NEEDED)             Shared library: [libc.prx]
 0x0000000061000045 (Operating System specific: 61000045)                0x13010100002115
 0x0000000061000049 (Operating System specific: 61000049)                0x13000100002115
 0x0000000061000019 (Operating System specific: 61000019)                0x13000000000009
 0x0000000000000001 (NEEDED)             Shared library: [libSceUserService.prx]
 0x0000000061000045 (Operating System specific: 61000045)                0x14010100002130
 0x0000000061000049 (Operating System specific: 61000049)                0x14000100002130
 0x0000000061000019 (Operating System specific: 61000019)                0x14000000000009
 0x0000000061000043 (Operating System specific: 61000043)                0x10100002142
 0x0000000061000011 (Operating System specific: 61000011)                0x0
 0x0000000061000041 (Operating System specific: 61000041)                0x2149
 0x0000000000000015 (DEBUG)              0x0
 0x0000000000000007 (RELA)               0x4ce6f8
 0x0000000000000008 (RELASZ)             2887992 (bytes)
 0x0000000000000009 (RELAENT)            24 (bytes)
 0x000000006ffffff9 (RELACOUNT)          119961
 0x0000000000000017 (JMPREL)             0x4cbd70
 0x0000000000000002 (PLTRELSZ)           10632 (bytes)
 0x0000000000000003 (PLTGOT)             0x4943c8
 0x0000000000000014 (PLTREL)             RELA
 0x0000000000000006 (SYMTAB)             0x4c8fe0
 0x000000000000000b (SYMENT)             24 (bytes)
 0x0000000000000005 (STRTAB)             0x4c6e50
 0x000000000000000a (STRSZ)              8585 (bytes)
 0x0000000000000004 (HASH)               0x78f830
 0x0000000000000020 (PREINIT_ARRAY)      0x0
 0x0000000000000021 (PREINIT_ARRAYSZ)    0 (bytes)
 0x0000000000000019 (INIT_ARRAY)         0x0
 0x000000000000001b (INIT_ARRAYSZ)       0 (bytes)
 0x000000000000001a (FINI_ARRAY)         0x0
 0x000000000000001c (FINI_ARRAYSZ)       0 (bytes)
 0x000000000000000c (INIT)               0x10
 0x000000000000000d (FINI)               0x2e7070
 0x000000006100003f (Operating System specific: 6100003f)                0x2d90
 0x000000006100003d (Operating System specific: 6100003d)                0xf38
 0x0000000000000000 (NULL)               0x0
PS D:\Game> Get-FileHash -Algorithm SHA256 eboot.bin | Select-Object Hash, @{N="SizeInBytes";E={(Get-Item $_.Path).Length}} | Format-List

Hash        : A145DC191540269B75FF76F1BBFD44FC9F4C783B98EF9BDEDF1D8C22999D27D2
SizeInBytes : 7806888
PS D:\Game> cd C:\AnyPS5
PS C:\AnyPS5>
PS C:\AnyPS5> # Current failing commit
PS C:\AnyPS5> git rev-parse HEAD
be403084c63426e793116936555daf7be35d774c
PS C:\AnyPS5>
PS C:\AnyPS5> # View recent commit history to identify yesterday's working commit hash
PS C:\AnyPS5> git log --oneline -n 10
be403084 (HEAD -> main, origin/main, origin/HEAD) Merge pull request #1141 from nicolasabosch/feat/kernel-pthread-cancel
663cc42c Merge pull request #2636 from adriadam10/feat/gpl-libraries
6675e60b Merge pull request #2409 from danzaio/feat/rudp-activate
c84694ad Merge pull request #1905 from Raghav314/fix/agc-address-builds-gpu-access
ef9d0dd7 chore(libkernel): drop the pthread_cancel comment
3acca27f feat(libkernel): implement thread cancellation
948a526c Merge pull request #407 from Pouare514/feat/deathloop-loading
00d4e3a5 Merge pull request #976 from Saibamen/ci/release-parity
1052fcc7 Merge pull request #2593 from eliasbruno124-dev/fix/agc-bulk-resource-unavailable
aad13ac1 Merge pull request #1147 from alfalfa-star/perf/agc-staging-pool-heap-budget
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6096606302 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/2663#issuecomment-6096606302). Originally posted by [LightStorm72](https://github.com/LightStorm72) on 2026-10-10T10:33:51Z. --- @MarcZX100 Here you go and thanks for reply, I'm trying my best to help too! the successful build was deleted and replaced with the latest build. but the I have the game that was succesfully Converted with the app.exe, running about 20fps and ingame about 9fps too. ### Console Output ```text PS D:\Game> readelf -h -lW -d eboot.bin ELF Header: Magic: 7f 45 4c 46 02 01 01 09 02 00 00 00 00 00 00 00 Class: ELF64 Data: 2's complement, little endian Version: 1 (current) OS/ABI: UNIX - FreeBSD ABI Version: 2 Type: OS Specific: (fe10) Machine: Advanced Micro Devices X86-64 Version: 0x1 Entry point address: 0x70 Start of program headers: 64 (bytes into file) Start of section headers: 36299856 (bytes into file) Flags: 0x0 Size of this header: 64 (bytes) Size of program headers: 56 (bytes) Number of program headers: 14 Size of section headers: 64 (bytes) Number of section headers: 46 Section header string table index: 44 readelf: Error: Reading 2944 bytes extends past end of file for section headers Program Headers: Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align LOAD 0x004000 0x0000000000000000 0x0000000000000000 0x2e70bc 0x2e70bc E 0x4000 LOAD 0x2ec000 0x00000000002e8000 0x00000000002e8000 0x08b1c1 0x08b1c1 R 0x4000 LOAD 0x378000 0x0000000000374000 0x0000000000374000 0x121380 0x121380 RW 0x4000 GNU_RELRO 0x378000 0x0000000000374000 0x0000000000374000 0x121380 0x124000 R 0x1 LOAD 0x49c000 0x0000000000498000 0x0000000000498000 0x008200 0x02ee48 RW 0x4000 LOOS+0x1000001 0x499318 0x0000000000495318 0x0000000000495318 0x000060 0x000060 R 0x8 DYNAMIC 0x770790 0x0000000000790790 0x0000000000790790 0x0006e0 0x0006e0 RW 0x8 TLS 0x499380 0x0000000000495380 0x0000000000495380 0x000000 0x001868 R 0x10 GNU_EH_FRAME 0x36528c 0x000000000036128c 0x000000000036128c 0x011f35 0x011f35 R 0x4 LOAD 0x4a6e50 0x00000000004c6e50 0x00000000004c6e50 0x2ca020 0x2ca020 0x4000 LOOS+0xfffff00 0x770e70 0x0000000000000000 0x0000000000000000 0x00004c 0x000000 0x10 LOOS+0xfffff01 0x770ebc 0x0000000000000000 0x0000000000000000 0x0010d2 0x0010d2 0x1 NOTE 0x770768 0x0000000000790768 0x0000000000790768 0x000024 0x000024 0x4 NOTE 0x771f90 0x0000000000000000 0x0000000000000000 0x000018 0x000000 0x4 Dynamic section at offset 0x770790 contains 110 entries: Tag Type Name/Value 0x0000000000000001 (NEEDED) Shared library: [libSceAgc.prx] 0x0000000061000045 (Operating System specific: 61000045) 0x1010100001e5f 0x0000000061000049 (Operating System specific: 61000049) 0x100001e5f 0x0000000061000019 (Operating System specific: 61000019) 0x9 0x0000000000000001 (NEEDED) Shared library: [libSceAgcDriver.prx] 0x0000000061000045 (Operating System specific: 61000045) 0x2010100001e7d 0x0000000061000049 (Operating System specific: 61000049) 0x1000100001e7d 0x0000000061000019 (Operating System specific: 61000019) 0x1000000000009 0x0000000000000001 (NEEDED) Shared library: [libSceVideoOut.prx] 0x0000000061000045 (Operating System specific: 61000045) 0x3010100001ea0 0x0000000061000049 (Operating System specific: 61000049) 0x2000100001ea0 0x0000000061000019 (Operating System specific: 61000019) 0x2000000000009 0x0000000000000001 (NEEDED) Shared library: [libSceSysmodule.prx] 0x0000000061000045 (Operating System specific: 61000045) 0x4010100001ec3 0x0000000061000049 (Operating System specific: 61000049) 0x3000100001ec3 0x0000000061000019 (Operating System specific: 61000019) 0x3000000000009 0x0000000000000001 (NEEDED) Shared library: [libSceNpUniversalDataSystem.prx] 0x0000000061000045 (Operating System specific: 61000045) 0x5010100001ef3 0x0000000061000049 (Operating System specific: 61000049) 0x4000100001ef3 0x0000000061000019 (Operating System specific: 61000019) 0x4000000000009 0x0000000000000001 (NEEDED) Shared library: [libSceNpTrophy2.prx] 0x0000000061000045 (Operating System specific: 61000045) 0x6010100001f23 0x0000000061000049 (Operating System specific: 61000049) 0x5000100001f23 0x0000000061000019 (Operating System specific: 61000019) 0x5000000000009 0x0000000000000001 (NEEDED) Shared library: [libSceSaveData.native.prx] 0x0000000061000045 (Operating System specific: 61000045) 0x7010100001f4d 0x0000000061000049 (Operating System specific: 61000049) 0x6000100001f4d 0x0000000061000019 (Operating System specific: 61000019) 0x6000000000009 0x0000000000000001 (NEEDED) Shared library: [libSceSaveDataDialog.native.prx] 0x0000000061000045 (Operating System specific: 61000045) 0x8010100001f83 0x0000000061000049 (Operating System specific: 61000049) 0x7000100001f98 0x0000000061000019 (Operating System specific: 61000019) 0x7000000000009 0x0000000000000001 (NEEDED) Shared library: [libSceIme.prx] 0x0000000061000045 (Operating System specific: 61000045) 0x9010100001fc2 0x0000000061000049 (Operating System specific: 61000049) 0x8000100001fc2 0x0000000061000019 (Operating System specific: 61000019) 0x8000000000009 0x0000000000000001 (NEEDED) Shared library: [libSceImeBackend.prx] 0x0000000061000045 (Operating System specific: 61000045) 0xa010100001fe1 0x0000000061000049 (Operating System specific: 61000049) 0x9000100001fe1 0x0000000061000019 (Operating System specific: 61000019) 0x9000000000009 0x0000000000000001 (NEEDED) Shared library: [libSceImeDialog.prx] 0x0000000061000045 (Operating System specific: 61000045) 0xb010100002006 0x0000000061000049 (Operating System specific: 61000049) 0xa000100002006 0x0000000061000019 (Operating System specific: 61000019) 0xa000000000009 0x0000000000000001 (NEEDED) Shared library: [libScePad.prx] 0x0000000061000045 (Operating System specific: 61000045) 0xc010100002024 0x0000000061000049 (Operating System specific: 61000049) 0xb000100002024 0x0000000061000019 (Operating System specific: 61000019) 0xb000000000009 0x0000000000000001 (NEEDED) Shared library: [libkernel.prx] 0x0000000061000045 (Operating System specific: 61000045) 0xd01010000203c 0x0000000061000049 (Operating System specific: 61000049) 0xc000100002046 0x0000000061000019 (Operating System specific: 61000019) 0xc000000000009 0x0000000000000001 (NEEDED) Shared library: [libSceAudioOut.prx] 0x0000000061000045 (Operating System specific: 61000045) 0xe010100002065 0x0000000061000049 (Operating System specific: 61000049) 0xd000100002065 0x0000000061000019 (Operating System specific: 61000019) 0xd000000000009 0x0000000000000001 (NEEDED) Shared library: [libSceCommonDialog.prx] 0x0000000061000045 (Operating System specific: 61000045) 0xf01010000208b 0x0000000061000049 (Operating System specific: 61000049) 0xe00010000208b 0x0000000061000019 (Operating System specific: 61000019) 0xe000000000009 0x0000000000000001 (NEEDED) Shared library: [libSceUlt.prx] 0x0000000061000045 (Operating System specific: 61000045) 0x100101000020ac 0x0000000061000049 (Operating System specific: 61000049) 0xf0001000020ac 0x0000000061000019 (Operating System specific: 61000019) 0xf000000000009 0x0000000000000001 (NEEDED) Shared library: [libSceSystemService.prx] 0x0000000061000045 (Operating System specific: 61000045) 0x110101000020ce 0x0000000061000049 (Operating System specific: 61000049) 0x100001000020ce 0x0000000061000019 (Operating System specific: 61000019) 0x10000000000009 0x0000000000000001 (NEEDED) Shared library: [libSceNpGameIntent.prx] 0x0000000061000045 (Operating System specific: 61000045) 0x120101000020f9 0x0000000061000049 (Operating System specific: 61000049) 0x110001000020f9 0x0000000061000019 (Operating System specific: 61000019) 0x11000000000009 0x0000000061000049 (Operating System specific: 61000049) 0x1200010000203c 0x0000000061000019 (Operating System specific: 61000019) 0x12000000000009 0x0000000000000001 (NEEDED) Shared library: [libc.prx] 0x0000000061000045 (Operating System specific: 61000045) 0x13010100002115 0x0000000061000049 (Operating System specific: 61000049) 0x13000100002115 0x0000000061000019 (Operating System specific: 61000019) 0x13000000000009 0x0000000000000001 (NEEDED) Shared library: [libSceUserService.prx] 0x0000000061000045 (Operating System specific: 61000045) 0x14010100002130 0x0000000061000049 (Operating System specific: 61000049) 0x14000100002130 0x0000000061000019 (Operating System specific: 61000019) 0x14000000000009 0x0000000061000043 (Operating System specific: 61000043) 0x10100002142 0x0000000061000011 (Operating System specific: 61000011) 0x0 0x0000000061000041 (Operating System specific: 61000041) 0x2149 0x0000000000000015 (DEBUG) 0x0 0x0000000000000007 (RELA) 0x4ce6f8 0x0000000000000008 (RELASZ) 2887992 (bytes) 0x0000000000000009 (RELAENT) 24 (bytes) 0x000000006ffffff9 (RELACOUNT) 119961 0x0000000000000017 (JMPREL) 0x4cbd70 0x0000000000000002 (PLTRELSZ) 10632 (bytes) 0x0000000000000003 (PLTGOT) 0x4943c8 0x0000000000000014 (PLTREL) RELA 0x0000000000000006 (SYMTAB) 0x4c8fe0 0x000000000000000b (SYMENT) 24 (bytes) 0x0000000000000005 (STRTAB) 0x4c6e50 0x000000000000000a (STRSZ) 8585 (bytes) 0x0000000000000004 (HASH) 0x78f830 0x0000000000000020 (PREINIT_ARRAY) 0x0 0x0000000000000021 (PREINIT_ARRAYSZ) 0 (bytes) 0x0000000000000019 (INIT_ARRAY) 0x0 0x000000000000001b (INIT_ARRAYSZ) 0 (bytes) 0x000000000000001a (FINI_ARRAY) 0x0 0x000000000000001c (FINI_ARRAYSZ) 0 (bytes) 0x000000000000000c (INIT) 0x10 0x000000000000000d (FINI) 0x2e7070 0x000000006100003f (Operating System specific: 6100003f) 0x2d90 0x000000006100003d (Operating System specific: 6100003d) 0xf38 0x0000000000000000 (NULL) 0x0 PS D:\Game> Get-FileHash -Algorithm SHA256 eboot.bin | Select-Object Hash, @{N="SizeInBytes";E={(Get-Item $_.Path).Length}} | Format-List Hash : A145DC191540269B75FF76F1BBFD44FC9F4C783B98EF9BDEDF1D8C22999D27D2 SizeInBytes : 7806888 PS D:\Game> cd C:\AnyPS5 PS C:\AnyPS5> PS C:\AnyPS5> # Current failing commit PS C:\AnyPS5> git rev-parse HEAD be403084c63426e793116936555daf7be35d774c PS C:\AnyPS5> PS C:\AnyPS5> # View recent commit history to identify yesterday's working commit hash PS C:\AnyPS5> git log --oneline -n 10 be403084 (HEAD -> main, origin/main, origin/HEAD) Merge pull request #1141 from nicolasabosch/feat/kernel-pthread-cancel 663cc42c Merge pull request #2636 from adriadam10/feat/gpl-libraries 6675e60b Merge pull request #2409 from danzaio/feat/rudp-activate c84694ad Merge pull request #1905 from Raghav314/fix/agc-address-builds-gpu-access ef9d0dd7 chore(libkernel): drop the pthread_cancel comment 3acca27f feat(libkernel): implement thread cancellation 948a526c Merge pull request #407 from Pouare514/feat/deathloop-loading 00d4e3a5 Merge pull request #976 from Saibamen/ci/release-parity 1052fcc7 Merge pull request #2593 from eliasbruno124-dev/fix/agc-bulk-resource-unavailable aad13ac1 Merge pull request #1147 from alfalfa-star/perf/agc-staging-pool-heap-budget
MarcZX10 commented 2026-10-10 10:37:38 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-10T10:37:38Z.


Thanks, this narrows it down. The PT_DYNAMIC shown for eboot.bin is within the file:

Value Reported
PT_DYNAMIC p_offset 0x770790
PT_DYNAMIC p_filesz 0x6e0
End of dynamic range 0x770e70
eboot.bin size 0x771fa8
Offset in the relinker error 0x10298

So this PT_DYNAMIC range fits in this eboot.bin, and its offset does not match the offset in the failure. That suggests the relinker may be receiving a different ELF than the one inspected, or the failing run used another path/build.

Could you paste the exact command line used for the failing run and confirm the input path passed to relinker.exe? Please run Get-FileHash -Algorithm SHA256 and report the file size for that exact input path (it is fine to redact user-specific directories). If the input is this same eboot.bin, please confirm that explicitly. The failing AnyPS5 commit is be403084; the earlier successful commit is still unknown, so any commit/hash from a working run would also help establish whether this is a regression.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6096634098 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/2663#issuecomment-6096634098). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-10T10:37:38Z. --- Thanks, this narrows it down. The `PT_DYNAMIC` shown for `eboot.bin` is within the file: | Value | Reported | |---|---:| | `PT_DYNAMIC p_offset` | `0x770790` | | `PT_DYNAMIC p_filesz` | `0x6e0` | | End of dynamic range | `0x770e70` | | `eboot.bin` size | `0x771fa8` | | Offset in the relinker error | `0x10298` | So this `PT_DYNAMIC` range fits in this `eboot.bin`, and its offset does not match the offset in the failure. That suggests the relinker may be receiving a different ELF than the one inspected, or the failing run used another path/build. Could you paste the exact command line used for the failing run and confirm the input path passed to `relinker.exe`? Please run `Get-FileHash -Algorithm SHA256` and report the file size for that exact input path (it is fine to redact user-specific directories). If the input is this same `eboot.bin`, please confirm that explicitly. The failing AnyPS5 commit is `be403084`; the earlier successful commit is still unknown, so any commit/hash from a working run would also help establish whether this is a regression.
MarcZX10 commented 2026-10-10 10:38:41 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-10T10:38:41Z.


Thanks for confirming the older working build is no longer available. I checked the code history as another discriminator: the files that read the executable's program headers and PT_DYNAMIC (ElfReader.cpp and RelinkerPipeline.cpp) have no changes between failing commit be403084 and current main a29ef592.

For the exact eboot.bin hash you provided, the displayed PT_DYNAMIC range is valid, but the reported failure offset is different. With the previous build gone, the useful next check is to rerun this same hashed input with a relinker built from current main and include the exact command line/input path from that run. If it still reports 0x10298, please also include the complete error output (including any Input: line) and readelf -lW output from that exact input path. That will confirm whether the file being inspected is the file the relinker receives.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6096642029 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/2663#issuecomment-6096642029). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-10T10:38:41Z. --- Thanks for confirming the older working build is no longer available. I checked the code history as another discriminator: the files that read the executable's program headers and `PT_DYNAMIC` (`ElfReader.cpp` and `RelinkerPipeline.cpp`) have no changes between failing commit `be403084` and current `main` `a29ef592`. For the exact `eboot.bin` hash you provided, the displayed `PT_DYNAMIC` range is valid, but the reported failure offset is different. With the previous build gone, the useful next check is to rerun this same hashed input with a relinker built from current `main` and include the exact command line/input path from that run. If it still reports `0x10298`, please also include the complete error output (including any `Input:` line) and `readelf -lW` output from that exact input path. That will confirm whether the file being inspected is the file the relinker receives.
LightStorm72 commented 2026-10-10 10:46:38 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by LightStorm72 on 2026-10-10T10:46:38Z.


@MarcZX100 Is this all you need? I'm trying my best.

PowerShell 7.6.6
PS D:\Game1> C:\AnyPS5\build\core\relinker\relinker.exe --windows eboot.bin app.exe
System: Windows; unused-filter=0
sce_module/sce_modules/prx processing: enabled
NID input: 815 references
Unused NID filtering: disabled; filtered=0
NID total: 815 -> 815; filtered=0
FAIL: Dynamic segment out of bounds (offset 0x10298)
PS D:\Game1> Get-FileHash -Algorithm SHA256 eboot.bin | Select-Object Path, Hash, @{N="SizeInBytes";E={(Get-Item $_.Path).Length}} | Format-List

Path        : D:\Game1\eboot.bin
Hash        : A145DC191540269B75FF76F1BBFD44FC9F4C783B98EF9BDEDF1D8C22999D27D2
SizeInBytes : 7806888

PS D:\Game1> cd C:\AnyPS5
PS C:\AnyPS5> git log --oneline -n 15
be403084 (HEAD -> main, origin/main, origin/HEAD) Merge pull request #1141 from nicolasabosch/feat/kernel-pthread-cancel
663cc42c Merge pull request #2636 from adriadam10/feat/gpl-libraries
6675e60b Merge pull request #2409 from danzaio/feat/rudp-activate
c84694ad Merge pull request #1905 from Raghav314/fix/agc-address-builds-gpu-access
ef9d0dd7 chore(libkernel): drop the pthread_cancel comment
3acca27f feat(libkernel): implement thread cancellation
948a526c Merge pull request #407 from Pouare514/feat/deathloop-loading
00d4e3a5 Merge pull request #976 from Saibamen/ci/release-parity
1052fcc7 Merge pull request #2593 from eliasbruno124-dev/fix/agc-bulk-resource-unavailable
aad13ac1 Merge pull request #1147 from alfalfa-star/perf/agc-staging-pool-heap-budget
cb6870f9 Merge pull request #2538 from husseinkad/fix/windows-stat-file-identity
0a04c865 perf(agc): link graphics pipelines from per-stage libraries
cd73e149 Merge pull request #1290 from SirDarky/fix/shader-mac-legacy-denormals
3afc7846 Merge pull request #2543 from overlordxrz-source/feat/libkernel-kill
b4a4133c Merge pull request #2530 from hazzardouslysolid/fix/png-truncated-transparency
PS C:\AnyPS5> cd C:\AnyPS5
PS C:\AnyPS5> cmake --build build --target relinker
[0/2] Re-checking globbed directories...
ninja: no work to do.
PS C:\AnyPS5> C:\AnyPS5\build\core\relinker\relinker.exe --windows --registry "D:\Game1\eboot.bin" "D:\Dreaming Sarah\app.exe"
System: Windows; unused-filter=0
sce_module/sce_modules/prx processing: enabled
NID input: 815 references
Unused NID filtering: disabled; filtered=0
NID total: 815 -> 815; filtered=0
FAIL: Dynamic segment out of bounds (offset 0x10298)
PS C:\AnyPS5>

PS D:\Game1> readelf -h -lW -d eboot.bin
ELF Header:
  Magic:   7f 45 4c 46 02 01 01 09 02 00 00 00 00 00 00 00
  Class:                             ELF64
  Data:                              2's complement, little endian
  Version:                           1 (current)
  OS/ABI:                            UNIX - FreeBSD
  ABI Version:                       2
  Type:                              OS Specific: (fe10)
  Machine:                           Advanced Micro Devices X86-64
  Version:                           0x1
  Entry point address:               0x70
  Start of program headers:          64 (bytes into file)
  Start of section headers:          36299856 (bytes into file)
  Flags:                             0x0
  Size of this header:               64 (bytes)
  Size of program headers:           56 (bytes)
  Number of program headers:         14
  Size of section headers:           64 (bytes)
  Number of section headers:         46
  Section header string table index: 44
readelf: Error: Reading 2944 bytes extends past end of file for section headers

Program Headers:
  Type           Offset   VirtAddr           PhysAddr           FileSiz  MemSiz   Flg Align
  LOAD           0x004000 0x0000000000000000 0x0000000000000000 0x2e70bc 0x2e70bc   E 0x4000
  LOAD           0x2ec000 0x00000000002e8000 0x00000000002e8000 0x08b1c1 0x08b1c1 R   0x4000
  LOAD           0x378000 0x0000000000374000 0x0000000000374000 0x121380 0x121380 RW  0x4000
  GNU_RELRO      0x378000 0x0000000000374000 0x0000000000374000 0x121380 0x124000 R   0x1
  LOAD           0x49c000 0x0000000000498000 0x0000000000498000 0x008200 0x02ee48 RW  0x4000
  LOOS+0x1000001 0x499318 0x0000000000495318 0x0000000000495318 0x000060 0x000060 R   0x8
  DYNAMIC        0x770790 0x0000000000790790 0x0000000000790790 0x0006e0 0x0006e0 RW  0x8
  TLS            0x499380 0x0000000000495380 0x0000000000495380 0x000000 0x001868 R   0x10
  GNU_EH_FRAME   0x36528c 0x000000000036128c 0x000000000036128c 0x011f35 0x011f35 R   0x4
  LOAD           0x4a6e50 0x00000000004c6e50 0x00000000004c6e50 0x2ca020 0x2ca020     0x4000
  LOOS+0xfffff00 0x770e70 0x0000000000000000 0x0000000000000000 0x00004c 0x000000     0x10
  LOOS+0xfffff01 0x770ebc 0x0000000000000000 0x0000000000000000 0x0010d2 0x0010d2     0x1
  NOTE           0x770768 0x0000000000790768 0x0000000000790768 0x000024 0x000024     0x4
  NOTE           0x771f90 0x0000000000000000 0x0000000000000000 0x000018 0x000000     0x4

Dynamic section at offset 0x770790 contains 110 entries:
  Tag        Type                         Name/Value
 0x0000000000000001 (NEEDED)             Shared library: [libSceAgc.prx]
 0x0000000061000045 (Operating System specific: 61000045)                0x1010100001e5f
 0x0000000061000049 (Operating System specific: 61000049)                0x100001e5f
 0x0000000061000019 (Operating System specific: 61000019)                0x9
 0x0000000000000001 (NEEDED)             Shared library: [libSceAgcDriver.prx]
 0x0000000061000045 (Operating System specific: 61000045)                0x2010100001e7d
 0x0000000061000049 (Operating System specific: 61000049)                0x1000100001e7d
 0x0000000061000019 (Operating System specific: 61000019)                0x1000000000009
 0x0000000000000001 (NEEDED)             Shared library: [libSceVideoOut.prx]
 0x0000000061000045 (Operating System specific: 61000045)                0x3010100001ea0
 0x0000000061000049 (Operating System specific: 61000049)                0x2000100001ea0
 0x0000000061000019 (Operating System specific: 61000019)                0x2000000000009
 0x0000000000000001 (NEEDED)             Shared library: [libSceSysmodule.prx]
 0x0000000061000045 (Operating System specific: 61000045)                0x4010100001ec3
 0x0000000061000049 (Operating System specific: 61000049)                0x3000100001ec3
 0x0000000061000019 (Operating System specific: 61000019)                0x3000000000009
 0x0000000000000001 (NEEDED)             Shared library: [libSceNpUniversalDataSystem.prx]
 0x0000000061000045 (Operating System specific: 61000045)                0x5010100001ef3
 0x0000000061000049 (Operating System specific: 61000049)                0x4000100001ef3
 0x0000000061000019 (Operating System specific: 61000019)                0x4000000000009
 0x0000000000000001 (NEEDED)             Shared library: [libSceNpTrophy2.prx]
 0x0000000061000045 (Operating System specific: 61000045)                0x6010100001f23
 0x0000000061000049 (Operating System specific: 61000049)                0x5000100001f23
 0x0000000061000019 (Operating System specific: 61000019)                0x5000000000009
 0x0000000000000001 (NEEDED)             Shared library: [libSceSaveData.native.prx]
 0x0000000061000045 (Operating System specific: 61000045)                0x7010100001f4d
 0x0000000061000049 (Operating System specific: 61000049)                0x6000100001f4d
 0x0000000061000019 (Operating System specific: 61000019)                0x6000000000009
 0x0000000000000001 (NEEDED)             Shared library: [libSceSaveDataDialog.native.prx]
 0x0000000061000045 (Operating System specific: 61000045)                0x8010100001f83
 0x0000000061000049 (Operating System specific: 61000049)                0x7000100001f98
 0x0000000061000019 (Operating System specific: 61000019)                0x7000000000009
 0x0000000000000001 (NEEDED)             Shared library: [libSceIme.prx]
 0x0000000061000045 (Operating System specific: 61000045)                0x9010100001fc2
 0x0000000061000049 (Operating System specific: 61000049)                0x8000100001fc2
 0x0000000061000019 (Operating System specific: 61000019)                0x8000000000009
 0x0000000000000001 (NEEDED)             Shared library: [libSceImeBackend.prx]
 0x0000000061000045 (Operating System specific: 61000045)                0xa010100001fe1
 0x0000000061000049 (Operating System specific: 61000049)                0x9000100001fe1
 0x0000000061000019 (Operating System specific: 61000019)                0x9000000000009
 0x0000000000000001 (NEEDED)             Shared library: [libSceImeDialog.prx]
 0x0000000061000045 (Operating System specific: 61000045)                0xb010100002006
 0x0000000061000049 (Operating System specific: 61000049)                0xa000100002006
 0x0000000061000019 (Operating System specific: 61000019)                0xa000000000009
 0x0000000000000001 (NEEDED)             Shared library: [libScePad.prx]
 0x0000000061000045 (Operating System specific: 61000045)                0xc010100002024
 0x0000000061000049 (Operating System specific: 61000049)                0xb000100002024
 0x0000000061000019 (Operating System specific: 61000019)                0xb000000000009
 0x0000000000000001 (NEEDED)             Shared library: [libkernel.prx]
 0x0000000061000045 (Operating System specific: 61000045)                0xd01010000203c
 0x0000000061000049 (Operating System specific: 61000049)                0xc000100002046
 0x0000000061000019 (Operating System specific: 61000019)                0xc000000000009
 0x0000000000000001 (NEEDED)             Shared library: [libSceAudioOut.prx]
 0x0000000061000045 (Operating System specific: 61000045)                0xe010100002065
 0x0000000061000049 (Operating System specific: 61000049)                0xd000100002065
 0x0000000061000019 (Operating System specific: 61000019)                0xd000000000009
 0x0000000000000001 (NEEDED)             Shared library: [libSceCommonDialog.prx]
 0x0000000061000045 (Operating System specific: 61000045)                0xf01010000208b
 0x0000000061000049 (Operating System specific: 61000049)                0xe00010000208b
 0x0000000061000019 (Operating System specific: 61000019)                0xe000000000009
 0x0000000000000001 (NEEDED)             Shared library: [libSceUlt.prx]
 0x0000000061000045 (Operating System specific: 61000045)                0x100101000020ac
 0x0000000061000049 (Operating System specific: 61000049)                0xf0001000020ac
 0x0000000061000019 (Operating System specific: 61000019)                0xf000000000009
 0x0000000000000001 (NEEDED)             Shared library: [libSceSystemService.prx]
 0x0000000061000045 (Operating System specific: 61000045)                0x110101000020ce
 0x0000000061000049 (Operating System specific: 61000049)                0x100001000020ce
 0x0000000061000019 (Operating System specific: 61000019)                0x10000000000009
 0x0000000000000001 (NEEDED)             Shared library: [libSceNpGameIntent.prx]
 0x0000000061000045 (Operating System specific: 61000045)                0x120101000020f9
 0x0000000061000049 (Operating System specific: 61000049)                0x110001000020f9
 0x0000000061000019 (Operating System specific: 61000019)                0x11000000000009
 0x0000000061000049 (Operating System specific: 61000049)                0x1200010000203c
 0x0000000061000019 (Operating System specific: 61000019)                0x12000000000009
 0x0000000000000001 (NEEDED)             Shared library: [libc.prx]
 0x0000000061000045 (Operating System specific: 61000045)                0x13010100002115
 0x0000000061000049 (Operating System specific: 61000049)                0x13000100002115
 0x0000000061000019 (Operating System specific: 61000019)                0x13000000000009
 0x0000000000000001 (NEEDED)             Shared library: [libSceUserService.prx]
 0x0000000061000045 (Operating System specific: 61000045)                0x14010100002130
 0x0000000061000049 (Operating System specific: 61000049)                0x14000100002130
 0x0000000061000019 (Operating System specific: 61000019)                0x14000000000009
 0x0000000061000043 (Operating System specific: 61000043)                0x10100002142
 0x0000000061000011 (Operating System specific: 61000011)                0x0
 0x0000000061000041 (Operating System specific: 61000041)                0x2149
 0x0000000000000015 (DEBUG)              0x0
 0x0000000000000007 (RELA)               0x4ce6f8
 0x0000000000000008 (RELASZ)             2887992 (bytes)
 0x0000000000000009 (RELAENT)            24 (bytes)
 0x000000006ffffff9 (RELACOUNT)          119961
 0x0000000000000017 (JMPREL)             0x4cbd70
 0x0000000000000002 (PLTRELSZ)           10632 (bytes)
 0x0000000000000003 (PLTGOT)             0x4943c8
 0x0000000000000014 (PLTREL)             RELA
 0x0000000000000006 (SYMTAB)             0x4c8fe0
 0x000000000000000b (SYMENT)             24 (bytes)
 0x0000000000000005 (STRTAB)             0x4c6e50
 0x000000000000000a (STRSZ)              8585 (bytes)
 0x0000000000000004 (HASH)               0x78f830
 0x0000000000000020 (PREINIT_ARRAY)      0x0
 0x0000000000000021 (PREINIT_ARRAYSZ)    0 (bytes)
 0x0000000000000019 (INIT_ARRAY)         0x0
 0x000000000000001b (INIT_ARRAYSZ)       0 (bytes)
 0x000000000000001a (FINI_ARRAY)         0x0
 0x000000000000001c (FINI_ARRAYSZ)       0 (bytes)
 0x000000000000000c (INIT)               0x10
 0x000000000000000d (FINI)               0x2e7070
 0x000000006100003f (Operating System specific: 6100003f)                0x2d90
 0x000000006100003d (Operating System specific: 6100003d)                0xf38
 0x0000000000000000 (NULL)               0x0
PS D:\Game1>
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6096699775 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/2663#issuecomment-6096699775). Originally posted by [LightStorm72](https://github.com/LightStorm72) on 2026-10-10T10:46:38Z. --- @MarcZX100 Is this all you need? I'm trying my best. ```text PowerShell 7.6.6 PS D:\Game1> C:\AnyPS5\build\core\relinker\relinker.exe --windows eboot.bin app.exe System: Windows; unused-filter=0 sce_module/sce_modules/prx processing: enabled NID input: 815 references Unused NID filtering: disabled; filtered=0 NID total: 815 -> 815; filtered=0 FAIL: Dynamic segment out of bounds (offset 0x10298) PS D:\Game1> Get-FileHash -Algorithm SHA256 eboot.bin | Select-Object Path, Hash, @{N="SizeInBytes";E={(Get-Item $_.Path).Length}} | Format-List Path : D:\Game1\eboot.bin Hash : A145DC191540269B75FF76F1BBFD44FC9F4C783B98EF9BDEDF1D8C22999D27D2 SizeInBytes : 7806888 PS D:\Game1> cd C:\AnyPS5 PS C:\AnyPS5> git log --oneline -n 15 be403084 (HEAD -> main, origin/main, origin/HEAD) Merge pull request #1141 from nicolasabosch/feat/kernel-pthread-cancel 663cc42c Merge pull request #2636 from adriadam10/feat/gpl-libraries 6675e60b Merge pull request #2409 from danzaio/feat/rudp-activate c84694ad Merge pull request #1905 from Raghav314/fix/agc-address-builds-gpu-access ef9d0dd7 chore(libkernel): drop the pthread_cancel comment 3acca27f feat(libkernel): implement thread cancellation 948a526c Merge pull request #407 from Pouare514/feat/deathloop-loading 00d4e3a5 Merge pull request #976 from Saibamen/ci/release-parity 1052fcc7 Merge pull request #2593 from eliasbruno124-dev/fix/agc-bulk-resource-unavailable aad13ac1 Merge pull request #1147 from alfalfa-star/perf/agc-staging-pool-heap-budget cb6870f9 Merge pull request #2538 from husseinkad/fix/windows-stat-file-identity 0a04c865 perf(agc): link graphics pipelines from per-stage libraries cd73e149 Merge pull request #1290 from SirDarky/fix/shader-mac-legacy-denormals 3afc7846 Merge pull request #2543 from overlordxrz-source/feat/libkernel-kill b4a4133c Merge pull request #2530 from hazzardouslysolid/fix/png-truncated-transparency PS C:\AnyPS5> cd C:\AnyPS5 PS C:\AnyPS5> cmake --build build --target relinker [0/2] Re-checking globbed directories... ninja: no work to do. PS C:\AnyPS5> C:\AnyPS5\build\core\relinker\relinker.exe --windows --registry "D:\Game1\eboot.bin" "D:\Dreaming Sarah\app.exe" System: Windows; unused-filter=0 sce_module/sce_modules/prx processing: enabled NID input: 815 references Unused NID filtering: disabled; filtered=0 NID total: 815 -> 815; filtered=0 FAIL: Dynamic segment out of bounds (offset 0x10298) PS C:\AnyPS5> PS D:\Game1> readelf -h -lW -d eboot.bin ELF Header: Magic: 7f 45 4c 46 02 01 01 09 02 00 00 00 00 00 00 00 Class: ELF64 Data: 2's complement, little endian Version: 1 (current) OS/ABI: UNIX - FreeBSD ABI Version: 2 Type: OS Specific: (fe10) Machine: Advanced Micro Devices X86-64 Version: 0x1 Entry point address: 0x70 Start of program headers: 64 (bytes into file) Start of section headers: 36299856 (bytes into file) Flags: 0x0 Size of this header: 64 (bytes) Size of program headers: 56 (bytes) Number of program headers: 14 Size of section headers: 64 (bytes) Number of section headers: 46 Section header string table index: 44 readelf: Error: Reading 2944 bytes extends past end of file for section headers Program Headers: Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align LOAD 0x004000 0x0000000000000000 0x0000000000000000 0x2e70bc 0x2e70bc E 0x4000 LOAD 0x2ec000 0x00000000002e8000 0x00000000002e8000 0x08b1c1 0x08b1c1 R 0x4000 LOAD 0x378000 0x0000000000374000 0x0000000000374000 0x121380 0x121380 RW 0x4000 GNU_RELRO 0x378000 0x0000000000374000 0x0000000000374000 0x121380 0x124000 R 0x1 LOAD 0x49c000 0x0000000000498000 0x0000000000498000 0x008200 0x02ee48 RW 0x4000 LOOS+0x1000001 0x499318 0x0000000000495318 0x0000000000495318 0x000060 0x000060 R 0x8 DYNAMIC 0x770790 0x0000000000790790 0x0000000000790790 0x0006e0 0x0006e0 RW 0x8 TLS 0x499380 0x0000000000495380 0x0000000000495380 0x000000 0x001868 R 0x10 GNU_EH_FRAME 0x36528c 0x000000000036128c 0x000000000036128c 0x011f35 0x011f35 R 0x4 LOAD 0x4a6e50 0x00000000004c6e50 0x00000000004c6e50 0x2ca020 0x2ca020 0x4000 LOOS+0xfffff00 0x770e70 0x0000000000000000 0x0000000000000000 0x00004c 0x000000 0x10 LOOS+0xfffff01 0x770ebc 0x0000000000000000 0x0000000000000000 0x0010d2 0x0010d2 0x1 NOTE 0x770768 0x0000000000790768 0x0000000000790768 0x000024 0x000024 0x4 NOTE 0x771f90 0x0000000000000000 0x0000000000000000 0x000018 0x000000 0x4 Dynamic section at offset 0x770790 contains 110 entries: Tag Type Name/Value 0x0000000000000001 (NEEDED) Shared library: [libSceAgc.prx] 0x0000000061000045 (Operating System specific: 61000045) 0x1010100001e5f 0x0000000061000049 (Operating System specific: 61000049) 0x100001e5f 0x0000000061000019 (Operating System specific: 61000019) 0x9 0x0000000000000001 (NEEDED) Shared library: [libSceAgcDriver.prx] 0x0000000061000045 (Operating System specific: 61000045) 0x2010100001e7d 0x0000000061000049 (Operating System specific: 61000049) 0x1000100001e7d 0x0000000061000019 (Operating System specific: 61000019) 0x1000000000009 0x0000000000000001 (NEEDED) Shared library: [libSceVideoOut.prx] 0x0000000061000045 (Operating System specific: 61000045) 0x3010100001ea0 0x0000000061000049 (Operating System specific: 61000049) 0x2000100001ea0 0x0000000061000019 (Operating System specific: 61000019) 0x2000000000009 0x0000000000000001 (NEEDED) Shared library: [libSceSysmodule.prx] 0x0000000061000045 (Operating System specific: 61000045) 0x4010100001ec3 0x0000000061000049 (Operating System specific: 61000049) 0x3000100001ec3 0x0000000061000019 (Operating System specific: 61000019) 0x3000000000009 0x0000000000000001 (NEEDED) Shared library: [libSceNpUniversalDataSystem.prx] 0x0000000061000045 (Operating System specific: 61000045) 0x5010100001ef3 0x0000000061000049 (Operating System specific: 61000049) 0x4000100001ef3 0x0000000061000019 (Operating System specific: 61000019) 0x4000000000009 0x0000000000000001 (NEEDED) Shared library: [libSceNpTrophy2.prx] 0x0000000061000045 (Operating System specific: 61000045) 0x6010100001f23 0x0000000061000049 (Operating System specific: 61000049) 0x5000100001f23 0x0000000061000019 (Operating System specific: 61000019) 0x5000000000009 0x0000000000000001 (NEEDED) Shared library: [libSceSaveData.native.prx] 0x0000000061000045 (Operating System specific: 61000045) 0x7010100001f4d 0x0000000061000049 (Operating System specific: 61000049) 0x6000100001f4d 0x0000000061000019 (Operating System specific: 61000019) 0x6000000000009 0x0000000000000001 (NEEDED) Shared library: [libSceSaveDataDialog.native.prx] 0x0000000061000045 (Operating System specific: 61000045) 0x8010100001f83 0x0000000061000049 (Operating System specific: 61000049) 0x7000100001f98 0x0000000061000019 (Operating System specific: 61000019) 0x7000000000009 0x0000000000000001 (NEEDED) Shared library: [libSceIme.prx] 0x0000000061000045 (Operating System specific: 61000045) 0x9010100001fc2 0x0000000061000049 (Operating System specific: 61000049) 0x8000100001fc2 0x0000000061000019 (Operating System specific: 61000019) 0x8000000000009 0x0000000000000001 (NEEDED) Shared library: [libSceImeBackend.prx] 0x0000000061000045 (Operating System specific: 61000045) 0xa010100001fe1 0x0000000061000049 (Operating System specific: 61000049) 0x9000100001fe1 0x0000000061000019 (Operating System specific: 61000019) 0x9000000000009 0x0000000000000001 (NEEDED) Shared library: [libSceImeDialog.prx] 0x0000000061000045 (Operating System specific: 61000045) 0xb010100002006 0x0000000061000049 (Operating System specific: 61000049) 0xa000100002006 0x0000000061000019 (Operating System specific: 61000019) 0xa000000000009 0x0000000000000001 (NEEDED) Shared library: [libScePad.prx] 0x0000000061000045 (Operating System specific: 61000045) 0xc010100002024 0x0000000061000049 (Operating System specific: 61000049) 0xb000100002024 0x0000000061000019 (Operating System specific: 61000019) 0xb000000000009 0x0000000000000001 (NEEDED) Shared library: [libkernel.prx] 0x0000000061000045 (Operating System specific: 61000045) 0xd01010000203c 0x0000000061000049 (Operating System specific: 61000049) 0xc000100002046 0x0000000061000019 (Operating System specific: 61000019) 0xc000000000009 0x0000000000000001 (NEEDED) Shared library: [libSceAudioOut.prx] 0x0000000061000045 (Operating System specific: 61000045) 0xe010100002065 0x0000000061000049 (Operating System specific: 61000049) 0xd000100002065 0x0000000061000019 (Operating System specific: 61000019) 0xd000000000009 0x0000000000000001 (NEEDED) Shared library: [libSceCommonDialog.prx] 0x0000000061000045 (Operating System specific: 61000045) 0xf01010000208b 0x0000000061000049 (Operating System specific: 61000049) 0xe00010000208b 0x0000000061000019 (Operating System specific: 61000019) 0xe000000000009 0x0000000000000001 (NEEDED) Shared library: [libSceUlt.prx] 0x0000000061000045 (Operating System specific: 61000045) 0x100101000020ac 0x0000000061000049 (Operating System specific: 61000049) 0xf0001000020ac 0x0000000061000019 (Operating System specific: 61000019) 0xf000000000009 0x0000000000000001 (NEEDED) Shared library: [libSceSystemService.prx] 0x0000000061000045 (Operating System specific: 61000045) 0x110101000020ce 0x0000000061000049 (Operating System specific: 61000049) 0x100001000020ce 0x0000000061000019 (Operating System specific: 61000019) 0x10000000000009 0x0000000000000001 (NEEDED) Shared library: [libSceNpGameIntent.prx] 0x0000000061000045 (Operating System specific: 61000045) 0x120101000020f9 0x0000000061000049 (Operating System specific: 61000049) 0x110001000020f9 0x0000000061000019 (Operating System specific: 61000019) 0x11000000000009 0x0000000061000049 (Operating System specific: 61000049) 0x1200010000203c 0x0000000061000019 (Operating System specific: 61000019) 0x12000000000009 0x0000000000000001 (NEEDED) Shared library: [libc.prx] 0x0000000061000045 (Operating System specific: 61000045) 0x13010100002115 0x0000000061000049 (Operating System specific: 61000049) 0x13000100002115 0x0000000061000019 (Operating System specific: 61000019) 0x13000000000009 0x0000000000000001 (NEEDED) Shared library: [libSceUserService.prx] 0x0000000061000045 (Operating System specific: 61000045) 0x14010100002130 0x0000000061000049 (Operating System specific: 61000049) 0x14000100002130 0x0000000061000019 (Operating System specific: 61000019) 0x14000000000009 0x0000000061000043 (Operating System specific: 61000043) 0x10100002142 0x0000000061000011 (Operating System specific: 61000011) 0x0 0x0000000061000041 (Operating System specific: 61000041) 0x2149 0x0000000000000015 (DEBUG) 0x0 0x0000000000000007 (RELA) 0x4ce6f8 0x0000000000000008 (RELASZ) 2887992 (bytes) 0x0000000000000009 (RELAENT) 24 (bytes) 0x000000006ffffff9 (RELACOUNT) 119961 0x0000000000000017 (JMPREL) 0x4cbd70 0x0000000000000002 (PLTRELSZ) 10632 (bytes) 0x0000000000000003 (PLTGOT) 0x4943c8 0x0000000000000014 (PLTREL) RELA 0x0000000000000006 (SYMTAB) 0x4c8fe0 0x000000000000000b (SYMENT) 24 (bytes) 0x0000000000000005 (STRTAB) 0x4c6e50 0x000000000000000a (STRSZ) 8585 (bytes) 0x0000000000000004 (HASH) 0x78f830 0x0000000000000020 (PREINIT_ARRAY) 0x0 0x0000000000000021 (PREINIT_ARRAYSZ) 0 (bytes) 0x0000000000000019 (INIT_ARRAY) 0x0 0x000000000000001b (INIT_ARRAYSZ) 0 (bytes) 0x000000000000001a (FINI_ARRAY) 0x0 0x000000000000001c (FINI_ARRAYSZ) 0 (bytes) 0x000000000000000c (INIT) 0x10 0x000000000000000d (FINI) 0x2e7070 0x000000006100003f (Operating System specific: 6100003f) 0x2d90 0x000000006100003d (Operating System specific: 6100003d) 0xf38 0x0000000000000000 (NULL) 0x0 PS D:\Game1>
LightStorm72 commented 2026-10-10 10:56:04 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by LightStorm72 on 2026-10-10T10:56:04Z.


@MarcZX100

Additional Context on Older Build Behavior

I can confirm that this exact eboot.bin file was successfully converted by the Relinker on an earlier build of AnyPS5 before the recent commits.

Looking at the readelf data:

  • Start of program headers: 64 (PT_LOAD and PT_DYNAMIC entries fit within the 7.8 MB file)
  • Start of section headers: 36299856 (Section headers point past EOF)

It appears earlier versions of relinker only parsed the Program Headers and ignored the out-of-bounds section header table (e_shoff), allowing the conversion to complete. The strict bounds validation in recent builds is now flagging e_shoff / section header tables pointing beyond physical EOF.

Would it be possible to add a fallback or tolerance check in ElfReader for binaries where Program Headers are valid but Section Headers are truncated/missing?

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6096766939 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/2663#issuecomment-6096766939). Originally posted by [LightStorm72](https://github.com/LightStorm72) on 2026-10-10T10:56:04Z. --- @MarcZX100 ### Additional Context on Older Build Behavior I can confirm that this exact `eboot.bin` file was successfully converted by the Relinker on an earlier build of AnyPS5 before the recent commits. Looking at the `readelf` data: - `Start of program headers:` 64 (PT_LOAD and PT_DYNAMIC entries fit within the 7.8 MB file) - `Start of section headers:` 36299856 (Section headers point past EOF) It appears earlier versions of `relinker` only parsed the Program Headers and ignored the out-of-bounds section header table (`e_shoff`), allowing the conversion to complete. The strict bounds validation in recent builds is now flagging `e_shoff` / section header tables pointing beyond physical EOF. Would it be possible to add a fallback or tolerance check in `ElfReader` for binaries where Program Headers are valid but Section Headers are truncated/missing?
LightStorm72 commented 2026-10-10 11:35:49 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by LightStorm72 on 2026-10-10T11:35:49Z.


@MarcZX100
when I use --skip-sce-module it Ran Perfectly and Generated the exe file, tried it in the old converted game and it Ran too ( Same 20fps to 10fps in game)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6097079948 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/2663#issuecomment-6097079948). Originally posted by [LightStorm72](https://github.com/LightStorm72) on 2026-10-10T11:35:49Z. --- @MarcZX100 when I use --skip-sce-module it Ran Perfectly and Generated the exe file, tried it in the old converted game and it Ran too ( Same 20fps to 10fps in game)
LightStorm72 commented 2026-10-10 11:49:40 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by LightStorm72 on 2026-10-10T11:49:40Z.


@MarcZX100

Update: Found the exact file matching the failing offset

I investigated further and found that the error offset 0x10298 matches the PT_DYNAMIC segment of sce_sys/about/right.sprx, not the main eboot.bin.

File details

  • File: sce_sys/about/right.sprx
  • Size: 66,196 bytes (0x10294)
  • SHA-256: 78874D144EE7FB1EF6B664210E2DB0507CFF162988DC6D16D8635EBB2E219831

Relevant readelf -h -lW -d output:

Type:                       OS Specific: (fe18)
Machine:                    Advanced Micro Devices X86-64
Start of section headers:   68568 (bytes into file)
Number of section headers:  27
Size of section headers:    64 (bytes)

DYNAMIC  0x010298  0x000000000000c298
         0x000000000000c298  0x0001b0  0x0001b0 RW  0x8

readelf reports these errors:

Error: Reading 1728 bytes extends past end of file for section headers
Error: the dynamic segment offset + size exceeds the size of the file
There is no dynamic section in this file.

The file ends at offset 0x10294, but its PT_DYNAMIC segment starts at 0x10298 and declares a size of 0x1B0. Therefore, the segment starts 4 bytes past EOF and extends 436 bytes beyond EOF.

By comparison, the main eboot.bin has a PT_DYNAMIC offset of 0x770790, and its declared dynamic segment fits within that file.

This appears to explain why the relinker reports Dynamic segment out of bounds (offset 0x10298).

Could you confirm whether the relinker is expected to process sce_sys/about/right.sprx during this conversion? I'm not sure whether this file is intentionally structured this way or whether it is incomplete, but the matching offset seems significant.

Thanks for helping me investigate this!

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6097186071 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/2663#issuecomment-6097186071). Originally posted by [LightStorm72](https://github.com/LightStorm72) on 2026-10-10T11:49:40Z. --- @MarcZX100 ### Update: Found the exact file matching the failing offset I investigated further and found that the error offset `0x10298` matches the `PT_DYNAMIC` segment of `sce_sys/about/right.sprx`, not the main `eboot.bin`. **File details** - File: `sce_sys/about/right.sprx` - Size: `66,196` bytes (`0x10294`) - SHA-256: `78874D144EE7FB1EF6B664210E2DB0507CFF162988DC6D16D8635EBB2E219831` **Relevant `readelf -h -lW -d` output:** ```text Type: OS Specific: (fe18) Machine: Advanced Micro Devices X86-64 Start of section headers: 68568 (bytes into file) Number of section headers: 27 Size of section headers: 64 (bytes) DYNAMIC 0x010298 0x000000000000c298 0x000000000000c298 0x0001b0 0x0001b0 RW 0x8 ``` `readelf` reports these errors: ```text Error: Reading 1728 bytes extends past end of file for section headers Error: the dynamic segment offset + size exceeds the size of the file There is no dynamic section in this file. ``` The file ends at offset `0x10294`, but its `PT_DYNAMIC` segment starts at `0x10298` and declares a size of `0x1B0`. Therefore, the segment starts 4 bytes past EOF and extends 436 bytes beyond EOF. By comparison, the main `eboot.bin` has a `PT_DYNAMIC` offset of `0x770790`, and its declared dynamic segment fits within that file. This appears to explain why the relinker reports `Dynamic segment out of bounds (offset 0x10298)`. Could you confirm whether the relinker is expected to process `sce_sys/about/right.sprx` during this conversion? I'm not sure whether this file is intentionally structured this way or whether it is incomplete, but the matching offset seems significant. Thanks for helping me investigate this!
MarcZX10 commented 2026-10-10 12:03:59 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-10T12:03:59Z.


Correction to my previous path analysis: I had missed the current recursive module-identity scan, so my conclusion that right.sprx could not be read was wrong.

The executable's direct DT_NEEDED list still does not name right.sprx, but when a needed module is unresolved, GuestModuleBuilder walks the title tree and calls GuestImageReader::ReadModuleNames on each ELF .prx, .sprx, and .suprx candidate before it knows whether that file provides a requested identity. That reader parses PT_DYNAMIC; the out-of-bounds range in right.sprx therefore aborts this discovery pass even if the file would not ultimately be selected. This matches the reported failure with module processing enabled and success with --skip-sce-module.

The current check is still correctly rejecting an invalid dynamic range. The likely issue is that recursive discovery scans unrelated title assets such as sce_sys/about/right.sprx. Open PR #2708 proposes limiting discovery to a configured module parent, which appears to address this path; its current relinker matrix still has failures, so that fix is not yet validated. The exact command is still useful to confirm which input root and module layout triggered the scan.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6097293278 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/2663#issuecomment-6097293278). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-10T12:03:59Z. --- Correction to my previous path analysis: I had missed the current recursive **module-identity** scan, so my conclusion that `right.sprx` could not be read was wrong. The executable's direct `DT_NEEDED` list still does not name `right.sprx`, but when a needed module is unresolved, `GuestModuleBuilder` walks the title tree and calls `GuestImageReader::ReadModuleNames` on each ELF `.prx`, `.sprx`, and `.suprx` candidate before it knows whether that file provides a requested identity. That reader parses `PT_DYNAMIC`; the out-of-bounds range in `right.sprx` therefore aborts this discovery pass even if the file would not ultimately be selected. This matches the reported failure with module processing enabled and success with `--skip-sce-module`. The current check is still correctly rejecting an invalid dynamic range. The likely issue is that recursive discovery scans unrelated title assets such as `sce_sys/about/right.sprx`. Open PR [#2708](https://github.com/boykopovar/AnyPS5/pull/2708) proposes limiting discovery to a configured module parent, which appears to address this path; its current relinker matrix still has failures, so that fix is not yet validated. The exact command is still useful to confirm which input root and module layout triggered the scan.
LightStorm72 commented 2026-10-10 12:17:07 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by LightStorm72 on 2026-10-10T12:17:07Z.


@MarcZX100
Thanks for the detailed explanation! I'm glad my testing helped narrow down the issue and contributed to the investigation. I'll keep an eye on PR #2708 and would be happy to help with further testing if needed. It's great to be able to contribute to the project and help the team move toward a solution.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6097393413 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/2663#issuecomment-6097393413). Originally posted by [LightStorm72](https://github.com/LightStorm72) on 2026-10-10T12:17:07Z. --- @MarcZX100 Thanks for the detailed explanation! I'm glad my testing helped narrow down the issue and contributed to the investigation. I'll keep an eye on PR #2708 and would be happy to help with further testing if needed. It's great to be able to contribute to the project and help the team move toward a solution.
DavidSamir commented 2026-10-10 12:18:17 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by DavidSamir on 2026-10-10T12:18:17Z.


Reproduced without the title on main 197ffac9 (macOS host, relinker-only build):

  • An executable whose DT_NEEDED names a library the title does not bundle, plus sce_sys/about/right.sprx whose PT_DYNAMIC starts 4 bytes past the end of the file: FAIL: Dynamic segment out of bounds (offset 0xa04), exit 2, for Linux and Windows output.
  • The same tree without right.sprx, or with --skip-sce-module: converts.
  • DOOM PPSA99666 v1.1.1 with a truncated sce_sys/about/right.sprx added: FAIL: Dynamic segment out of bounds (offset 0x145f48) for Linux, Windows and --macos output.

An executable that needs any library the title does not bundle reaches the identity scan, so a dump whose right.sprx is cut short stops there.

Two ways out, both checked with the same cases:

  1. #2708 (f756225f) removes both tree walks. The synthetic case converts for Linux and Windows output. Its five failing tests are the ones @MarcZX100 listed.
  2. DavidSamir:fix/relinker-module-search-skips-sce-sys (3d831a99, one commit on main 197ffac9) keeps the walks and leaves sce_sys beside the executable out of them: it holds package metadata, not title modules. A candidate elsewhere whose module names cannot be read is still an error, and that error now names the file (Input: <path>), which this report did not have.

Whichever direction is taken, the new cases in test_guest_module_identity.py on that branch cover this report.

Tested (the branch in 2)

  • Relinker-only Release build, ctest 90/90. No existing test changed; the cases are added to guest_module_identity.
  • The new cases fail on main with this issue's message. Removing each of the three changes in turn fails a different new case.
  • DOOM PPSA99666: the executable and the guest module are byte-identical to main's for Linux, Windows and --macos output, and identical again with the truncated right.sprx added.
  • tools/check_conventions.py --base origin/main: passed.

Not tested: Dreaming Sarah itself, and a Linux or Windows host. The Windows cases check the conversion, not a run.

AI-assisted: yes

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6097403434 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/2663#issuecomment-6097403434). Originally posted by [DavidSamir](https://github.com/DavidSamir) on 2026-10-10T12:18:17Z. --- Reproduced without the title on `main` 197ffac9 (macOS host, relinker-only build): - An executable whose `DT_NEEDED` names a library the title does not bundle, plus `sce_sys/about/right.sprx` whose `PT_DYNAMIC` starts 4 bytes past the end of the file: `FAIL: Dynamic segment out of bounds (offset 0xa04)`, exit 2, for Linux and Windows output. - The same tree without `right.sprx`, or with `--skip-sce-module`: converts. - DOOM PPSA99666 v1.1.1 with a truncated `sce_sys/about/right.sprx` added: `FAIL: Dynamic segment out of bounds (offset 0x145f48)` for Linux, Windows and `--macos` output. An executable that needs any library the title does not bundle reaches the identity scan, so a dump whose `right.sprx` is cut short stops there. Two ways out, both checked with the same cases: 1. #2708 (f756225f) removes both tree walks. The synthetic case converts for Linux and Windows output. Its five failing tests are the ones @MarcZX100 listed. 2. [`DavidSamir:fix/relinker-module-search-skips-sce-sys`](https://github.com/DavidSamir/AnyPS5/tree/fix/relinker-module-search-skips-sce-sys) (`3d831a99`, one commit on `main` 197ffac9) keeps the walks and leaves `sce_sys` beside the executable out of them: it holds package metadata, not title modules. A candidate elsewhere whose module names cannot be read is still an error, and that error now names the file (`Input: <path>`), which this report did not have. Whichever direction is taken, the new cases in `test_guest_module_identity.py` on that branch cover this report. ### Tested (the branch in 2) - Relinker-only Release build, ctest 90/90. No existing test changed; the cases are added to `guest_module_identity`. - The new cases fail on `main` with this issue's message. Removing each of the three changes in turn fails a different new case. - DOOM PPSA99666: the executable and the guest module are byte-identical to `main`'s for Linux, Windows and `--macos` output, and identical again with the truncated `right.sprx` added. - `tools/check_conventions.py --base origin/main`: passed. Not tested: Dreaming Sarah itself, and a Linux or Windows host. The Windows cases check the conversion, not a run. AI-assisted: yes
MarcZX10 commented 2026-10-10 12:25:55 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-10T12:25:55Z.


Validation of the narrow sce_sys exclusion on current main

I applied DavidSamir's commit 3d831a99 on cf8b129e and compared its synthetic regression with a clean current-main relinker:

Check Result
Synthetic sce_sys/about/right.sprx with truncated PT_DYNAMIC on unchanged main Fails as reported: Dynamic segment out of bounds
Same regression with the sce_sys exclusion Passes
Full Linux relinker CTest suite with the exclusion 97/97 passes
Conventions and git diff --check Pass

LightStorm72 independently tested the same commit on Windows 11 with MinGW-w64 GCC 15.2.0: the relinker built, CTest passed 93/93, conversion of the original Dreaming Sarah files completed without the right.sprx error, and the converted game launched. The reported frame rate was similar to the prior working conversion; no performance improvement is claimed.

This change excludes sce_sys from the fallback walks and leaves discovery in other paths, including Media/Modules, prx, and nested module directories, intact. That is a smaller behavioral change than the current #2708 head, which changes module discovery to adjacent directories and updates tests that previously covered those layouts. The current #2708 CI run is still in progress, so this comparison is based on its current diff and the completed tests above.

The local Linux run was on cf8b129e; the independent Windows run was on commit 3d831a99 based on b5f5362d. Neither replaces the project's official upstream Build workflow or a macOS-host run.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6097474817 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/2663#issuecomment-6097474817). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-10T12:25:55Z. --- ### Validation of the narrow `sce_sys` exclusion on current `main` I applied DavidSamir's commit [`3d831a99`](https://github.com/DavidSamir/AnyPS5/commit/3d831a99b8c88ef10fbeea1c1021a02d910eac71) on `cf8b129e` and compared its synthetic regression with a clean current-main relinker: | Check | Result | | --- | --- | | Synthetic `sce_sys/about/right.sprx` with truncated `PT_DYNAMIC` on unchanged `main` | Fails as reported: `Dynamic segment out of bounds` | | Same regression with the `sce_sys` exclusion | Passes | | Full Linux relinker CTest suite with the exclusion | 97/97 passes | | Conventions and `git diff --check` | Pass | LightStorm72 independently tested the same commit on Windows 11 with MinGW-w64 GCC 15.2.0: the relinker built, CTest passed 93/93, conversion of the original Dreaming Sarah files completed without the `right.sprx` error, and the converted game launched. The reported frame rate was similar to the prior working conversion; no performance improvement is claimed. This change excludes `sce_sys` from the fallback walks and leaves discovery in other paths, including `Media/Modules`, `prx`, and nested module directories, intact. That is a smaller behavioral change than the current #2708 head, which changes module discovery to adjacent directories and updates tests that previously covered those layouts. The current #2708 CI run is still in progress, so this comparison is based on its current diff and the completed tests above. The local Linux run was on `cf8b129e`; the independent Windows run was on commit `3d831a99` based on `b5f5362d`. Neither replaces the project's official upstream Build workflow or a macOS-host run.
DavidSamir commented 2026-10-10 12:30:13 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by DavidSamir on 2026-10-10T12:30:13Z.


@MarcZX100 thank you for the Linux run.

@LightStorm72 you offered to test. The one thing still missing is your dump: if you can, build the relinker from this branch and rerun your command without --skip-sce-module.

cd C:\AnyPS5
git fetch https://github.com/DavidSamir/AnyPS5.git fix/relinker-module-search-skips-sce-sys
git checkout FETCH_HEAD
cmake --build build --target relinker
cd D:\Game1
C:\AnyPS5\build\core\relinker\relinker.exe --windows eboot.bin app.exe

Expected: the conversion finishes and right.sprx is not mentioned. Only the relinker changes, so the libraries you already built stay as they are.

To go back afterwards: cd C:\AnyPS5, git checkout main, cmake --build build --target relinker.

AI-assisted: yes

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6097509026 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/2663#issuecomment-6097509026). Originally posted by [DavidSamir](https://github.com/DavidSamir) on 2026-10-10T12:30:13Z. --- @MarcZX100 thank you for the Linux run. @LightStorm72 you offered to test. The one thing still missing is your dump: if you can, build the relinker from this branch and rerun your command without `--skip-sce-module`. ``` cd C:\AnyPS5 git fetch https://github.com/DavidSamir/AnyPS5.git fix/relinker-module-search-skips-sce-sys git checkout FETCH_HEAD cmake --build build --target relinker cd D:\Game1 C:\AnyPS5\build\core\relinker\relinker.exe --windows eboot.bin app.exe ``` Expected: the conversion finishes and `right.sprx` is not mentioned. Only the relinker changes, so the libraries you already built stay as they are. To go back afterwards: `cd C:\AnyPS5`, `git checkout main`, `cmake --build build --target relinker`. AI-assisted: yes
LightStorm72 commented 2026-10-10 12:30:30 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by LightStorm72 on 2026-10-10T12:30:30Z.


Windows 11 testing results — commit 3d831a99

I tested @DavidSamir's fix/relinker-module-search-skips-sce-sys branch on Windows 11.

Environment

Results

  • Build completed successfully.
  • CTest: 93/93 tests passed.
  • Conversion succeeded with my original Dreaming Sarah files, including sce_sys/about/right.sprx.
  • The Dynamic segment out of bounds error no longer occurs.
  • The converted game launched and ran successfully.

Runtime performance

  • Main menu: approximately 17–20 FPS.
  • In-game: approximately 7–10 FPS.

The game performs about the same as it did before, so I haven't observed a performance improvement from this change. However, the original conversion issue appears to be resolved, and the game still runs.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6097511276 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/2663#issuecomment-6097511276). Originally posted by [LightStorm72](https://github.com/LightStorm72) on 2026-10-10T12:30:30Z. --- ### Windows 11 testing results — commit `3d831a99` I tested @DavidSamir's `fix/relinker-module-search-skips-sce-sys` branch on Windows 11. **Environment** - OS: Windows 11 - Compiler: MinGW-w64 GCC 15.2.0 (UCRT/POSIX/SEH) - Build: Relinker-only Release using CMake and Ninja - Tested commit: [`[3d831a99](https://github.com/DavidSamir/AnyPS5/commit/3d831a99)`](https://github.com/DavidSamir/AnyPS5/commit/3d831a99) **Results** - Build completed successfully. - CTest: **93/93 tests passed**. - Conversion succeeded with my original Dreaming Sarah files, including `sce_sys/about/right.sprx`. - The `Dynamic segment out of bounds` error no longer occurs. - The converted game launched and ran successfully. **Runtime performance** - Main menu: approximately 17–20 FPS. - In-game: approximately 7–10 FPS. The game performs about the same as it did before, so I haven't observed a performance improvement from this change. However, the original conversion issue appears to be resolved, and the game still runs.
LightStorm72 commented 2026-10-10 12:33:37 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by LightStorm72 on 2026-10-10T12:33:37Z.


@DavidSamir
this is the full Powershell Commands too

PS C:\Users\Ahmed Samir> git clone --branch fix/relinker-module-search-skips-sce-sys --single-branch https://github.com/DavidSamir/AnyPS5.git C:\AnyPS5-SceSysFix
Cloning into 'C:\AnyPS5-SceSysFix'...
remote: Enumerating objects: 54242, done.
remote: Counting objects: 100% (3495/3495), done.
remote: Compressing objects: 100% (451/451), done.
remote: Total 54242 (delta 3122), reused 3044 (delta 3044), pack-reused 50747 (from 3)
Receiving objects: 100% (54242/54242), 16.57 MiB | 3.60 MiB/s, done.
Resolving deltas: 100% (37375/37375), done.
Updating files: 100% (1910/1910), done.
PS C:\Users\Ahmed Samir> $env:PATH = "C:\mingw64\bin;$env:PATH"
PS C:\Users\Ahmed Samir> Set-Location "C:\AnyPS5-SceSysFix"
PS C:\AnyPS5-SceSysFix>
PS C:\AnyPS5-SceSysFix> g++ --version
g++.exe (MinGW-W64 x86_64-ucrt-posix-seh, built by Brecht Sanders, r7) 15.2.0
Copyright (C) 2025 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

PS C:\AnyPS5-SceSysFix>
PS C:\AnyPS5-SceSysFix> cmake -S . -B build-win -G Ninja `
>>     -DCMAKE_BUILD_TYPE=Release `
>>     -DANYPS5_RELINKER_ONLY=ON `
>>     -DBUILD_TESTING=ON `
>>     -DCMAKE_CXX_COMPILER=g++
-- The CXX compiler identification is GNU 15.2.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/mingw64/bin/g++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done (2.6s)
-- Generating done (0.2s)
-- Build files have been written to: C:/AnyPS5-SceSysFix/build-win
PS C:\AnyPS5-SceSysFix>
PS C:\AnyPS5-SceSysFix> if ($LASTEXITCODE -ne 0) {
>>     throw "CMake configuration failed"
>> }
PS C:\AnyPS5-SceSysFix>
PS C:\AnyPS5-SceSysFix> cmake --build build-win --parallel
[166/166] Linking CXX executable tests\amd64_only_converter_tests.exe
PS C:\AnyPS5-SceSysFix>
PS C:\AnyPS5-SceSysFix> if ($LASTEXITCODE -ne 0) {
>>     throw "Build failed"
>> }m
m:
Line |
   3 |  }m
     |   ~
     | The term 'm' is not recognized as a name of a cmdlet, function, script file, or executable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

[General Feedback]
  The most similar commands are:
    ➤ %, ?, gm, mi, mp

PS C:\AnyPS5-SceSysFix> $env:PATH = "C:\mingw64\bin;$env:PATH"
PS C:\AnyPS5-SceSysFix> Set-Location "C:\AnyPS5-SceSysFix"
PS C:\AnyPS5-SceSysFix>
PS C:\AnyPS5-SceSysFix> g++ --version
g++.exe (MinGW-W64 x86_64-ucrt-posix-seh, built by Brecht Sanders, r7) 15.2.0
Copyright (C) 2025 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

PS C:\AnyPS5-SceSysFix>
PS C:\AnyPS5-SceSysFix> cmake -S . -B build-win -G Ninja `
>>     -DCMAKE_BUILD_TYPE=Release `
>>     -DANYPS5_RELINKER_ONLY=ON `
>>     -DBUILD_TESTING=ON `
>>     -DCMAKE_CXX_COMPILER=g++
-- Configuring done (0.8s)
-- Generating done (0.1s)
-- Build files have been written to: C:/AnyPS5-SceSysFix/build-win
PS C:\AnyPS5-SceSysFix>
PS C:\AnyPS5-SceSysFix> if ($LASTEXITCODE -ne 0) {
>>     throw "CMake configuration failed"
>> }
PS C:\AnyPS5-SceSysFix>
PS C:\AnyPS5-SceSysFix> cmake --build build-win --parallel
ninja: no work to do.
PS C:\AnyPS5-SceSysFix>
PS C:\AnyPS5-SceSysFix> if ($LASTEXITCODE -ne 0) {
>>     throw "Build failed"
>> }
PS C:\AnyPS5-SceSysFix>
PS C:\AnyPS5-SceSysFix> if ($LASTEXITCODE -ne 0) {
>>     throw "Build failed"
>> }
PS C:\AnyPS5-SceSysFix> ctest --test-dir build-win --output-on-failure
Test project C:/AnyPS5-SceSysFix/build-win
      Start  1: pr_overlap_encoding
 1/93 Test  #1: pr_overlap_encoding ............................   Passed    0.65 sec
      Start  2: pr_overlap_tools
 2/93 Test  #2: pr_overlap_tools ...............................   Passed    0.18 sec
      Start  3: progress_report
 3/93 Test  #3: progress_report ................................   Passed    0.50 sec
      Start  4: progress_encoding
 4/93 Test  #4: progress_encoding ..............................   Passed    0.77 sec
      Start  5: import_audit
 5/93 Test  #5: import_audit ...................................   Passed    1.25 sec
      Start  6: conventions_function_bodies
 6/93 Test  #6: conventions_function_bodies ....................   Passed    1.34 sec
      Start  7: test_registration
 7/93 Test  #7: test_registration ..............................   Passed    0.16 sec
      Start  8: hardware_oracle
 8/93 Test  #8: hardware_oracle ................................   Passed    0.26 sec
      Start  9: pr_overlap_exports
 9/93 Test  #9: pr_overlap_exports .............................   Passed    0.12 sec
      Start 10: nid_database_cache
10/93 Test #10: nid_database_cache .............................   Passed    0.22 sec
      Start 11: windows_dependency_diagnostics
11/93 Test #11: windows_dependency_diagnostics .................   Passed    0.44 sec
      Start 12: amd64_only_windows
12/93 Test #12: amd64_only_windows .............................   Passed    0.56 sec
      Start 13: autorun_exit_status
13/93 Test #13: autorun_exit_status ............................   Passed    0.34 sec
      Start 14: cli_args
14/93 Test #14: cli_args .......................................   Passed    0.10 sec
      Start 15: buffer_bounds
15/93 Test #15: buffer_bounds ..................................   Passed    0.10 sec
      Start 16: amd64_only_converter
16/93 Test #16: amd64_only_converter ...........................   Passed    0.10 sec
      Start 17: decoder_length
17/93 Test #17: decoder_length .................................   Passed    0.10 sec
      Start 18: cli_help
18/93 Test #18: cli_help .......................................   Passed    0.31 sec
      Start 19: elf_offsets
19/93 Test #19: elf_offsets ....................................   Passed    0.30 sec
      Start 20: dynamic_segment
20/93 Test #20: dynamic_segment ................................   Passed    0.45 sec
      Start 21: rela_size
21/93 Test #21: rela_size ......................................   Passed    0.74 sec
      Start 22: optional_plt
22/93 Test #22: optional_plt ...................................   Passed    0.41 sec
      Start 23: empty_tls
23/93 Test #23: empty_tls ......................................   Passed    0.43 sec
      Start 24: tls_function_coverage_metadata
24/93 Test #24: tls_function_coverage_metadata .................   Passed    1.62 sec
      Start 25: tls_function_coverage_padding
25/93 Test #25: tls_function_coverage_padding ..................   Passed    0.20 sec
      Start 26: tls_function_coverage_register_loads
26/93 Test #26: tls_function_coverage_register_loads ...........   Passed    1.36 sec
      Start 27: tls_function_coverage_displacement_bounds
27/93 Test #27: tls_function_coverage_displacement_bounds ......   Passed    0.51 sec
      Start 28: tls_function_coverage_alu_execution
28/93 Test #28: tls_function_coverage_alu_execution ............   Passed    1.86 sec
      Start 29: tls_function_coverage_register_address_loads
29/93 Test #29: tls_function_coverage_register_address_loads ...   Passed    3.97 sec
      Start 30: tls_function_coverage_rejected
30/93 Test #30: tls_function_coverage_rejected .................   Passed    0.39 sec
      Start 31: tls_function_coverage_displacement_r0
31/93 Test #31: tls_function_coverage_displacement_r0 ..........   Passed    1.11 sec
      Start 32: tls_function_coverage_displacement_r1
32/93 Test #32: tls_function_coverage_displacement_r1 ..........   Passed    1.13 sec
      Start 33: tls_function_coverage_displacement_r2
33/93 Test #33: tls_function_coverage_displacement_r2 ..........   Passed    1.09 sec
      Start 34: tls_function_coverage_displacement_r3
34/93 Test #34: tls_function_coverage_displacement_r3 ..........   Passed    1.13 sec
      Start 35: tls_function_coverage_displacement_r5
35/93 Test #35: tls_function_coverage_displacement_r5 ..........   Passed    1.12 sec
      Start 36: tls_function_coverage_displacement_r6
36/93 Test #36: tls_function_coverage_displacement_r6 ..........   Passed    1.09 sec
      Start 37: tls_function_coverage_displacement_r7
37/93 Test #37: tls_function_coverage_displacement_r7 ..........   Passed    1.12 sec
      Start 38: tls_function_coverage_displacement_r8
38/93 Test #38: tls_function_coverage_displacement_r8 ..........   Passed    1.09 sec
      Start 39: tls_function_coverage_displacement_r9
39/93 Test #39: tls_function_coverage_displacement_r9 ..........   Passed    1.09 sec
      Start 40: tls_function_coverage_displacement_r10
40/93 Test #40: tls_function_coverage_displacement_r10 .........   Passed    1.10 sec
      Start 41: tls_function_coverage_displacement_r11
41/93 Test #41: tls_function_coverage_displacement_r11 .........   Passed    1.12 sec
      Start 42: tls_function_coverage_displacement_r12
42/93 Test #42: tls_function_coverage_displacement_r12 .........   Passed    1.09 sec
      Start 43: tls_function_coverage_displacement_r13
43/93 Test #43: tls_function_coverage_displacement_r13 .........   Passed    1.09 sec
      Start 44: tls_function_coverage_displacement_r14
44/93 Test #44: tls_function_coverage_displacement_r14 .........   Passed    1.12 sec
      Start 45: tls_function_coverage_displacement_r15
45/93 Test #45: tls_function_coverage_displacement_r15 .........   Passed    1.09 sec
      Start 46: tls_function_coverage_alu_add
46/93 Test #46: tls_function_coverage_alu_add ..................   Passed    0.83 sec
      Start 47: tls_function_coverage_alu_or
47/93 Test #47: tls_function_coverage_alu_or ...................   Passed    0.82 sec
      Start 48: tls_function_coverage_alu_adc
48/93 Test #48: tls_function_coverage_alu_adc ..................   Passed    0.83 sec
      Start 49: tls_function_coverage_alu_sbb
49/93 Test #49: tls_function_coverage_alu_sbb ..................   Passed    0.83 sec
      Start 50: tls_function_coverage_alu_and
50/93 Test #50: tls_function_coverage_alu_and ..................   Passed    0.83 sec
      Start 51: tls_function_coverage_alu_sub
51/93 Test #51: tls_function_coverage_alu_sub ..................   Passed    0.83 sec
      Start 52: tls_function_coverage_alu_xor
52/93 Test #52: tls_function_coverage_alu_xor ..................   Passed    0.82 sec
      Start 53: tls_function_coverage_alu_cmp
53/93 Test #53: tls_function_coverage_alu_cmp ..................   Passed    0.83 sec
      Start 54: tls_diagnostics
54/93 Test #54: tls_diagnostics ................................   Passed    0.20 sec
      Start 55: linux_load_alignment
55/93 Test #55: linux_load_alignment ...........................   Passed    0.13 sec
      Start 56: linux_eh_frame_header
56/93 Test #56: linux_eh_frame_header ..........................   Passed    1.14 sec
      Start 57: linux_dynamic_strings
57/93 Test #57: linux_dynamic_strings ..........................   Passed    0.12 sec
      Start 58: guest_runpath
58/93 Test #58: guest_runpath ..................................   Passed    0.66 sec
      Start 59: executable_segments
59/93 Test #59: executable_segments ............................   Passed    0.47 sec
      Start 60: linux_entry_argv
60/93 Test #60: linux_entry_argv ...............................   Passed    0.15 sec
      Start 61: linux_program_header_order
61/93 Test #61: linux_program_header_order .....................   Passed    0.16 sec
      Start 62: windows_gui
62/93 Test #62: windows_gui ....................................   Passed    0.16 sec
      Start 63: windows_working_directory
63/93 Test #63: windows_working_directory ......................   Passed    0.39 sec
      Start 64: windows_address_space
64/93 Test #64: windows_address_space ..........................   Passed    0.27 sec
      Start 65: windows_bss
65/93 Test #65: windows_bss ....................................   Passed    0.62 sec
      Start 66: windows_icon
66/93 Test #66: windows_icon ...................................   Passed    0.98 sec
      Start 67: guest_intel_trampolines
67/93 Test #67: guest_intel_trampolines ........................   Passed    0.31 sec
      Start 68: guest_tls
68/93 Test #68: guest_tls ......................................   Passed    0.14 sec
      Start 69: guest_needed_modules
69/93 Test #69: guest_needed_modules ...........................   Passed    1.46 sec
      Start 70: guest_module_directories
70/93 Test #70: guest_module_directories .......................   Passed    0.95 sec
      Start 71: linux_guest_stack
71/93 Test #71: linux_guest_stack ..............................   Passed    0.19 sec
      Start 72: guest_symbol_names
72/93 Test #72: guest_symbol_names .............................   Passed    0.12 sec
      Start 73: guest_registry
73/93 Test #73: guest_registry .................................   Passed    0.28 sec
      Start 74: macos_output
74/93 Test #74: macos_output ...................................   Passed    0.18 sec
      Start 75: guest_host_libc
75/93 Test #75: guest_host_libc ................................   Passed    0.20 sec
      Start 76: guest_module_args
76/93 Test #76: guest_module_args ..............................   Passed    0.15 sec
      Start 77: guest_absolute_symbols
77/93 Test #77: guest_absolute_symbols .........................   Passed    0.21 sec
      Start 78: guest_module_identity
78/93 Test #78: guest_module_identity ..........................   Passed    4.03 sec
      Start 79: guest_needed_nested_modules
79/93 Test #79: guest_needed_nested_modules ....................   Passed    4.47 sec
      Start 80: windows_import_modules
80/93 Test #80: windows_import_modules .........................   Passed    2.41 sec
      Start 81: elf_header
81/93 Test #81: elf_header .....................................   Passed    1.09 sec
      Start 82: input_magic
82/93 Test #82: input_magic ....................................   Passed    0.15 sec
      Start 83: input_preservation
83/93 Test #83: input_preservation .............................   Passed    0.57 sec
      Start 84: input_file
84/93 Test #84: input_file .....................................   Passed    0.16 sec
      Start 85: string_table_bounds
85/93 Test #85: string_table_bounds ............................   Passed    0.30 sec
      Start 86: call_registry
86/93 Test #86: call_registry ..................................   Passed    1.40 sec
      Start 87: jmprel_table_bounds
87/93 Test #87: jmprel_table_bounds ............................   Passed    0.35 sec
      Start 88: windows_diagnostic_fixture_isolation
88/93 Test #88: windows_diagnostic_fixture_isolation ...........   Passed    1.14 sec
      Start 89: entry_point_bounds
89/93 Test #89: entry_point_bounds .............................   Passed    0.18 sec
      Start 90: init_array_roots
90/93 Test #90: init_array_roots ...............................   Passed    0.37 sec
      Start 91: windows_icon_resource
91/93 Test #91: windows_icon_resource ..........................   Passed    0.14 sec
      Start 92: entry_stub
92/93 Test #92: entry_stub .....................................   Passed    0.10 sec
      Start 93: strict_nid_filter
93/93 Test #93: strict_nid_filter ..............................   Passed    0.11 sec

100% tests passed, 0 tests failed out of 93

Label Time Summary:
tls_function_coverage    =  33.12 sec*proc (30 tests)

Total Test time (real) =  69.64 sec
PS C:\AnyPS5-SceSysFix> $relinker = Get-ChildItem "C:\AnyPS5-SceSysFix\build-win" `
>>     -Filter "relinker.exe" -File -Recurse |
>>     Select-Object -First 1 -ExpandProperty FullName
PS C:\AnyPS5-SceSysFix>
PS C:\AnyPS5-SceSysFix> $relinker
C:\AnyPS5-SceSysFix\build-win\core\relinker\relinker.exe
PS C:\AnyPS5-SceSysFix> New-Item -ItemType Directory `
>>     -Path "D:\AnyPS5-SceSys-Test" -Force | Out-Null
PS C:\AnyPS5-SceSysFix>
PS C:\AnyPS5-SceSysFix> & $relinker --windows --registry `
>>     "D:\Game1\eboot.bin" `
>>     "D:\AnyPS5-SceSys-Test\app.exe" 2>&1 |
>>     Tee-Object "D:\AnyPS5-SceSys-Test\relinker-log.txt"
System: Windows; unused-filter=0
sce_module/sce_modules/prx processing: enabled
NID input: 815 references
Unused NID filtering: disabled; filtered=0
NID total: 815 -> 815; filtered=0
Guest module: D:\AnyPS5-SceSys-Test\app0/sce_module\libc.prx.guest.prx
External prx references: 815
Output file: D:\AnyPS5-SceSys-Test\app.exe
Expected runtime layout (relative to the output executable):
app.exe
libs/
    *.prx
app0/
    <game resources>
    sce_module/libc.prx.guest.prx
Game resources and system libraries must be placed in this layout separately.
PS C:\AnyPS5-SceSysFix>
PS C:\AnyPS5-SceSysFix> $LASTEXITCODE
0
PS C:\AnyPS5-SceSysFix> git -C "C:\AnyPS5-SceSysFix" rev-parse --short HEAD
3d831a99
PS C:\AnyPS5-SceSysFix>
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6097535810 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/2663#issuecomment-6097535810). Originally posted by [LightStorm72](https://github.com/LightStorm72) on 2026-10-10T12:33:37Z. --- @DavidSamir this is the full Powershell Commands too ```powershell PS C:\Users\Ahmed Samir> git clone --branch fix/relinker-module-search-skips-sce-sys --single-branch https://github.com/DavidSamir/AnyPS5.git C:\AnyPS5-SceSysFix Cloning into 'C:\AnyPS5-SceSysFix'... remote: Enumerating objects: 54242, done. remote: Counting objects: 100% (3495/3495), done. remote: Compressing objects: 100% (451/451), done. remote: Total 54242 (delta 3122), reused 3044 (delta 3044), pack-reused 50747 (from 3) Receiving objects: 100% (54242/54242), 16.57 MiB | 3.60 MiB/s, done. Resolving deltas: 100% (37375/37375), done. Updating files: 100% (1910/1910), done. PS C:\Users\Ahmed Samir> $env:PATH = "C:\mingw64\bin;$env:PATH" PS C:\Users\Ahmed Samir> Set-Location "C:\AnyPS5-SceSysFix" PS C:\AnyPS5-SceSysFix> PS C:\AnyPS5-SceSysFix> g++ --version g++.exe (MinGW-W64 x86_64-ucrt-posix-seh, built by Brecht Sanders, r7) 15.2.0 Copyright (C) 2025 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. PS C:\AnyPS5-SceSysFix> PS C:\AnyPS5-SceSysFix> cmake -S . -B build-win -G Ninja ` >> -DCMAKE_BUILD_TYPE=Release ` >> -DANYPS5_RELINKER_ONLY=ON ` >> -DBUILD_TESTING=ON ` >> -DCMAKE_CXX_COMPILER=g++ -- The CXX compiler identification is GNU 15.2.0 -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: C:/mingw64/bin/g++.exe - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Configuring done (2.6s) -- Generating done (0.2s) -- Build files have been written to: C:/AnyPS5-SceSysFix/build-win PS C:\AnyPS5-SceSysFix> PS C:\AnyPS5-SceSysFix> if ($LASTEXITCODE -ne 0) { >> throw "CMake configuration failed" >> } PS C:\AnyPS5-SceSysFix> PS C:\AnyPS5-SceSysFix> cmake --build build-win --parallel [166/166] Linking CXX executable tests\amd64_only_converter_tests.exe PS C:\AnyPS5-SceSysFix> PS C:\AnyPS5-SceSysFix> if ($LASTEXITCODE -ne 0) { >> throw "Build failed" >> }m m: Line | 3 | }m | ~ | The term 'm' is not recognized as a name of a cmdlet, function, script file, or executable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. [General Feedback] The most similar commands are: ➤ %, ?, gm, mi, mp PS C:\AnyPS5-SceSysFix> $env:PATH = "C:\mingw64\bin;$env:PATH" PS C:\AnyPS5-SceSysFix> Set-Location "C:\AnyPS5-SceSysFix" PS C:\AnyPS5-SceSysFix> PS C:\AnyPS5-SceSysFix> g++ --version g++.exe (MinGW-W64 x86_64-ucrt-posix-seh, built by Brecht Sanders, r7) 15.2.0 Copyright (C) 2025 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. PS C:\AnyPS5-SceSysFix> PS C:\AnyPS5-SceSysFix> cmake -S . -B build-win -G Ninja ` >> -DCMAKE_BUILD_TYPE=Release ` >> -DANYPS5_RELINKER_ONLY=ON ` >> -DBUILD_TESTING=ON ` >> -DCMAKE_CXX_COMPILER=g++ -- Configuring done (0.8s) -- Generating done (0.1s) -- Build files have been written to: C:/AnyPS5-SceSysFix/build-win PS C:\AnyPS5-SceSysFix> PS C:\AnyPS5-SceSysFix> if ($LASTEXITCODE -ne 0) { >> throw "CMake configuration failed" >> } PS C:\AnyPS5-SceSysFix> PS C:\AnyPS5-SceSysFix> cmake --build build-win --parallel ninja: no work to do. PS C:\AnyPS5-SceSysFix> PS C:\AnyPS5-SceSysFix> if ($LASTEXITCODE -ne 0) { >> throw "Build failed" >> } PS C:\AnyPS5-SceSysFix> PS C:\AnyPS5-SceSysFix> if ($LASTEXITCODE -ne 0) { >> throw "Build failed" >> } PS C:\AnyPS5-SceSysFix> ctest --test-dir build-win --output-on-failure Test project C:/AnyPS5-SceSysFix/build-win Start 1: pr_overlap_encoding 1/93 Test #1: pr_overlap_encoding ............................ Passed 0.65 sec Start 2: pr_overlap_tools 2/93 Test #2: pr_overlap_tools ............................... Passed 0.18 sec Start 3: progress_report 3/93 Test #3: progress_report ................................ Passed 0.50 sec Start 4: progress_encoding 4/93 Test #4: progress_encoding .............................. Passed 0.77 sec Start 5: import_audit 5/93 Test #5: import_audit ................................... Passed 1.25 sec Start 6: conventions_function_bodies 6/93 Test #6: conventions_function_bodies .................... Passed 1.34 sec Start 7: test_registration 7/93 Test #7: test_registration .............................. Passed 0.16 sec Start 8: hardware_oracle 8/93 Test #8: hardware_oracle ................................ Passed 0.26 sec Start 9: pr_overlap_exports 9/93 Test #9: pr_overlap_exports ............................. Passed 0.12 sec Start 10: nid_database_cache 10/93 Test #10: nid_database_cache ............................. Passed 0.22 sec Start 11: windows_dependency_diagnostics 11/93 Test #11: windows_dependency_diagnostics ................. Passed 0.44 sec Start 12: amd64_only_windows 12/93 Test #12: amd64_only_windows ............................. Passed 0.56 sec Start 13: autorun_exit_status 13/93 Test #13: autorun_exit_status ............................ Passed 0.34 sec Start 14: cli_args 14/93 Test #14: cli_args ....................................... Passed 0.10 sec Start 15: buffer_bounds 15/93 Test #15: buffer_bounds .................................. Passed 0.10 sec Start 16: amd64_only_converter 16/93 Test #16: amd64_only_converter ........................... Passed 0.10 sec Start 17: decoder_length 17/93 Test #17: decoder_length ................................. Passed 0.10 sec Start 18: cli_help 18/93 Test #18: cli_help ....................................... Passed 0.31 sec Start 19: elf_offsets 19/93 Test #19: elf_offsets .................................... Passed 0.30 sec Start 20: dynamic_segment 20/93 Test #20: dynamic_segment ................................ Passed 0.45 sec Start 21: rela_size 21/93 Test #21: rela_size ...................................... Passed 0.74 sec Start 22: optional_plt 22/93 Test #22: optional_plt ................................... Passed 0.41 sec Start 23: empty_tls 23/93 Test #23: empty_tls ...................................... Passed 0.43 sec Start 24: tls_function_coverage_metadata 24/93 Test #24: tls_function_coverage_metadata ................. Passed 1.62 sec Start 25: tls_function_coverage_padding 25/93 Test #25: tls_function_coverage_padding .................. Passed 0.20 sec Start 26: tls_function_coverage_register_loads 26/93 Test #26: tls_function_coverage_register_loads ........... Passed 1.36 sec Start 27: tls_function_coverage_displacement_bounds 27/93 Test #27: tls_function_coverage_displacement_bounds ...... Passed 0.51 sec Start 28: tls_function_coverage_alu_execution 28/93 Test #28: tls_function_coverage_alu_execution ............ Passed 1.86 sec Start 29: tls_function_coverage_register_address_loads 29/93 Test #29: tls_function_coverage_register_address_loads ... Passed 3.97 sec Start 30: tls_function_coverage_rejected 30/93 Test #30: tls_function_coverage_rejected ................. Passed 0.39 sec Start 31: tls_function_coverage_displacement_r0 31/93 Test #31: tls_function_coverage_displacement_r0 .......... Passed 1.11 sec Start 32: tls_function_coverage_displacement_r1 32/93 Test #32: tls_function_coverage_displacement_r1 .......... Passed 1.13 sec Start 33: tls_function_coverage_displacement_r2 33/93 Test #33: tls_function_coverage_displacement_r2 .......... Passed 1.09 sec Start 34: tls_function_coverage_displacement_r3 34/93 Test #34: tls_function_coverage_displacement_r3 .......... Passed 1.13 sec Start 35: tls_function_coverage_displacement_r5 35/93 Test #35: tls_function_coverage_displacement_r5 .......... Passed 1.12 sec Start 36: tls_function_coverage_displacement_r6 36/93 Test #36: tls_function_coverage_displacement_r6 .......... Passed 1.09 sec Start 37: tls_function_coverage_displacement_r7 37/93 Test #37: tls_function_coverage_displacement_r7 .......... Passed 1.12 sec Start 38: tls_function_coverage_displacement_r8 38/93 Test #38: tls_function_coverage_displacement_r8 .......... Passed 1.09 sec Start 39: tls_function_coverage_displacement_r9 39/93 Test #39: tls_function_coverage_displacement_r9 .......... Passed 1.09 sec Start 40: tls_function_coverage_displacement_r10 40/93 Test #40: tls_function_coverage_displacement_r10 ......... Passed 1.10 sec Start 41: tls_function_coverage_displacement_r11 41/93 Test #41: tls_function_coverage_displacement_r11 ......... Passed 1.12 sec Start 42: tls_function_coverage_displacement_r12 42/93 Test #42: tls_function_coverage_displacement_r12 ......... Passed 1.09 sec Start 43: tls_function_coverage_displacement_r13 43/93 Test #43: tls_function_coverage_displacement_r13 ......... Passed 1.09 sec Start 44: tls_function_coverage_displacement_r14 44/93 Test #44: tls_function_coverage_displacement_r14 ......... Passed 1.12 sec Start 45: tls_function_coverage_displacement_r15 45/93 Test #45: tls_function_coverage_displacement_r15 ......... Passed 1.09 sec Start 46: tls_function_coverage_alu_add 46/93 Test #46: tls_function_coverage_alu_add .................. Passed 0.83 sec Start 47: tls_function_coverage_alu_or 47/93 Test #47: tls_function_coverage_alu_or ................... Passed 0.82 sec Start 48: tls_function_coverage_alu_adc 48/93 Test #48: tls_function_coverage_alu_adc .................. Passed 0.83 sec Start 49: tls_function_coverage_alu_sbb 49/93 Test #49: tls_function_coverage_alu_sbb .................. Passed 0.83 sec Start 50: tls_function_coverage_alu_and 50/93 Test #50: tls_function_coverage_alu_and .................. Passed 0.83 sec Start 51: tls_function_coverage_alu_sub 51/93 Test #51: tls_function_coverage_alu_sub .................. Passed 0.83 sec Start 52: tls_function_coverage_alu_xor 52/93 Test #52: tls_function_coverage_alu_xor .................. Passed 0.82 sec Start 53: tls_function_coverage_alu_cmp 53/93 Test #53: tls_function_coverage_alu_cmp .................. Passed 0.83 sec Start 54: tls_diagnostics 54/93 Test #54: tls_diagnostics ................................ Passed 0.20 sec Start 55: linux_load_alignment 55/93 Test #55: linux_load_alignment ........................... Passed 0.13 sec Start 56: linux_eh_frame_header 56/93 Test #56: linux_eh_frame_header .......................... Passed 1.14 sec Start 57: linux_dynamic_strings 57/93 Test #57: linux_dynamic_strings .......................... Passed 0.12 sec Start 58: guest_runpath 58/93 Test #58: guest_runpath .................................. Passed 0.66 sec Start 59: executable_segments 59/93 Test #59: executable_segments ............................ Passed 0.47 sec Start 60: linux_entry_argv 60/93 Test #60: linux_entry_argv ............................... Passed 0.15 sec Start 61: linux_program_header_order 61/93 Test #61: linux_program_header_order ..................... Passed 0.16 sec Start 62: windows_gui 62/93 Test #62: windows_gui .................................... Passed 0.16 sec Start 63: windows_working_directory 63/93 Test #63: windows_working_directory ...................... Passed 0.39 sec Start 64: windows_address_space 64/93 Test #64: windows_address_space .......................... Passed 0.27 sec Start 65: windows_bss 65/93 Test #65: windows_bss .................................... Passed 0.62 sec Start 66: windows_icon 66/93 Test #66: windows_icon ................................... Passed 0.98 sec Start 67: guest_intel_trampolines 67/93 Test #67: guest_intel_trampolines ........................ Passed 0.31 sec Start 68: guest_tls 68/93 Test #68: guest_tls ...................................... Passed 0.14 sec Start 69: guest_needed_modules 69/93 Test #69: guest_needed_modules ........................... Passed 1.46 sec Start 70: guest_module_directories 70/93 Test #70: guest_module_directories ....................... Passed 0.95 sec Start 71: linux_guest_stack 71/93 Test #71: linux_guest_stack .............................. Passed 0.19 sec Start 72: guest_symbol_names 72/93 Test #72: guest_symbol_names ............................. Passed 0.12 sec Start 73: guest_registry 73/93 Test #73: guest_registry ................................. Passed 0.28 sec Start 74: macos_output 74/93 Test #74: macos_output ................................... Passed 0.18 sec Start 75: guest_host_libc 75/93 Test #75: guest_host_libc ................................ Passed 0.20 sec Start 76: guest_module_args 76/93 Test #76: guest_module_args .............................. Passed 0.15 sec Start 77: guest_absolute_symbols 77/93 Test #77: guest_absolute_symbols ......................... Passed 0.21 sec Start 78: guest_module_identity 78/93 Test #78: guest_module_identity .......................... Passed 4.03 sec Start 79: guest_needed_nested_modules 79/93 Test #79: guest_needed_nested_modules .................... Passed 4.47 sec Start 80: windows_import_modules 80/93 Test #80: windows_import_modules ......................... Passed 2.41 sec Start 81: elf_header 81/93 Test #81: elf_header ..................................... Passed 1.09 sec Start 82: input_magic 82/93 Test #82: input_magic .................................... Passed 0.15 sec Start 83: input_preservation 83/93 Test #83: input_preservation ............................. Passed 0.57 sec Start 84: input_file 84/93 Test #84: input_file ..................................... Passed 0.16 sec Start 85: string_table_bounds 85/93 Test #85: string_table_bounds ............................ Passed 0.30 sec Start 86: call_registry 86/93 Test #86: call_registry .................................. Passed 1.40 sec Start 87: jmprel_table_bounds 87/93 Test #87: jmprel_table_bounds ............................ Passed 0.35 sec Start 88: windows_diagnostic_fixture_isolation 88/93 Test #88: windows_diagnostic_fixture_isolation ........... Passed 1.14 sec Start 89: entry_point_bounds 89/93 Test #89: entry_point_bounds ............................. Passed 0.18 sec Start 90: init_array_roots 90/93 Test #90: init_array_roots ............................... Passed 0.37 sec Start 91: windows_icon_resource 91/93 Test #91: windows_icon_resource .......................... Passed 0.14 sec Start 92: entry_stub 92/93 Test #92: entry_stub ..................................... Passed 0.10 sec Start 93: strict_nid_filter 93/93 Test #93: strict_nid_filter .............................. Passed 0.11 sec 100% tests passed, 0 tests failed out of 93 Label Time Summary: tls_function_coverage = 33.12 sec*proc (30 tests) Total Test time (real) = 69.64 sec PS C:\AnyPS5-SceSysFix> $relinker = Get-ChildItem "C:\AnyPS5-SceSysFix\build-win" ` >> -Filter "relinker.exe" -File -Recurse | >> Select-Object -First 1 -ExpandProperty FullName PS C:\AnyPS5-SceSysFix> PS C:\AnyPS5-SceSysFix> $relinker C:\AnyPS5-SceSysFix\build-win\core\relinker\relinker.exe PS C:\AnyPS5-SceSysFix> New-Item -ItemType Directory ` >> -Path "D:\AnyPS5-SceSys-Test" -Force | Out-Null PS C:\AnyPS5-SceSysFix> PS C:\AnyPS5-SceSysFix> & $relinker --windows --registry ` >> "D:\Game1\eboot.bin" ` >> "D:\AnyPS5-SceSys-Test\app.exe" 2>&1 | >> Tee-Object "D:\AnyPS5-SceSys-Test\relinker-log.txt" System: Windows; unused-filter=0 sce_module/sce_modules/prx processing: enabled NID input: 815 references Unused NID filtering: disabled; filtered=0 NID total: 815 -> 815; filtered=0 Guest module: D:\AnyPS5-SceSys-Test\app0/sce_module\libc.prx.guest.prx External prx references: 815 Output file: D:\AnyPS5-SceSys-Test\app.exe Expected runtime layout (relative to the output executable): app.exe libs/ *.prx app0/ <game resources> sce_module/libc.prx.guest.prx Game resources and system libraries must be placed in this layout separately. PS C:\AnyPS5-SceSysFix> PS C:\AnyPS5-SceSysFix> $LASTEXITCODE 0 PS C:\AnyPS5-SceSysFix> git -C "C:\AnyPS5-SceSysFix" rev-parse --short HEAD 3d831a99 PS C:\AnyPS5-SceSysFix> ```
LightStorm72 commented 2026-10-10 13:17:14 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by LightStorm72 on 2026-10-10T13:17:14Z.


Tested now with latest build and It ran on 60fps now

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6097900405 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/2663#issuecomment-6097900405). Originally posted by [LightStorm72](https://github.com/LightStorm72) on 2026-10-10T13:17:14Z. --- Tested now with latest build and It ran on 60fps now
MarcZX10 commented 2026-10-10 13:22:56 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-10T13:22:56Z.


Regression coverage on current main

The issue reporter has confirmed that the current build converts and runs Dreaming Sarah. The relinker fix is already on main; this branch adds coverage for the malformed-metadata path that previously surfaced in the report.

I refreshed the test onto upstream main (5edae353). The fork branch is codex/fix-relinker-sce-sys-scan-2663-latest, at 8e02e489e.

Check Result
Relinker-only Release build (Linux) Passed
Full relinker-only CTest suite 98/98 passed, including guest_needed_modules
tools/check_conventions.py --base upstream/main Passed
git diff --check upstream/main...HEAD Passed

The added fixture gives a PT_DYNAMIC segment an out-of-file offset under sce_sys/about/right.sprx. The guest-module scan ignores that malformed metadata file, and conversion succeeds in both Linux and Windows output modes. This is synthetic coverage; the reporter’s title conversion/runtime result is separate evidence.

I found no open PR for this test. I have not opened one because the intake workflow still requires 20 merged PRs; my live merged count is 15. AI-assisted: yes.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6097947294 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/2663#issuecomment-6097947294). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-10T13:22:56Z. --- ### Regression coverage on current `main` The issue reporter has confirmed that the current build converts and runs Dreaming Sarah. The relinker fix is already on `main`; this branch adds coverage for the malformed-metadata path that previously surfaced in the report. I refreshed the test onto upstream `main` (`5edae353`). The fork branch is [`codex/fix-relinker-sce-sys-scan-2663-latest`](https://github.com/MarcZX100/AnyPS5/tree/codex/fix-relinker-sce-sys-scan-2663-latest), at [`8e02e489e`](https://github.com/MarcZX100/AnyPS5/commit/8e02e489e92763fe803335c47ad142a583be0b68). | Check | Result | | --- | --- | | Relinker-only Release build (Linux) | Passed | | Full relinker-only CTest suite | 98/98 passed, including `guest_needed_modules` | | `tools/check_conventions.py --base upstream/main` | Passed | | `git diff --check upstream/main...HEAD` | Passed | The added fixture gives a `PT_DYNAMIC` segment an out-of-file offset under `sce_sys/about/right.sprx`. The guest-module scan ignores that malformed metadata file, and conversion succeeds in both Linux and Windows output modes. This is synthetic coverage; the reporter’s title conversion/runtime result is separate evidence. I found no open PR for this test. I have not opened one because the intake workflow still requires 20 merged PRs; my live merged count is 15. AI-assisted: yes.
oneandonlydean commented 2026-10-10 18:08:40 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-10T18:08:40Z.


Closing: since #2708 the relinker no longer searches the title tree for modules, so sce_sys/about/right.sprx is not read any more, and the conversion works on current main as confirmed above.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6100607506 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/2663#issuecomment-6100607506). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-10T18:08:40Z. --- Closing: since #2708 the relinker no longer searches the title tree for modules, so `sce_sys/about/right.sprx` is not read any more, and the conversion works on current main as confirmed above.
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#2663
No description provided.