[PATCH] D20333: [sanitizer] Allow dlopen/dlclose interception to be disabled from cmake
Filipe Cabecinhas via llvm-commits
llvm-commits at lists.llvm.org
Wed May 18 09:36:07 PDT 2016
Indeed, no good place to document it :-(
Thanks for working on this!
Filipe
On Wed, May 18, 2016 at 5:12 PM, Francis Ricci <fjricci at fb.com> wrote:
> This revision was automatically updated to reflect the committed changes.
> Closed by commit rL269947: [sanitizer] Allow dlopen/dlclose interception to be disabled from cmake (authored by fjricci).
>
> Changed prior to commit:
> http://reviews.llvm.org/D20333?vs=57499&id=57639#toc
>
> Repository:
> rL LLVM
>
> http://reviews.llvm.org/D20333
>
> Files:
> compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform_interceptors.h
>
> Index: compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform_interceptors.h
> ===================================================================
> --- compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform_interceptors.h
> +++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform_interceptors.h
> @@ -280,8 +280,12 @@
> #define SANITIZER_INTERCEPT_OBSTACK SI_LINUX_NOT_ANDROID
> #define SANITIZER_INTERCEPT_FFLUSH SI_NOT_WINDOWS
> #define SANITIZER_INTERCEPT_FCLOSE SI_NOT_WINDOWS
> +
> +#ifndef SANITIZER_INTERCEPT_DLOPEN_DLCLOSE
> #define SANITIZER_INTERCEPT_DLOPEN_DLCLOSE \
> SI_FREEBSD || SI_LINUX_NOT_ANDROID || SI_MAC
> +#endif
> +
> #define SANITIZER_INTERCEPT_GETPASS SI_LINUX_NOT_ANDROID || SI_MAC
> #define SANITIZER_INTERCEPT_TIMERFD SI_LINUX_NOT_ANDROID
>
>
>
More information about the llvm-commits
mailing list