diff options
author | Kostya Serebryany <kcc@google.com> | 2014-02-13 07:50:20 +0000 |
---|---|---|
committer | Kostya Serebryany <kcc@google.com> | 2014-02-13 07:50:20 +0000 |
commit | 33465467e7f8243933100bab3cf8f34b79a8f54c (patch) | |
tree | 5a53e52285bb0a3269f926a9bb494ccb31eb05f3 /lib/asan/asan_linux.cc | |
parent | 927771be78db63881cd45397155ab3eff9f15780 (diff) |
[sanitizer] AArch64 sanitizer support; patch by Christophe Lyon and Yvan Roux
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201303 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/asan/asan_linux.cc')
-rw-r--r-- | lib/asan/asan_linux.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/asan/asan_linux.cc b/lib/asan/asan_linux.cc index 042e06ed9..4e7ca7e77 100644 --- a/lib/asan/asan_linux.cc +++ b/lib/asan/asan_linux.cc @@ -57,6 +57,11 @@ void GetPcSpBp(void *context, uptr *pc, uptr *sp, uptr *bp) { *pc = ucontext->uc_mcontext.arm_pc; *bp = ucontext->uc_mcontext.arm_fp; *sp = ucontext->uc_mcontext.arm_sp; +# elif defined(__aarch64__) + ucontext_t *ucontext = (ucontext_t*)context; + *pc = ucontext->uc_mcontext.pc; + *bp = ucontext->uc_mcontext.regs[29]; + *sp = ucontext->uc_mcontext.sp; # elif defined(__hppa__) ucontext_t *ucontext = (ucontext_t*)context; *pc = ucontext->uc_mcontext.sc_iaoq[0]; |