-
Notifications
You must be signed in to change notification settings - Fork 566
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
i#4316 a64 rseq: Port rseq mangling to AArch64
Ports rseq mangling to AArch64. This requires implementing patch_mov_immed_arch() (done by leveraging existing raw encoding code from exit stub support) and spilling extra scratch registers in multiple places. Expands translation support to cover the new mangling. This includes adding proper recognition of an mcontext base load, which was incorrectly identified as an indirect branch target load on x86. Ports the heuristic for finding the app's rseq TLS offset on attach (when we did not see an rseq syscall) for AArch64 to look forward instead of backward as on x86 where negative segment offsets are used. Enables the rseq tests for AArch64. Updates the rseq docs to state that AArch64 is supported. One final step is to support stores with writeback, which are seen in real rseq sequences. That will be done separately. This completes porting the x86 support to AArch64. Issue: #4316
- Loading branch information
1 parent
4d9f6f0
commit af7719a
Showing
10 changed files
with
184 additions
and
53 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
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
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
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
Oops, something went wrong.