summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEhsan Akhgari <ehsan.akhgari@gmail.com>2014-09-25 20:47:10 +0000
committerEhsan Akhgari <ehsan.akhgari@gmail.com>2014-09-25 20:47:10 +0000
commit5bb7234b237fd62d54f73f8ad32f5977057b954c (patch)
treed8d890a98b4a4047b32bb1fb06ba67c3a7d7cba7
parent045423f26d325e7ec95e63c977ca33741e0186b8 (diff)
downloadbcm5719-llvm-5bb7234b237fd62d54f73f8ad32f5977057b954c.tar.gz
bcm5719-llvm-5bb7234b237fd62d54f73f8ad32f5977057b954c.zip
Add support for intercepting functions from msvcr110.dll
Summary: This finishes support for ASAN on MSVC2012. Test Plan: |ninja check-asan| passes locally with this on MSVC2012. Reviewers: timurrrr Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D5494 llvm-svn: 218465
-rw-r--r--compiler-rt/lib/interception/interception_win.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/compiler-rt/lib/interception/interception_win.cc b/compiler-rt/lib/interception/interception_win.cc
index ecd5d2efa78..cd241c3d23c 100644
--- a/compiler-rt/lib/interception/interception_win.cc
+++ b/compiler-rt/lib/interception/interception_win.cc
@@ -182,7 +182,10 @@ bool OverrideFunction(uptr old_func, uptr new_func, uptr *orig_old_func) {
}
static const void **InterestingDLLsAvailable() {
- const char *InterestingDLLs[] = { "kernel32.dll", "msvcr120.dll", NULL };
+ const char *InterestingDLLs[] = {"kernel32.dll",
+ "msvcr110.dll", // VS2012
+ "msvcr120.dll", // VS2013
+ NULL};
static void *result[ARRAY_SIZE(InterestingDLLs)] = { 0 };
if (!result[0]) {
for (size_t i = 0, j = 0; InterestingDLLs[i]; ++i) {
OpenPOWER on IntegriCloud