[compiler-rt] r215719 - [ASan/Win] We don't really need to use .CRT to call __asan_init when using -MD
Timur Iskhodzhanov
timurrrr at google.com
Fri Aug 15 07:44:17 PDT 2014
Author: timurrrr
Date: Fri Aug 15 09:44:17 2014
New Revision: 215719
URL: http://llvm.org/viewvc/llvm-project?rev=215719&view=rev
Log:
[ASan/Win] We don't really need to use .CRT to call __asan_init when using -MD
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=215719&r1=215718&r2=215719&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/asan_preinit.cc (original)
+++ compiler-rt/trunk/lib/asan/asan_preinit.cc Fri Aug 15 09:44:17 2014
@@ -18,10 +18,4 @@
// exported.
__attribute__((section(".preinit_array"), used))
void (*__local_asan_preinit)(void) = __asan_init;
-#elif SANITIZER_WINDOWS && defined(_DLL)
- // On Windows, when using dynamic CRT (/MD), we can put a pointer
- // to __asan_init into the global list of C initializers.
- // See crt0dat.c in the CRT sources for the details.
- #pragma section(".CRT$XIB", long, read) // NOLINT
- __declspec(allocate(".CRT$XIB")) void (*__asan_preinit)() = __asan_init;
#endif
More information about the llvm-commits
mailing list