FAIL: Unsupported Windows guest TLS instruction (offset 0x7479a98) #217

Closed
opened 2026-10-01 14:39:03 +00:00 by lerrel129 · 15 comments
lerrel129 commented 2026-10-01 14:39:03 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by lerrel129 on 2026-10-01T14:39:03Z.


Environment

  • OS: Windows 11 / Windows 10
  • AnyPS5 Version: v0.1.1 (Release)
  • Game/Executable: NHL 27 (PPSA34063-app0/eboot.bin)

Description

When attempting to relink eboot.bin on Windows, the process fails with an unsupported TLS instruction error.

Log Output

F:\prx-windows-v0.1.1\libs>relinker-v0.1.1.exe --windows --to-intel unused-filter=1 "F:\NHL 27\PPSA34063-app0\eboot.bin" "F:\prx-windows-v0.1.1\libs\game.exe"
Intel substitution: INSERTQ at 0xa12755 (6 bytes) -> stub 48 bytes
Intel substitution: INSERTQ at 0xa127ad (6 bytes) -> stub 48 bytes
Intel substitution: EXTRQ at 0xfd5c0f (6 bytes) -> stub 32 bytes
Intel substitution: INSERTQ at 0x2ab1f4d (6 bytes) -> stub 32 bytes
Intel substitution: INSERTQ at 0x2c8e0cb (6 bytes) -> stub 48 bytes
Intel substitution: EXTRQ at 0x305ed96 (6 bytes) -> stub 32 bytes
Intel substitution: EXTRQ at 0x305ef7f (6 bytes) -> stub 32 bytes
Intel substitution: EXTRQ at 0x306000d (6 bytes) -> stub 32 bytes
Intel substitution: EXTRQ at 0x30601ad (6 bytes) -> stub 32 bytes
Intel substitution: INSERTQ at 0x3077e10 (6 bytes) -> stub 48 bytes
Intel substitution: INSERTQ at 0x3078292 (7 bytes) -> stub 48 bytes
Intel substitution: INSERTQ at 0x30782fc (7 bytes) -> stub 48 bytes
Intel substitution: INSERTQ at 0x307859a (7 bytes) -> stub 48 bytes
Intel substitution: INSERTQ at 0x3079c97 (6 bytes) -> stub 48 bytes
Intel substitution: INSERTQ at 0x3150295 (6 bytes) -> stub 48 bytes
Intel substitution: INSERTQ at 0x31502b0 (6 bytes) -> stub 48 bytes
Intel substitution: INSERTQ at 0x3f61bc5 (6 bytes) -> stub 48 bytes
Intel substitution: INSERTQ at 0x4c13994 (6 bytes) -> stub 48 bytes
Intel substitution: INSERTQ at 0x82018e7 (6 bytes) -> stub 48 bytes
Intel substitution: INSERTQ at 0x8202189 (6 bytes) -> stub 48 bytes
Intel substitution: INSERTQ at 0x8efc254 (6 bytes) -> stub 48 bytes
Intel substitution: EXTRQ at 0x93a3272 (6 bytes) -> stub 32 bytes
Intel substitution: INSERTQ at 0x9634a69 (6 bytes) -> stub 48 bytes
Intel substitution: INSERTQ at 0x9634bc0 (6 bytes) -> stub 48 bytes
Intel substitution: INSERTQ at 0x9634d25 (6 bytes) -> stub 48 bytes
Intel substitution: INSERTQ at 0x9634e4b (7 bytes) -> stub 48 bytes
Intel substitution: INSERTQ at 0x96ea4c9 (6 bytes) -> stub 48 bytes
Intel substitution: INSERTQ at 0x96ea4f4 (6 bytes) -> stub 48 bytes
Intel substitution: INSERTQ at 0x9a0d860 (6 bytes) -> stub 48 bytes
Intel substitution: INSERTQ at 0x9a0d90b (6 bytes) -> stub 48 bytes
Intel substitution: INSERTQ at 0x9a0d9b8 (6 bytes) -> stub 48 bytes
Intel substitution: INSERTQ at 0x9a0da64 (6 bytes) -> stub 48 bytes
Intel substitution: INSERTQ at 0x9a0db16 (6 bytes) -> stub 48 bytes
Intel substitution: INSERTQ at 0x9a0dbca (6 bytes) -> stub 48 bytes
Intel substitution: INSERTQ at 0x9a0dc75 (6 bytes) -> stub 48 bytes
Intel substitution: INSERTQ at 0x9a0dd1f (6 bytes) -> stub 48 bytes
Intel substitution: INSERTQ at 0x9a0ddc4 (6 bytes) -> stub 48 bytes
Intel substitution: INSERTQ at 0x9d0904f (6 bytes) -> stub 32 bytes
Intel substitution: INSERTQ at 0x9d0906f (6 bytes) -> stub 32 bytes
Intel substitution: INSERTQ at 0x9f532a3 (6 bytes) -> stub 32 bytes
Intel substitution: INSERTQ at 0xa262555 (6 bytes) -> stub 32 bytes
Intel substitution: EXTRQ at 0xa882cf8 (6 bytes) -> stub 32 bytes
Intel substitution: INSERTQ at 0xb5ad62e (7 bytes) -> stub 48 bytes
Intel substitution: INSERTQ at 0xb5aed11 (6 bytes) -> stub 48 bytes
Intel substitution: INSERTQ at 0xb5e98f0 (6 bytes) -> stub 48 bytes
Intel substitution: INSERTQ at 0xbe4e9ca (6 bytes) -> stub 32 bytes
Intel substitution: INSERTQ at 0xbe4fd1a (6 bytes) -> stub 32 bytes
Intel conversion: 0 in place, 47 stubs
System: Windows; unused-filter=1
sce_module/sce_modules processing: enabled
NID input: 9033 references
PLT preservation: 1076 -> 1076; filtered=0
CFG/GOT filtering: 7957 -> 1; filtered=7956
NID total: 9033 -> 1077; filtered=7956
FAIL: Unsupported Windows guest TLS instruction (offset 0x7479a98)

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5663976863 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/217). Originally posted by [lerrel129](https://github.com/lerrel129) on 2026-10-01T14:39:03Z. --- ### Environment * **OS:** Windows 11 / Windows 10 * **AnyPS5 Version:** v0.1.1 (Release) * **Game/Executable:** NHL 27 (`PPSA34063-app0/eboot.bin`) ### Description When attempting to relink `eboot.bin` on Windows, the process fails with an unsupported TLS instruction error. ### Log Output F:\prx-windows-v0.1.1\libs>relinker-v0.1.1.exe --windows --to-intel unused-filter=1 "F:\NHL 27\PPSA34063-app0\eboot.bin" "F:\prx-windows-v0.1.1\libs\game.exe" Intel substitution: INSERTQ at 0xa12755 (6 bytes) -> stub 48 bytes Intel substitution: INSERTQ at 0xa127ad (6 bytes) -> stub 48 bytes Intel substitution: EXTRQ at 0xfd5c0f (6 bytes) -> stub 32 bytes Intel substitution: INSERTQ at 0x2ab1f4d (6 bytes) -> stub 32 bytes Intel substitution: INSERTQ at 0x2c8e0cb (6 bytes) -> stub 48 bytes Intel substitution: EXTRQ at 0x305ed96 (6 bytes) -> stub 32 bytes Intel substitution: EXTRQ at 0x305ef7f (6 bytes) -> stub 32 bytes Intel substitution: EXTRQ at 0x306000d (6 bytes) -> stub 32 bytes Intel substitution: EXTRQ at 0x30601ad (6 bytes) -> stub 32 bytes Intel substitution: INSERTQ at 0x3077e10 (6 bytes) -> stub 48 bytes Intel substitution: INSERTQ at 0x3078292 (7 bytes) -> stub 48 bytes Intel substitution: INSERTQ at 0x30782fc (7 bytes) -> stub 48 bytes Intel substitution: INSERTQ at 0x307859a (7 bytes) -> stub 48 bytes Intel substitution: INSERTQ at 0x3079c97 (6 bytes) -> stub 48 bytes Intel substitution: INSERTQ at 0x3150295 (6 bytes) -> stub 48 bytes Intel substitution: INSERTQ at 0x31502b0 (6 bytes) -> stub 48 bytes Intel substitution: INSERTQ at 0x3f61bc5 (6 bytes) -> stub 48 bytes Intel substitution: INSERTQ at 0x4c13994 (6 bytes) -> stub 48 bytes Intel substitution: INSERTQ at 0x82018e7 (6 bytes) -> stub 48 bytes Intel substitution: INSERTQ at 0x8202189 (6 bytes) -> stub 48 bytes Intel substitution: INSERTQ at 0x8efc254 (6 bytes) -> stub 48 bytes Intel substitution: EXTRQ at 0x93a3272 (6 bytes) -> stub 32 bytes Intel substitution: INSERTQ at 0x9634a69 (6 bytes) -> stub 48 bytes Intel substitution: INSERTQ at 0x9634bc0 (6 bytes) -> stub 48 bytes Intel substitution: INSERTQ at 0x9634d25 (6 bytes) -> stub 48 bytes Intel substitution: INSERTQ at 0x9634e4b (7 bytes) -> stub 48 bytes Intel substitution: INSERTQ at 0x96ea4c9 (6 bytes) -> stub 48 bytes Intel substitution: INSERTQ at 0x96ea4f4 (6 bytes) -> stub 48 bytes Intel substitution: INSERTQ at 0x9a0d860 (6 bytes) -> stub 48 bytes Intel substitution: INSERTQ at 0x9a0d90b (6 bytes) -> stub 48 bytes Intel substitution: INSERTQ at 0x9a0d9b8 (6 bytes) -> stub 48 bytes Intel substitution: INSERTQ at 0x9a0da64 (6 bytes) -> stub 48 bytes Intel substitution: INSERTQ at 0x9a0db16 (6 bytes) -> stub 48 bytes Intel substitution: INSERTQ at 0x9a0dbca (6 bytes) -> stub 48 bytes Intel substitution: INSERTQ at 0x9a0dc75 (6 bytes) -> stub 48 bytes Intel substitution: INSERTQ at 0x9a0dd1f (6 bytes) -> stub 48 bytes Intel substitution: INSERTQ at 0x9a0ddc4 (6 bytes) -> stub 48 bytes Intel substitution: INSERTQ at 0x9d0904f (6 bytes) -> stub 32 bytes Intel substitution: INSERTQ at 0x9d0906f (6 bytes) -> stub 32 bytes Intel substitution: INSERTQ at 0x9f532a3 (6 bytes) -> stub 32 bytes Intel substitution: INSERTQ at 0xa262555 (6 bytes) -> stub 32 bytes Intel substitution: EXTRQ at 0xa882cf8 (6 bytes) -> stub 32 bytes Intel substitution: INSERTQ at 0xb5ad62e (7 bytes) -> stub 48 bytes Intel substitution: INSERTQ at 0xb5aed11 (6 bytes) -> stub 48 bytes Intel substitution: INSERTQ at 0xb5e98f0 (6 bytes) -> stub 48 bytes Intel substitution: INSERTQ at 0xbe4e9ca (6 bytes) -> stub 32 bytes Intel substitution: INSERTQ at 0xbe4fd1a (6 bytes) -> stub 32 bytes Intel conversion: 0 in place, 47 stubs System: Windows; unused-filter=1 sce_module/sce_modules processing: enabled NID input: 9033 references PLT preservation: 1076 -> 1076; filtered=0 CFG/GOT filtering: 7957 -> 1; filtered=7956 NID total: 9033 -> 1077; filtered=7956 FAIL: Unsupported Windows guest TLS instruction (offset 0x7479a98)
QDarkRex commented 2026-10-02 04:09:39 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by QDarkRex on 2026-10-02T04:09:39Z.


Thanks for the report. Two things:

1. Output location. Write the executable next to libs\, not inside it:
relinker-v0.1.1.exe --windows --to-intel unused-filter=1 "F:\NHL 27\PPSA34063-app0\eboot.bin" "F:\prx-windows-v0.1.1\game.exe"
It looks for libraries in libs\ beside itself, so inside libs\ it would search libs\libs\.

2. The TLS error. The relinker only supports two specific thread-local-storage instruction forms on Windows, and this game uses another one. Could you post:

  • whether the error still happens when you add --skip-sce-module (it tells us whether the failing code is in eboot.bin or in sce_module);
  • the sizes of the files: Get-ChildItem 'F:\NHL 27\PPSA34063-app0\sce_module' | select Name,Length
  • the bytes around the offset:
    $f=[IO.File]::OpenRead('F:\NHL 27\PPSA34063-app0\eboot.bin'); $f.Position=0x7479a98-16; $b=New-Object byte[] 48; [void]$f.Read($b,0,48); $f.Close(); ($b|%{'{0:x2}' -f $_}) -join ' '

With those we can tell exactly which instruction form needs support.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:5945442842 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/217#issuecomment-5945442842). Originally posted by [QDarkRex](https://github.com/QDarkRex) on 2026-10-02T04:09:39Z. --- Thanks for the report. Two things: **1. Output location.** Write the executable next to `libs\`, not inside it: `relinker-v0.1.1.exe --windows --to-intel unused-filter=1 "F:\NHL 27\PPSA34063-app0\eboot.bin" "F:\prx-windows-v0.1.1\game.exe"` It looks for libraries in `libs\` beside itself, so inside `libs\` it would search `libs\libs\`. **2. The TLS error.** The relinker only supports two specific thread-local-storage instruction forms on Windows, and this game uses another one. Could you post: - whether the error still happens when you add `--skip-sce-module` (it tells us whether the failing code is in `eboot.bin` or in `sce_module`); - the sizes of the files: `Get-ChildItem 'F:\NHL 27\PPSA34063-app0\sce_module' | select Name,Length` - the bytes around the offset: `$f=[IO.File]::OpenRead('F:\NHL 27\PPSA34063-app0\eboot.bin'); $f.Position=0x7479a98-16; $b=New-Object byte[] 48; [void]$f.Read($b,0,48); $f.Close(); ($b|%{'{0:x2}' -f $_}) -join ' '` With those we can tell exactly which instruction form needs support.
boykopovar commented 2026-10-02 05:59:31 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by boykopovar on 2026-10-02T05:59:31Z.


Regarding FAIL: Unsupported Windows guest TLS instruction (offset 0x7479a98) - thanks for reporting it. We'll fix it. We have some ideas #222

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:5946429376 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/217#issuecomment-5946429376). Originally posted by [boykopovar](https://github.com/boykopovar) on 2026-10-02T05:59:31Z. --- Regarding `FAIL: Unsupported Windows guest TLS instruction (offset 0x7479a98)` - thanks for reporting it. We'll fix it. We have some ideas #222
lerrel129 commented 2026-10-02 06:40:38 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by lerrel129 on 2026-10-02T06:40:38Z.


• I tried with --skip-sce-module but there is still same error: 
  F:\prx-windows-v0.1.1>relinker-v0.1.1.exe --windows --skip-sce-module "F:\NHL 27\PPSA34063-app0\eboot.bin" "F:\prx-windows-v0.1.1\game.exe" System: Windows; unused-filter=0 sce_module/sce_modules processing: disabled (--skip-sce-module) NID input: 9033 references Unused NID filtering: disabled; filtered=0 NID total: 9033 -> 9033; filtered=0 FAIL: Unsupported Windows guest TLS instruction (offset 0x7479a98)

• The sizes of the files: 
  Name 		Length
  libc.prx              2384010 
  libSceNpCppWebApi.prx 8816663

• The bytes around the offset
  f3 0f 1e fa 41 56 41 55 41 54 55 53 48 83 ec 20 64 48 8b 04 25 28 00 00 00 48 89 44 24 18 31 c0 48 85 ff 0f 84 7d 03 00 00 89 f5 41 bc 00 00 00
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:5946853301 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/217#issuecomment-5946853301). Originally posted by [lerrel129](https://github.com/lerrel129) on 2026-10-02T06:40:38Z. --- • I tried with --skip-sce-module but there is still same error:  F:\prx-windows-v0.1.1>relinker-v0.1.1.exe --windows --skip-sce-module "F:\NHL 27\PPSA34063-app0\eboot.bin" "F:\prx-windows-v0.1.1\game.exe" System: Windows; unused-filter=0 sce_module/sce_modules processing: disabled (--skip-sce-module) NID input: 9033 references Unused NID filtering: disabled; filtered=0 NID total: 9033 -> 9033; filtered=0 FAIL: Unsupported Windows guest TLS instruction (offset 0x7479a98) • The sizes of the files:  Name Length libc.prx 2384010  libSceNpCppWebApi.prx 8816663 • The bytes around the offset f3 0f 1e fa 41 56 41 55 41 54 55 53 48 83 ec 20 64 48 8b 04 25 28 00 00 00 48 89 44 24 18 31 c0 48 85 ff 0f 84 7d 03 00 00 89 f5 41 bc 00 00 00
QDarkRex commented 2026-10-02 06:48:34 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by QDarkRex on 2026-10-02T06:48:34Z.


Thanks! That pins it down. Disassembly of the bytes (failing instruction starts exactly at 0x7479a98):

endbr64
push r14 / r13 / r12 / rbp / rbx
sub  rsp, 0x20
mov  rax, fs:0x28          ; 64 48 8b 04 25 28 00 00 00  <- 0x7479a98
mov  [rsp+0x18], rax
xor  eax, eax

It's a stack-protector prologue reading the canary from fs:0x28. Since it still fails with --skip-sce-module (and without --to-intel), it's in eboot.bin itself.

@boykopovar, I know you already have a fix in mind with #222, so this is just to help with it: the form here isn't covered by #222 as it stands. I tested 64 48 8b 04 25 28 00 00 00 against main and against #222, and both reject it. The builder already handles the dword store to fs:0x28 but not loads from it. Protected functions usually also read fs:0x28 again in the epilogue check (cmp/sub reg, fs:0x28), so those forms will likely be needed too. Happy to share the synthetic test cases if they're useful.

(Side note: this game's sce_module ships its own libc.prx, so --skip-sce-module is the right flag for it anyway.)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:5946934779 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/217#issuecomment-5946934779). Originally posted by [QDarkRex](https://github.com/QDarkRex) on 2026-10-02T06:48:34Z. --- Thanks! That pins it down. Disassembly of the bytes (failing instruction starts exactly at 0x7479a98): endbr64 push r14 / r13 / r12 / rbp / rbx sub rsp, 0x20 mov rax, fs:0x28 ; 64 48 8b 04 25 28 00 00 00 <- 0x7479a98 mov [rsp+0x18], rax xor eax, eax It's a stack-protector prologue reading the canary from `fs:0x28`. Since it still fails with `--skip-sce-module` (and without `--to-intel`), it's in `eboot.bin` itself. @boykopovar, I know you already have a fix in mind with #222, so this is just to help with it: the form here isn't covered by #222 as it stands. I tested `64 48 8b 04 25 28 00 00 00` against main and against #222, and both reject it. The builder already handles the dword store to `fs:0x28` but not loads from it. Protected functions usually also read `fs:0x28` again in the epilogue check (`cmp`/`sub reg, fs:0x28`), so those forms will likely be needed too. Happy to share the synthetic test cases if they're useful. (Side note: this game's `sce_module` ships its own `libc.prx`, so `--skip-sce-module` is the right flag for it anyway.)
boykopovar commented 2026-10-02 07:09:38 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by boykopovar on 2026-10-02T07:09:38Z.


We need to support the general form mov r64, fs:[disp32]. The current stub for fs:[0] returns the pointer itself. For the general case, we need to actually read memory at the calculated address, not just return the pointer plus the offset.

It's worth testing zero, multiple positive and negative offsets.

#222 is merged, but it really doesn't cover this case.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:5947157421 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/217#issuecomment-5947157421). Originally posted by [boykopovar](https://github.com/boykopovar) on 2026-10-02T07:09:38Z. --- We need to support the general form `mov r64, fs:[disp32]`. The current stub for `fs:[0]` returns the pointer itself. For the general case, we need to actually read memory at the calculated address, not just return the pointer plus the offset. It's worth testing zero, multiple positive and negative offsets. #222 is merged, but it really doesn't cover this case.
QDarkRex commented 2026-10-02 07:17:34 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by QDarkRex on 2026-10-02T07:17:34Z.


Thanks, that's clear. Since #222 is merged and nobody else seems to be on it, I can take mov r64, fs:[disp32]: load from thread pointer + disp32 into any destination register except rsp, with tests that execute the relinked code and check the loaded values at zero, several positive and several negative offsets. I'll open it as a separate PR. Let me know if you'd rather handle it yourself.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:5947246740 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/217#issuecomment-5947246740). Originally posted by [QDarkRex](https://github.com/QDarkRex) on 2026-10-02T07:17:34Z. --- Thanks, that's clear. Since #222 is merged and nobody else seems to be on it, I can take `mov r64, fs:[disp32]`: load from thread pointer + disp32 into any destination register except rsp, with tests that execute the relinked code and check the loaded values at zero, several positive and several negative offsets. I'll open it as a separate PR. Let me know if you'd rather handle it yourself.
QDarkRex commented 2026-10-02 09:48:09 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by QDarkRex on 2026-10-02T09:48:09Z.


Opened #340 for mov r64, fs:[disp32], including the fs:0x28 canary load from this report. It only covers this load form; if NHL 27 hits another unsupported TLS form after it, the error will give its offset again and the bytes can be dumped the same way as before.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:5949560708 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/217#issuecomment-5949560708). Originally posted by [QDarkRex](https://github.com/QDarkRex) on 2026-10-02T09:48:09Z. --- Opened #340 for `mov r64, fs:[disp32]`, including the `fs:0x28` canary load from this report. It only covers this load form; if NHL 27 hits another unsupported TLS form after it, the error will give its offset again and the bytes can be dumped the same way as before.
lerrel129 commented 2026-10-05 17:20:13 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by lerrel129 on 2026-10-05T17:20:13Z.


After fix #340, NHL 27 now gets past the original MOV instruction
at offset 0x7479a98, but fails on another TLS instruction:

FAIL: Unsupported Windows guest TLS instruction
(bytes: 64 48 33 1c 25 28 00 00 00) (offset 0x7479e33)

This decodes to:
xor rbx, qword ptr fs:[0x28]

Built from main, commit:
71827e5c06

Windows x64, MinGW-w64 GCC 15.2.0, Release build.
Game: NHL 27, PPSA34063-app0/eboot.bin.

The same error occurs both with and without --skip-sce-module,
so the failing instruction is in eboot.bin itself.

Could you add support for this FS-relative XOR form?

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:5999499677 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/217#issuecomment-5999499677). Originally posted by [lerrel129](https://github.com/lerrel129) on 2026-10-05T17:20:13Z. --- After fix #340, NHL 27 now gets past the original MOV instruction at offset 0x7479a98, but fails on another TLS instruction: FAIL: Unsupported Windows guest TLS instruction (bytes: 64 48 33 1c 25 28 00 00 00) (offset 0x7479e33) This decodes to: xor rbx, qword ptr fs:[0x28] Built from main, commit: 71827e5c0601c34a264858564a5a912d117e5bb8 Windows x64, MinGW-w64 GCC 15.2.0, Release build. Game: NHL 27, PPSA34063-app0/eboot.bin. The same error occurs both with and without --skip-sce-module, so the failing instruction is in eboot.bin itself. Could you add support for this FS-relative XOR form?
oneandonlydean commented 2026-10-06 05:25:16 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-06T05:25:16Z.


#767 is merged (109a3281). The relinker now accepts the read-direction ALU forms OP r64, fs:[disp32] (add, or, adc, sbb, and, sub, xor, cmp with REX.W and SIB 0x25), which includes the instruction from your last comment, 64 48 33 1c 25 28 00 00 00 (xor rbx, fs:[0x28]) at 0x7479e33. The stub loads the canary and applies the xor as its last flag-setting instruction, so the branch after it sees the right flags.

It was checked at the byte level only, so your run is the first real test. Could you rebuild from main at 109a3281 or later and relink again?

  • If it stops on another TLS form, please post the new FAIL: line (it includes the bytes and the offset) and the commit you built.
  • If it relinks, the first error lines from starting game.exe would show what NHL 27 needs next.
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6009967594 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/217#issuecomment-6009967594). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-06T05:25:16Z. --- #767 is merged (`109a3281`). The relinker now accepts the read-direction ALU forms `OP r64, fs:[disp32]` (`add`, `or`, `adc`, `sbb`, `and`, `sub`, `xor`, `cmp` with REX.W and SIB `0x25`), which includes the instruction from your last comment, `64 48 33 1c 25 28 00 00 00` (`xor rbx, fs:[0x28]`) at 0x7479e33. The stub loads the canary and applies the `xor` as its last flag-setting instruction, so the branch after it sees the right flags. It was checked at the byte level only, so your run is the first real test. Could you rebuild from `main` at `109a3281` or later and relink again? - If it stops on another TLS form, please post the new `FAIL:` line (it includes the bytes and the offset) and the commit you built. - If it relinks, the first error lines from starting `game.exe` would show what NHL 27 needs next.
lerrel129 commented 2026-10-07 17:35:48 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by lerrel129 on 2026-10-07T17:35:48Z.


F:\AnyPS5\build\core\relinker>relinker.exe --windows --skip-sce-module "F:\NHL 27\PPSA34063-app0\eboot.bin" "F:\prx-windows-v0.1.1\game.exe"
System: Windows; unused-filter=0
sce_module/sce_modules/prx processing: disabled (--skip-sce-module)
NID input: 9033 references
Unused NID filtering: disabled; filtered=0
NID total: 9033 -> 9033; filtered=0
FAIL: Unsupported Windows guest TLS instruction (bytes: 64 48 8b 03) (offset 0x747c663)
Input: F:\NHL 27\PPSA34063-app0\eboot.bin

built from main, commit: cea1ef13

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6043330152 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/217#issuecomment-6043330152). Originally posted by [lerrel129](https://github.com/lerrel129) on 2026-10-07T17:35:48Z. --- F:\AnyPS5\build\core\relinker>relinker.exe --windows --skip-sce-module "F:\NHL 27\PPSA34063-app0\eboot.bin" "F:\prx-windows-v0.1.1\game.exe" System: Windows; unused-filter=0 sce_module/sce_modules/prx processing: disabled (--skip-sce-module) NID input: 9033 references Unused NID filtering: disabled; filtered=0 NID total: 9033 -> 9033; filtered=0 FAIL: Unsupported Windows guest TLS instruction (bytes: 64 48 8b 03) (offset 0x747c663) Input: F:\NHL 27\PPSA34063-app0\eboot.bin built from main, commit: cea1ef13
hashaam1217 commented 2026-10-07 18:49:21 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by hashaam1217 on 2026-10-07T18:49:21Z.


Opened #1233 for 64 48 8b 03 (mov rax, fs:[rbx]). It loads through any base/index register address, 32- or 64-bit, and moves the next instruction into the stub when the TLS instruction is shorter than the 5-byte jump (this one is 4 bytes).

If you can build that branch and relink NHL 27, the next FAIL: line (bytes and offset) would show the following form, if there is one.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6044587165 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/217#issuecomment-6044587165). Originally posted by [hashaam1217](https://github.com/hashaam1217) on 2026-10-07T18:49:21Z. --- Opened #1233 for `64 48 8b 03` (`mov rax, fs:[rbx]`). It loads through any base/index register address, 32- or 64-bit, and moves the next instruction into the stub when the TLS instruction is shorter than the 5-byte jump (this one is 4 bytes). If you can build that branch and relink NHL 27, the next `FAIL:` line (bytes and offset) would show the following form, if there is one.
lerrel129 commented 2026-10-08 05:44:32 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by lerrel129 on 2026-10-08T05:44:32Z.


F:\AnyPS5\build-pr1233\core\relinker>relinker.exe --windows --skip-sce-module "F:\NHL 27\PPSA34063-app0\eboot.bin" "F:\NHL 27 relinker\game.exe"
System: Windows; unused-filter=0
sce_module/sce_modules/prx processing: disabled (--skip-sce-module)
NID input: 9033 references
Unused NID filtering: disabled; filtered=0
NID total: 9033 -> 9033; filtered=0
FAIL: Unsupported Windows guest TLS instruction (bytes: 64 48 33 03) (offset 0x747c689)
Input: F:\NHL 27\PPSA34063-app0\eboot.bin

built from main, commit: ace7999d

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6053228669 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/217#issuecomment-6053228669). Originally posted by [lerrel129](https://github.com/lerrel129) on 2026-10-08T05:44:32Z. --- F:\AnyPS5\build-pr1233\core\relinker>relinker.exe --windows --skip-sce-module "F:\NHL 27\PPSA34063-app0\eboot.bin" "F:\NHL 27 relinker\game.exe" System: Windows; unused-filter=0 sce_module/sce_modules/prx processing: disabled (--skip-sce-module) NID input: 9033 references Unused NID filtering: disabled; filtered=0 NID total: 9033 -> 9033; filtered=0 FAIL: Unsupported Windows guest TLS instruction (bytes: 64 48 33 03) (offset 0x747c689) Input: F:\NHL 27\PPSA34063-app0\eboot.bin built from main, commit: ace7999d
lerrel129 commented 2026-10-08 07:46:24 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by lerrel129 on 2026-10-08T07:46:24Z.


I tested the current AnyPS5/relinker changes with NHL 27 PS5.

The original error from this issue:

FAIL: Unsupported Windows guest TLS instruction (offset 0x7479a98)

is no longer reproduced with my newer locally built relinker.

The relinked NHL 27 executable gets past the TLS stage and reaches the NID/import stage. The current failure is:

FAIL: unresolved ELF import i-XwZjw0OOY

followed by:

GetLastError: 127 - The specified procedure could not be found.

So for NHL 27, the TLS blocker appears to be passed with the newer relinker changes, and the next blocker is unresolved ELF import/NID resolution.

I also created a small public repository containing the NHL 27 PS5 Frostbite extraction work and tools developed during this investigation:

https://github.com/lerrel129/nhl27-ps5-extractor

The repository contains the NHL 27-specific extraction tooling and documentation; it does not contain game files.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6055232363 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/217#issuecomment-6055232363). Originally posted by [lerrel129](https://github.com/lerrel129) on 2026-10-08T07:46:24Z. --- I tested the current AnyPS5/relinker changes with NHL 27 PS5. The original error from this issue: `FAIL: Unsupported Windows guest TLS instruction (offset 0x7479a98)` is no longer reproduced with my newer locally built relinker. The relinked NHL 27 executable gets past the TLS stage and reaches the NID/import stage. The current failure is: `FAIL: unresolved ELF import i-XwZjw0OOY` followed by: `GetLastError: 127 - The specified procedure could not be found.` So for NHL 27, the TLS blocker appears to be passed with the newer relinker changes, and the next blocker is unresolved ELF import/NID resolution. I also created a small public repository containing the NHL 27 PS5 Frostbite extraction work and tools developed during this investigation: https://github.com/lerrel129/nhl27-ps5-extractor The repository contains the NHL 27-specific extraction tooling and documentation; it does not contain game files.
oneandonlydean commented 2026-10-08 08:26:28 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-08T08:26:28Z.


i-XwZjw0OOY is sce::Json::MemAllocator::notifyError, which libSceJson2 exports on main. Error 127 usually means the libs next to game.exe are older than the relinker, so use the libs built from the same commit. If it still fails, please open a new issue with the full FAIL line; this one stays for the TLS forms (#1233).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6055872818 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/217#issuecomment-6055872818). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-08T08:26:28Z. --- `i-XwZjw0OOY` is `sce::Json::MemAllocator::notifyError`, which `libSceJson2` exports on main. Error 127 usually means the `libs` next to `game.exe` are older than the relinker, so use the `libs` built from the same commit. If it still fails, please open a new issue with the full FAIL line; this one stays for the TLS forms (#1233).
oneandonlydean commented 2026-10-10 06:24:48 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-10T06:24:48Z.


Closing: #1651 handles the remaining ALU reads through fs:[reg] (64 48 33 03 included), and the TLS stage passes on current main. For a later FAIL line, please open a new issue.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6094628080 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/217#issuecomment-6094628080). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-10T06:24:48Z. --- Closing: #1651 handles the remaining ALU reads through `fs:[reg]` (`64 48 33 03` included), and the TLS stage passes on current main. For a later FAIL line, please open a new issue.
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#217
No description provided.