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
This commit is contained in:
Dimitry Andric 2017-03-14 18:18:14 +00:00
parent 8dd99dce6c
commit e773b2d341
1 changed files with 1 additions and 1 deletions

View File

@ -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"