[PATCH] dlfcn: Pass caller pointer to static dlopen implementation (bug 29446)
Florian Weimer
fweimer@redhat.com
Thu Aug 4 06:50:34 GMT 2022
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(-)
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 *
More information about the Libc-alpha
mailing list