forked from Floorp-Projects/Floorp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1816953 - Rewrite TestDllInterceptor due to mingwclang failures. …
…r=cmartin,handyman We were using a friendly high-level syntax for our jumper in TestDllInterceptor: gDetouredCall(aCallee); We were relying on compiling this to the jumper format recognized by our hooking code: jmp qword ptr [rip + offset gDetouredCall] Unfortunately depending on compiler options (in particular CFG and -fno-omit-frame-pointer), the compiler may generate slightly different code, thus breaking the test. We now use a less friendly syntax which ensures that our jumper has the proper format. Differential Revision: https://phabricator.services.mozilla.com/D175486
- Loading branch information
Showing
2 changed files
with
34 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters