[PATCH] D47079: [asan] Explicitly declare memintrinsics interceptors to have C linkage
Walter Lee via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri May 18 11:05:10 PDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rL332746: [asan] Explicitly declare memintrinsics interceptors to have C linkage (authored by waltl, committed by ).
Herald added a subscriber: delcypher.
Changed prior to commit:
https://reviews.llvm.org/D47079?vs=147555&id=147558#toc
Repository:
rL LLVM
https://reviews.llvm.org/D47079
Files:
compiler-rt/trunk/lib/asan/asan_interceptors_memintrinsics.cc
Index: compiler-rt/trunk/lib/asan/asan_interceptors_memintrinsics.cc
===================================================================
--- compiler-rt/trunk/lib/asan/asan_interceptors_memintrinsics.cc
+++ compiler-rt/trunk/lib/asan/asan_interceptors_memintrinsics.cc
@@ -33,12 +33,12 @@
#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(__asan_memcpy) memcpy[[gnu::alias("__asan_memcpy")]];
-decltype(__asan_memmove) memmove[[gnu::alias("__asan_memmove")]];
-decltype(__asan_memset) memset[[gnu::alias("__asan_memset")]];
+// Fuchsia and RTEMS don'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.
+
+extern "C" decltype(__asan_memcpy) memcpy[[gnu::alias("__asan_memcpy")]];
+extern "C" decltype(__asan_memmove) memmove[[gnu::alias("__asan_memmove")]];
+extern "C" decltype(__asan_memset) memset[[gnu::alias("__asan_memset")]];
#endif // SANITIZER_FUCHSIA || SANITIZER_RTEMS
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D47079.147558.patch
Type: text/x-patch
Size: 1199 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180518/c09b0076/attachment.bin>
More information about the llvm-commits
mailing list