Skip to content

Commit

Permalink
Fix GDC's Linux SIg offset checking (NPOTB).
Browse files Browse the repository at this point in the history
  • Loading branch information
Drifter321 committed Mar 25, 2017
1 parent 8e81310 commit 2db2af9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tools/gdc-psyfork/gdc.cpp
Expand Up @@ -571,7 +571,9 @@ void *GetLinuxSigPtr(void *handle, const char* symbol)

if (real_bytes >= 1)
{
return mu.FindPattern(handle, (char*)real_sig, real_bytes, matches, dummy);
struct link_map *dlmap = (struct link_map *)handle;

return mu.FindPattern((void *)dlmap->l_addr, (char*)real_sig, real_bytes, matches, dummy);
}
}

Expand Down

0 comments on commit 2db2af9

Please sign in to comment.