mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-10-31 12:35:51 +00:00
Windows output accepted an executable import relocation whose target overlaps the PT_TLS initialization image, and every guest thread read 0 there because the .gtls template is copied before the entry stub binds the import. In ELF, ld.so relocates the image before copying it into a thread's TLS block. The PE patcher now refuses such a relocation after the relocation pass, as the Windows guest module writer already does, and reports its ELF target address. Linux and macOS outputs are unchanged, and the gap is recorded in docs/dev/debt/relinker.md.