diff options
author | Etienne Bergeron <etienneb@google.com> | 2016-09-30 17:47:34 +0000 |
---|---|---|
committer | Etienne Bergeron <etienneb@google.com> | 2016-09-30 17:47:34 +0000 |
commit | 49f0371065508161f0200cc23e588b1689bf5a15 (patch) | |
tree | d571efe9b81b877f51b69fa7a4dd370503b13b8c /lib/asan/asan_win.cc | |
parent | 7e05a832ff3bc58685cebae0c9ecb5cc715ebed1 (diff) |
[compiler-rt] Add support for the dynamic shadow allocation
Summary:
This patch is adding support for dynamic shadow allocation.
This is a merge and re-commit of the following patches.
```
[compiler-rt] Fix Asan build on Android
https://reviews.llvm.org/D24768
[compiler-rt] Add support for the dynamic shadow allocation
https://reviews.llvm.org/D23363
```
This patch needed to re-land at the same time:
```
[asan] Support dynamic shadow address instrumentation
https://reviews.llvm.org/D23354
```
Reviewers: rnk, zaks.anna
Subscribers: tberghammer, danalbert, kubabrecka, dberris, chrisha, llvm-commits
Differential Revision: https://reviews.llvm.org/D25104
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@282882 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/asan/asan_win.cc')
-rw-r--r-- | lib/asan/asan_win.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/asan/asan_win.cc b/lib/asan/asan_win.cc index 58649139e..c3f7943c2 100644 --- a/lib/asan/asan_win.cc +++ b/lib/asan/asan_win.cc @@ -37,6 +37,12 @@ int __asan_should_detect_stack_use_after_return() { return __asan_option_detect_stack_use_after_return; } +SANITIZER_INTERFACE_ATTRIBUTE +uptr __asan_get_shadow_memory_dynamic_address() { + __asan_init(); + return __asan_shadow_memory_dynamic_address; +} + // -------------------- A workaround for the absence of weak symbols ----- {{{ // We don't have a direct equivalent of weak symbols when using MSVC, but we can // use the /alternatename directive to tell the linker to default a specific |