summaryrefslogtreecommitdiff
path: root/elf
diff options
context:
space:
mode:
Diffstat (limited to 'elf')
-rw-r--r--elf/dlsym.c2
-rw-r--r--elf/dlvsym.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/elf/dlsym.c b/elf/dlsym.c
index ed786a2625..64d0cabbd4 100644
--- a/elf/dlsym.c
+++ b/elf/dlsym.c
@@ -41,7 +41,7 @@ dlsym_doit (void *a)
struct dlsym_args *args = (struct dlsym_args *) a;
args->ref = NULL;
- if (args->handle == NULL)
+ if (args->handle == RTLD_DEFAULT)
/* Search the global scope. */
args->loadbase = _dl_lookup_symbol (args->name, &args->ref,
_dl_global_scope, NULL, 0);
diff --git a/elf/dlvsym.c b/elf/dlvsym.c
index 989e87b9fa..cee0e7f36b 100644
--- a/elf/dlvsym.c
+++ b/elf/dlvsym.c
@@ -43,7 +43,7 @@ dlvsym_doit (void *a)
struct dlvsym_args *args = (struct dlvsym_args *)a;
args->ref = NULL;
- if (args->handle == NULL)
+ if (args->handle == RTLD_DEFAULT)
/* Search the global scope. */
args->loadbase = _dl_lookup_versioned_symbol (args->name, &args->ref,
_dl_global_scope,