forked from OSchip/llvm-project
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:
parent
8dd99dce6c
commit
e773b2d341
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue