* dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.

Patch by Olivier Fourdan <ofourdan@redhat.com>.
This commit is contained in:
Ulrich Drepper 2008-09-17 03:12:41 +00:00
parent 5efd3a3bf3
commit 0a26fc4d99
3 changed files with 10 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2008-09-16 Ulrich Drepper <drepper@redhat.com>
* dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
Patch by Olivier Fourdan <ofourdan@redhat.com>.
2008-09-15 Ulrich Drepper <drepper@redhat.com> 2008-09-15 Ulrich Drepper <drepper@redhat.com>
* sunrpc/rpc/svc.h: Declare svcfd_create. * sunrpc/rpc/svc.h: Declare svcfd_create.

4
NEWS
View File

@ -1,4 +1,4 @@
GNU C Library NEWS -- history of user-visible changes. 2008-8-2 GNU C Library NEWS -- history of user-visible changes. 2008-9-16
Copyright (C) 1992-2007, 2008 Free Software Foundation, Inc. Copyright (C) 1992-2007, 2008 Free Software Foundation, Inc.
See the end for copying conditions. See the end for copying conditions.
@ -38,6 +38,8 @@ Version 2.9
* Sorting rules for some Indian languages (Kannada, Gurumukhi, Telugu) * Sorting rules for some Indian languages (Kannada, Gurumukhi, Telugu)
Implemented by Pravin Satpute. Implemented by Pravin Satpute.
* New locales: sd_IN, sd_IN@devanagari, ks_IN@devanagari, ht_HT, en_AG, nl_AW.
Version 2.8 Version 2.8

View File

@ -60,7 +60,8 @@ dlopen_doit (void *a)
struct dlopen_args *args = (struct dlopen_args *) a; struct dlopen_args *args = (struct dlopen_args *) a;
if (args->mode & ~(RTLD_BINDING_MASK | RTLD_NOLOAD | RTLD_DEEPBIND 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")); GLRO(dl_signal_error) (0, NULL, NULL, _("invalid mode parameter"));
args->new = GLRO(dl_open) (args->file ?: "", args->mode | __RTLD_DLOPEN, args->new = GLRO(dl_open) (args->file ?: "", args->mode | __RTLD_DLOPEN,