summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimur Iskhodzhanov <timurrrr@google.com>2014-08-15 14:44:17 +0000
committerTimur Iskhodzhanov <timurrrr@google.com>2014-08-15 14:44:17 +0000
commitf8b1cd210dc5a54057d1dd0731f944e12b3da780 (patch)
tree8812975a7c949615997d49a8c7feb5fc6b804d44
parent5e955fbd27810cbcebaa6cad40e82add6779b964 (diff)
downloadbcm5719-llvm-f8b1cd210dc5a54057d1dd0731f944e12b3da780.tar.gz
bcm5719-llvm-f8b1cd210dc5a54057d1dd0731f944e12b3da780.zip
[ASan/Win] We don't really need to use .CRT to call __asan_init when using -MD
llvm-svn: 215719
-rw-r--r--compiler-rt/lib/asan/asan_preinit.cc6
1 files changed, 0 insertions, 6 deletions
diff --git a/compiler-rt/lib/asan/asan_preinit.cc b/compiler-rt/lib/asan/asan_preinit.cc
index 0dd0a0955e9..e8d7a4441a3 100644
--- a/compiler-rt/lib/asan/asan_preinit.cc
+++ b/compiler-rt/lib/asan/asan_preinit.cc
@@ -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
OpenPOWER on IntegriCloud