summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbdoulaye Walsimou GAYE <abdoulaye.gaye@swissvoice.net>2013-03-22 12:32:38 +0100
committerAbdoulaye Walsimou GAYE <abdoulaye.gaye@swissvoice.net>2013-03-22 12:32:38 +0100
commit53543895db348296542aaedcf5e1ceeb48c35f10 (patch)
tree197250de69e13740a09355209786731d65077cb9
parent1d7dbc0588619913f36ace98405b54490a231246 (diff)
downloadcompiler-rt-53543895db348296542aaedcf5e1ceeb48c35f10.tar.gz
compiler-rt-53543895db348296542aaedcf5e1ceeb48c35f10.tar.bz2
compiler-rt-53543895db348296542aaedcf5e1ceeb48c35f10.tar.xz
[Embtk] common sanitizer: link arror workaround with llvm/clang-3.2compiler-rt-embtk-3.3
Signed-off-by: Abdoulaye Walsimou GAYE <abdoulaye.gaye@swissvoice.net>
-rw-r--r--lib/asan/asan_interface_internal.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/asan/asan_interface_internal.h b/lib/asan/asan_interface_internal.h
index 8288d0cb..cf659750 100644
--- a/lib/asan/asan_interface_internal.h
+++ b/lib/asan/asan_interface_internal.h
@@ -25,8 +25,12 @@ extern "C" {
// Everytime the asan ABI changes we also change the version number in this
// name. Objects build with incompatible asan ABI version
// will not link with run-time.
+#if 0 // Workaround for llvm/clang-3.2 in embtoolkit
void __asan_init_v2() SANITIZER_INTERFACE_ATTRIBUTE;
#define __asan_init __asan_init_v2
+#else
+ void __asan_init() SANITIZER_INTERFACE_ATTRIBUTE;
+#endif
// This structure describes an instrumented global variable.
struct __asan_global {