about summary refs log tree commit diff
path: root/dlfcn
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2008-09-17 03:12:41 +0000
committerUlrich Drepper <drepper@redhat.com>2008-09-17 03:12:41 +0000
commit0a26fc4d99ed5dfbeefeae17b6d88743107dad7f (patch)
tree1c0f11ee181d114580d068b9fc402b77b156ed5c /dlfcn
parent5efd3a3bf34510f554c493d5045f3ef6d65556dd (diff)
downloadglibc-0a26fc4d99ed5dfbeefeae17b6d88743107dad7f.tar.gz
glibc-0a26fc4d99ed5dfbeefeae17b6d88743107dad7f.tar.xz
glibc-0a26fc4d99ed5dfbeefeae17b6d88743107dad7f.zip
* dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
	Patch by Olivier Fourdan <ofourdan@redhat.com>.
Diffstat (limited to 'dlfcn')
-rw-r--r--dlfcn/dlopen.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/dlfcn/dlopen.c b/dlfcn/dlopen.c
index bffb512aa3..e93a584e81 100644
--- a/dlfcn/dlopen.c
+++ b/dlfcn/dlopen.c
@@ -60,7 +60,8 @@ dlopen_doit (void *a)
   struct dlopen_args *args = (struct dlopen_args *) a;
 
   if (args->mode & ~(RTLD_BINDING_MASK | RTLD_NOLOAD | RTLD_DEEPBIND
-		     | RTLD_GLOBAL | RTLD_LOCAL | RTLD_NODELETE))
+		     | RTLD_GLOBAL | RTLD_LOCAL | RTLD_NODELETE
+		     | __RTLD_SPROF))
     GLRO(dl_signal_error) (0, NULL, NULL, _("invalid mode parameter"));
 
   args->new = GLRO(dl_open) (args->file ?: "", args->mode | __RTLD_DLOPEN,