diff options
author | Dan Liew <dan@su-root.co.uk> | 2018-12-01 15:45:42 +0000 |
---|---|---|
committer | Dan Liew <dan@su-root.co.uk> | 2018-12-01 15:45:42 +0000 |
commit | 8bffb634970ce0ffc1f979d8399f1d415f60a688 (patch) | |
tree | 21f679659008fce03b030efc7222a23f8d137a90 /lldb/packages/Python/lldbsuite/test/functionalities/non-overlapping-index-variable-i | |
parent | 102854f4d403f22af10bd521a381adbd49f350a5 (diff) | |
download | bcm5719-llvm-8bffb634970ce0ffc1f979d8399f1d415f60a688.tar.gz bcm5719-llvm-8bffb634970ce0ffc1f979d8399f1d415f60a688.zip |
Introduce a way to allow the ASan dylib on Darwin platforms to be loaded via `dlopen()`.
Summary:
The purpose of this option is provide a way for the ASan dylib
to be loaded via `dlopen()` without triggering most initialization
steps (e.g. shadow memory set up) that normally occur when the
ASan dylib is loaded.
This new functionality is exposed by
- A `SANITIZER_SUPPORTS_INIT_FOR_DLOPEN` macro which indicates if the
feature is supported. This only true for Darwin currently.
- A `HandleDlopenInit()` function which should return true if the library
is being loaded via `dlopen()` and
`SANITIZER_SUPPORTS_INIT_FOR_DLOPEN` is supported. Platforms that
support this may perform any initialization they wish inside this
function.
Although disabling initialization is something that could potentially
apply to other sanitizers it appears to be unnecessary for other
sanitizers so this patch only makes the change for ASan.
rdar://problem/45284065
Reviewers: kubamracek, george.karpenkov, kcc, eugenis, krytarowski
Subscribers: #sanitizers, llvm-commits
Differential Revision: https://reviews.llvm.org/D54469
llvm-svn: 348078
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/functionalities/non-overlapping-index-variable-i')
0 files changed, 0 insertions, 0 deletions