OpenOrbis / mira-project

mira rewrite in cxx
GNU General Public License v3.0
294 stars 63 forks source link

Fix Substitute on 7.5x #148

Closed sleirsgoevy closed 2 years ago

sleirsgoevy commented 3 years ago

The issue: CreatePOSIXThread relied on pattern-matching the machine code of pthread_getthreadid_np to determine the address of thr_initial. 7.5x libkernel has the function compiled in a slightly different way, which breaks the pattern-matching. This PR adds code for properly matching the 75x-style code.

sleirsgoevy commented 3 years ago

Note: the failed checks are due to missing PVS-Studio license, not due to actual failures.