Upstream commit: 68507377f249d165f1f35502d96e9365edb07d9a - socket: Check lengths before advancing pointer in CMSG_NXTHDR - alpha: Fix generic brk system call emulation in __brk_call (bug 29490) - stdlib: Fixup mbstowcs NULL __dst handling. [BZ #29279] - stdlib: Remove attr_write from mbstows if dst is NULL [BZ: 29265] - Update syscall lists for Linux 5.19 - dlfcn: Pass caller pointer to static dlopen implementation (bug 29446)
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 *
|