summaryrefslogtreecommitdiff
path: root/dlfcn/dlsym.c
diff options
context:
space:
mode:
Diffstat (limited to 'dlfcn/dlsym.c')
-rw-r--r--dlfcn/dlsym.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dlfcn/dlsym.c b/dlfcn/dlsym.c
index e72202e68f..285abaaa4e 100644
--- a/dlfcn/dlsym.c
+++ b/dlfcn/dlsym.c
@@ -1,5 +1,5 @@
/* Look up a symbol in a shared object loaded by `dlopen'.
- Copyright (C) 1995-2016 Free Software Foundation, Inc.
+ Copyright (C) 1995-2018 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -55,7 +55,7 @@ void *
__dlsym (void *handle, const char *name DL_CALLER_DECL)
{
# ifdef SHARED
- if (__glibc_unlikely (_dlfcn_hook != NULL))
+ if (!rtld_active ())
return _dlfcn_hook->dlsym (handle, name, DL_CALLER);
# endif