[compiler-rt] r221986 - [asan] Revert r221882.
Evgeniy Stepanov
eugeni.stepanov at gmail.com
Fri Nov 14 05:02:28 PST 2014
Author: eugenis
Date: Fri Nov 14 07:02:28 2014
New Revision: 221986
URL: http://llvm.org/viewvc/llvm-project?rev=221986&view=rev
Log:
[asan] Revert r221882.
This code is not part of ASan runtime (as it may be linked into a different
DSO), and thus can not call non-exported functions.
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=221986&r1=221985&r2=221986&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/asan_preinit.cc (original)
+++ compiler-rt/trunk/lib/asan/asan_preinit.cc Fri Nov 14 07:02:28 2014
@@ -18,6 +18,8 @@ using namespace __asan;
#if SANITIZER_CAN_USE_PREINIT_ARRAY
// The symbol is called __local_asan_preinit, because it's not intended to be
// exported.
+ // This code linked into the main executable when -fsanitize=address is in
+ // the link flags. It can only use exported interface functions.
__attribute__((section(".preinit_array"), used))
- void (*__local_asan_preinit)(void) = AsanInitFromRtl;
+ void (*__local_asan_preinit)(void) = __asan_init;
#endif
More information about the llvm-commits
mailing list