[PATCH] D69104: [Arm][libsanitizer] Fix arm libsanitizer failure with bleeding edge glibc
Tamar Christina via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 17 05:44:52 PDT 2019
tnfchris updated this revision to Diff 225412.
tnfchris added a comment.
Add more context, to diff.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D69104/new/
https://reviews.llvm.org/D69104
Files:
compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp
Index: compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp
===================================================================
--- compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp
+++ compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp
@@ -1128,8 +1128,11 @@
CHECK_SIZE_AND_OFFSET(ipc_perm, gid);
CHECK_SIZE_AND_OFFSET(ipc_perm, cuid);
CHECK_SIZE_AND_OFFSET(ipc_perm, cgid);
-#if !defined(__aarch64__) || !SANITIZER_LINUX || __GLIBC_PREREQ (2, 21)
+#if (!defined(__aarch64__) || !SANITIZER_LINUX || __GLIBC_PREREQ (2, 21)) && \
+ !defined(__arm__)
/* On aarch64 glibc 2.20 and earlier provided incorrect mode field. */
+/* On Arm newer glibc provide a different mode field, it's hard to detect
+ so just disable the check. */
CHECK_SIZE_AND_OFFSET(ipc_perm, mode);
#endif
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D69104.225412.patch
Type: text/x-patch
Size: 841 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191017/1f9ced55/attachment.bin>
More information about the llvm-commits
mailing list