[PATCH] D124135: [scudo] Disable memory tagging on arm64_32

Dominic Chen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 21 15:24:33 PDT 2022


ddcc updated this revision to Diff 424309.
ddcc added a comment.

Use __ILP32__ macro


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D124135/new/

https://reviews.llvm.org/D124135

Files:
  compiler-rt/lib/scudo/standalone/memtag.h


Index: compiler-rt/lib/scudo/standalone/memtag.h
===================================================================
--- compiler-rt/lib/scudo/standalone/memtag.h
+++ compiler-rt/lib/scudo/standalone/memtag.h
@@ -18,7 +18,8 @@
 
 namespace scudo {
 
-#if (__clang_major__ >= 12 && defined(__aarch64__)) || defined(SCUDO_FUZZ)
+#if (__clang_major__ >= 12 && defined(__aarch64__) && !__ILP32__) ||           \
+    defined(SCUDO_FUZZ)
 
 // We assume that Top-Byte Ignore is enabled if the architecture supports memory
 // tagging. Not all operating systems enable TBI, so we only claim architectural
@@ -57,7 +58,7 @@
 
 #endif
 
-#if __clang_major__ >= 12 && defined(__aarch64__)
+#if __clang_major__ >= 12 && defined(__aarch64__) && !__ILP32__
 
 #if SCUDO_LINUX
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D124135.424309.patch
Type: text/x-patch
Size: 766 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220421/fe56f8f2/attachment.bin>


More information about the llvm-commits mailing list