summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitry Andric <dimitry@andric.com>2017-03-14 18:18:14 +0000
committerDimitry Andric <dimitry@andric.com>2017-03-14 18:18:14 +0000
commite773b2d3414edf5780920e6bbbf9e39d7fa1f12a (patch)
treee5f26fc46011efcc7d513001680d6d529491dad3
parent8dd99dce6c51c8b41e76c1ad75662f3015821ce9 (diff)
downloadbcm5719-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.cc2
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"
OpenPOWER on IntegriCloud