diff options
author | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2013-07-05 08:57:47 +0000 |
---|---|---|
committer | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2013-07-05 08:57:47 +0000 |
commit | 22d8767a45f08218b4d725146c5a8484a183be29 (patch) | |
tree | 67f24db94954b2be93c1552c5e907c78b0cc415f /lib/sanitizer_common/sanitizer_platform_limits_posix.h | |
parent | 2e6a1fb50f0252b673c37a272773a83508d4f927 (diff) | |
download | compiler-rt-22d8767a45f08218b4d725146c5a8484a183be29.tar.gz compiler-rt-22d8767a45f08218b4d725146c5a8484a183be29.tar.bz2 compiler-rt-22d8767a45f08218b4d725146c5a8484a183be29.tar.xz |
[sanitizer] Disable ptrace interception on non-x86(_64).
Patch by Hal Finkel.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185686 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/sanitizer_common/sanitizer_platform_limits_posix.h')
-rw-r--r-- | lib/sanitizer_common/sanitizer_platform_limits_posix.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/sanitizer_common/sanitizer_platform_limits_posix.h b/lib/sanitizer_common/sanitizer_platform_limits_posix.h index 9b0ab0a1..3e1b3189 100644 --- a/lib/sanitizer_common/sanitizer_platform_limits_posix.h +++ b/lib/sanitizer_common/sanitizer_platform_limits_posix.h @@ -189,7 +189,8 @@ namespace __sanitizer { extern int glob_nomatch; #endif -#if SANITIZER_LINUX && !SANITIZER_ANDROID +#if SANITIZER_LINUX && !SANITIZER_ANDROID && \ + (defined(__i386) || defined (__x86_64)) extern unsigned struct_user_regs_struct_sz; extern unsigned struct_user_fpregs_struct_sz; extern unsigned struct_user_fpxregs_struct_sz; |