[PATCH] D46625: [asan] Enable memtrinsics interception for RTEMS

Walter Lee via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 10 14:48:53 PDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rCRT332047: [asan] Enable memtrinsics interception for RTEMS (authored by waltl, committed by ).
Herald added a subscriber: Sanitizers.

Changed prior to commit:
  https://reviews.llvm.org/D46625?vs=145856&id=146232#toc

Repository:
  rCRT Compiler Runtime

https://reviews.llvm.org/D46625

Files:
  lib/asan/asan_interceptors_memintrinsics.cc


Index: lib/asan/asan_interceptors_memintrinsics.cc
===================================================================
--- lib/asan/asan_interceptors_memintrinsics.cc
+++ lib/asan/asan_interceptors_memintrinsics.cc
@@ -31,14 +31,14 @@
   ASAN_MEMMOVE_IMPL(nullptr, to, from, size);
 }
 
-#if SANITIZER_FUCHSIA
+#if SANITIZER_FUCHSIA || SANITIZER_RTEMS
 
 // Fuchsia doesn't use sanitizer_common_interceptors.inc, but the only
 // things there it wants are these three.  Just define them as aliases
 // here rather than repeating the contents.
 
-decltype(memcpy) memcpy[[gnu::alias("__asan_memcpy")]];
-decltype(memmove) memmove[[gnu::alias("__asan_memmove")]];
-decltype(memset) memset[[gnu::alias("__asan_memset")]];
+decltype(__asan_memcpy) memcpy[[gnu::alias("__asan_memcpy")]];
+decltype(__asan_memmove) memmove[[gnu::alias("__asan_memmove")]];
+decltype(__asan_memset) memset[[gnu::alias("__asan_memset")]];
 
-#endif  // SANITIZER_FUCHSIA
+#endif  // SANITIZER_FUCHSIA || SANITIZER_RTEMS


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D46625.146232.patch
Type: text/x-patch
Size: 995 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180510/8006f382/attachment.bin>


More information about the llvm-commits mailing list