about summary refs log tree commit diff
path: root/dlfcn
diff options
context:
space:
mode:
Diffstat (limited to 'dlfcn')
-rw-r--r--dlfcn/dlopen.c3
-rw-r--r--dlfcn/dlopenold.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/dlfcn/dlopen.c b/dlfcn/dlopen.c
index dae0b5880e..793891e896 100644
--- a/dlfcn/dlopen.c
+++ b/dlfcn/dlopen.c
@@ -36,7 +36,8 @@ dlopen_doit (void *a)
 {
   struct dlopen_args *args = (struct dlopen_args *) a;
 
-  args->new = _dl_open (args->file ?: "", args->mode, args->caller);
+  args->new = _dl_open (args->file ?: "", args->mode | __RTLD_DLOPEN,
+			args->caller);
 }
 
 
diff --git a/dlfcn/dlopenold.c b/dlfcn/dlopenold.c
index d08427aef7..0d6cea95c5 100644
--- a/dlfcn/dlopenold.c
+++ b/dlfcn/dlopenold.c
@@ -42,7 +42,8 @@ dlopen_doit (void *a)
 {
   struct dlopen_args *args = (struct dlopen_args *) a;
 
-  args->new = _dl_open (args->file ?: "", args->mode, args->caller);
+  args->new = _dl_open (args->file ?: "", args->mode | __RTLD_DLOPEN,
+			args->caller);
 }
 
 void *