forked from rpms/glibc
25 lines
795 B
Diff
25 lines
795 B
Diff
commit 875b2414cd68df64aeead651a9b05ae9bc3d88ef
|
|
Author: Florian Weimer <fweimer@redhat.com>
|
|
Date: Thu Aug 4 17:54:48 2022 +0200
|
|
|
|
dlfcn: Pass caller pointer to static dlopen implementation (bug 29446)
|
|
|
|
Fixes commit 0c1c3a771eceec46e66ce1183cf988e2303bd373 ("dlfcn: Move
|
|
dlopen into libc").
|
|
|
|
(cherry picked from commit ed0185e4129130cbe081c221efb758fb400623ce)
|
|
|
|
diff --git a/dlfcn/dlopen.c b/dlfcn/dlopen.c
|
|
index 9c59c751c4eaf7a7..739d17baafe928cc 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 *
|