From ed0185e4129130cbe081c221efb758fb400623ce Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Thu, 4 Aug 2022 17:54:48 +0200 Subject: dlfcn: Pass caller pointer to static dlopen implementation (bug 29446) Fixes commit 0c1c3a771eceec46e66ce1183cf988e2303bd373 ("dlfcn: Move dlopen into libc"). --- dlfcn/dlopen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dlfcn') 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 * -- cgit v1.2.3