[compiler-rt] r221882 - [asan] Switch to AsanInitFromRtl in .preinit_array.
Evgeniy Stepanov
eugeni.stepanov at gmail.com
Thu Nov 13 01:50:56 PST 2014
Author: eugenis
Date: Thu Nov 13 03:50:56 2014
New Revision: 221882
URL: http://llvm.org/viewvc/llvm-project?rev=221882&view=rev
Log:
[asan] Switch to AsanInitFromRtl in .preinit_array.
There is no functionality change due to a check in AsanActivate.
Modified:
compiler-rt/trunk/lib/asan/asan_preinit.cc
Modified: compiler-rt/trunk/lib/asan/asan_preinit.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/asan_preinit.cc?rev=221882&r1=221881&r2=221882&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/asan_preinit.cc (original)
+++ compiler-rt/trunk/lib/asan/asan_preinit.cc Thu Nov 13 03:50:56 2014
@@ -13,9 +13,11 @@
//===----------------------------------------------------------------------===//
#include "asan_internal.h"
+using namespace __asan;
+
#if SANITIZER_CAN_USE_PREINIT_ARRAY
// The symbol is called __local_asan_preinit, because it's not intended to be
// exported.
__attribute__((section(".preinit_array"), used))
- void (*__local_asan_preinit)(void) = __asan_init;
+ void (*__local_asan_preinit)(void) = AsanInitFromRtl;
#endif
More information about the llvm-commits
mailing list