diff options
author | Timo Teräs <timo.teras at iki.fi> | 2011-11-07 18:08:33 +0100 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2011-11-07 18:10:32 +0100 |
commit | 0c7690f6a5d6e073052ee6487f768289db3a58f7 (patch) | |
tree | 1028f6a895d2a3babe934d92585e43a99c009fde /ldso/ldso/ldso.c | |
parent | 515d54433138596e81267237542bd9168b8cc787 (diff) |
ldso: support RTLD_NOLOAD
So application query if specified module is loaded or not with
dlopen.
Signed-off-by: Timo Teräs <timo.teras@iki.fi>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'ldso/ldso/ldso.c')
-rw-r--r-- | ldso/ldso/ldso.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ldso/ldso/ldso.c b/ldso/ldso/ldso.c index fe463b75d..0dff9781f 100644 --- a/ldso/ldso/ldso.c +++ b/ldso/ldso/ldso.c @@ -858,7 +858,9 @@ of this helper program; chances are you did not intend to run this program.\n\ if (!_dl_secure || _dl_strchr(str, '/') == NULL) { _dl_if_debug_dprint("\tfile='%s'; needed by '%s'\n", str, _dl_progname); - tpnt1 = _dl_load_shared_library(_dl_secure, &rpnt, NULL, str, trace_loaded_objects); + tpnt1 = _dl_load_shared_library( + _dl_secure ? DL_RESOLVE_SECURE : 0, + &rpnt, NULL, str, trace_loaded_objects); if (!tpnt1) { #ifdef __LDSO_LDD_SUPPORT__ if (trace_loaded_objects || _dl_trace_prelink) |