diff mbox series

dlfcn: Pass caller pointer to static dlopen implementation (bug 29446)

Message ID 87edxwlcxx.fsf@oldenburg.str.redhat.com
State New
Headers show
Series dlfcn: Pass caller pointer to static dlopen implementation (bug 29446) | expand

Commit Message

Florian Weimer Aug. 4, 2022, 6:50 a.m. UTC
Fixes commit 0c1c3a771eceec46e66ce1183cf988e2303bd373 ("dlfcn: Move
dlopen into libc").

Tested on i686-linux-gnu and x86_64-linux-gnu.

---
 dlfcn/dlopen.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Andreas Schwab Aug. 4, 2022, 3:34 p.m. UTC | #1
On Aug 04 2022, Florian Weimer via Libc-alpha wrote:

> Fixes commit 0c1c3a771eceec46e66ce1183cf988e2303bd373 ("dlfcn: Move
> dlopen into libc").

Ok.
diff mbox series

Patch

diff --git a/dlfcn/dlopen.c b/dlfcn/dlopen.c
index 2696dde4b1..9b07b4e132 100644
--- a/dlfcn/dlopen.c
+++ b/dlfcn/dlopen.c
@@ -90,7 +90,7 @@  compat_symbol (libdl, ___dlopen, dlopen, GLIBC_2_1);
 void *
 __dlopen (const char *file, int mode, void *dl_caller)
 {
-  return dlopen_implementation (file, mode, RETURN_ADDRESS (0));
+  return dlopen_implementation (file, mode, dl_caller);
 }
 
 void *