[xray] Preserve x8 in trampoline on AArch64
authorIan Levesque <ianlevesque@fb.com>
Tue, 21 Apr 2020 22:44:19 +0000 (18:44 -0400)
committerIan Levesque <ianlevesque@fb.com>
Mon, 27 Apr 2020 18:57:26 +0000 (14:57 -0400)
commit4b9bef7e6cae4212ab7325ab3165ce01be4344bc
treea3c7428ef44c7b36154690a15513818fbc5b266d
parentc8433a5b1b9c17659b2f6f024652ab5270c6c184
[xray] Preserve x8 in trampoline on AArch64

Summary: Fixes an ABI violation in the trampoline code for AArch64 that causes the indirect result register to get overwritten if the XRay handler function is complex enough to use it.

Reviewers: MaskRay, dberris, johnislarry

Subscribers: kristof.beyls, danielkiss, #sanitizers

Tags: #sanitizers

Differential Revision: https://reviews.llvm.org/D78596
compiler-rt/lib/xray/xray_trampoline_AArch64.S