AnyPS5/core/relinker/elfpatcher
poonasor c6f934a3d0 fix(relinker): move a short guest TLS access's follower branch into its stub
A short fs-prefixed TLS access is patched with a 5-byte jump by
relocating the following instructions into the stub, but any branch
there was rejected outright. NHL 27 hits this on every stack-protector
epilogue: fs:xor rax,[rbx] immediately followed by jne __stack_chk_fail.

Allow relative conditional branches and short jumps: re-encode rel8
forms as their rel32 equivalents, rebase the displacement when the
stub is emitted, and keep rejecting loop/jrcxz, calls, returns, and
segment-prefixed followers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-11 23:44:54 -04:00
..
include/elfpatcher fix(relinker): validate the desktop entry before writing the executable 2026-10-11 12:39:14 +02:00
src fix(relinker): move a short guest TLS access's follower branch into its stub 2026-10-11 23:44:54 -04:00
tests Merge pull request #3601 from Scramblrrrr/codex/legacy-sse-reciprocals 2026-10-12 15:43:20 +13:00