diff options
| author | Dimitry Andric <dimitry@andric.com> | 2017-03-14 18:18:14 +0000 |
|---|---|---|
| committer | Dimitry Andric <dimitry@andric.com> | 2017-03-14 18:18:14 +0000 |
| commit | e773b2d3414edf5780920e6bbbf9e39d7fa1f12a (patch) | |
| tree | e5f26fc46011efcc7d513001680d6d529491dad3 | |
| parent | 8dd99dce6c51c8b41e76c1ad75662f3015821ce9 (diff) | |
| download | bcm5719-llvm-e773b2d3414edf5780920e6bbbf9e39d7fa1f12a.tar.gz bcm5719-llvm-e773b2d3414edf5780920e6bbbf9e39d7fa1f12a.zip | |
After rL297370 and rL297383, instead of a platform check, explicitly
check for the existence of RTLD_DEEPBIND, since this constant is only
supported for glibc >= 2.3.4. This fixes builds for FreeBSD and other
platforms that do not have RTLD_DEEPBIND.
llvm-svn: 297763
| -rw-r--r-- | compiler-rt/lib/sanitizer_common/sanitizer_linux.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc b/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc index 46dd0858a1c..24707c74d48 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc +++ b/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc @@ -1463,7 +1463,7 @@ void MaybeReexec() { void PrintModuleMap() { } void CheckNoDeepBind(const char *filename, int flag) { -#if !SANITIZER_ANDROID +#ifdef RTLD_DEEPBIND if (flag & RTLD_DEEPBIND) { Report( "You are trying to dlopen a %s shared library with RTLD_DEEPBIND flag" |

