[PATCH] D14921: [sanitizer] Don't use ARM_VFPREGS_SIZE for old kernels.
Maxim Ostapenko via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 23 10:45:25 PST 2015
m.ostepenko updated this revision to Diff 40950.
m.ostepenko added a comment.
Addressing Yura's comment.
Repository:
rL LLVM
http://reviews.llvm.org/D14921
Files:
lib/sanitizer_common/sanitizer_platform_limits_posix.cc
Index: lib/sanitizer_common/sanitizer_platform_limits_posix.cc
===================================================================
--- lib/sanitizer_common/sanitizer_platform_limits_posix.cc
+++ lib/sanitizer_common/sanitizer_platform_limits_posix.cc
@@ -123,6 +123,10 @@
# include <asm/ptrace.h>
# ifdef __arm__
typedef struct user_fpregs elf_fpregset_t;
+# define ARM_VFPREGS_SIZE_ASAN (32 * 8 /*fpregs*/ + 4 /*fpscr*/)
+# if !defined(ARM_VFPREGS_SIZE)
+# define ARM_VFPREGS_SIZE ARM_VFPREGS_SIZE_ASAN
+# endif
# endif
# endif
# include <semaphore.h>
@@ -1264,4 +1268,8 @@
CHECK_TYPE_SIZE(sem_t);
#endif
+#if SANITIZER_LINUX && defined(__arm__)
+COMPILER_CHECK(ARM_VFPREGS_SIZE == ARM_VFPREGS_SIZE_ASAN);
+#endif
+
#endif // SANITIZER_LINUX || SANITIZER_FREEBSD || SANITIZER_MAC
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D14921.40950.patch
Type: text/x-patch
Size: 805 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151123/8338b492/attachment-0001.bin>
More information about the llvm-commits
mailing list