diff options
author | Petr Hosek <phosek@chromium.org> | 2017-08-28 00:45:12 +0000 |
---|---|---|
committer | Petr Hosek <phosek@chromium.org> | 2017-08-28 00:45:12 +0000 |
commit | 26676b9c57b4e21dc89f668c54e7eab5d31f9bb8 (patch) | |
tree | b58f31bf9f5b077c630a0f21919b3aed00b3c6d2 /include/sanitizer | |
parent | fe253ee56618ac233dc0516daea8775b58f456d8 (diff) |
[asan] Move __asan_handle_no_return to public header
Heretofore asan_handle_no_return was used only by interceptors,
i.e. code private to the ASan runtime. However, on systems without
interceptors, code like libc++abi is built with -fsanitize=address
itself and should call asan_handle_no_return directly from
__cxa_throw so that no interceptor is required.
Patch by Roland McGrath
Differential Revision: https://reviews.llvm.org/D36811
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@311869 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/sanitizer')
-rw-r--r-- | include/sanitizer/asan_interface.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/sanitizer/asan_interface.h b/include/sanitizer/asan_interface.h index 97ba0ceb0..e689a730e 100644 --- a/include/sanitizer/asan_interface.h +++ b/include/sanitizer/asan_interface.h @@ -144,6 +144,10 @@ extern "C" { void *__asan_addr_is_in_fake_stack(void *fake_stack, void *addr, void **beg, void **end); + // Performs cleanup before a [[noreturn]] function. Must be called + // before things like _exit and execl to avoid false positives on stack. + void __asan_handle_no_return(void); + #ifdef __cplusplus } // extern "C" #endif |