]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
dlfcn: Pass caller pointer to static dlopen implementation (bug 29446)
authorFlorian Weimer <fweimer@redhat.com>
Thu, 4 Aug 2022 15:54:48 +0000 (17:54 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Thu, 4 Aug 2022 15:57:11 +0000 (17:57 +0200)
Fixes commit 0c1c3a771eceec46e66ce1183cf988e2303bd373 ("dlfcn: Move
dlopen into libc").

(cherry picked from commit ed0185e4129130cbe081c221efb758fb400623ce)

NEWS
dlfcn/dlopen.c

diff --git a/NEWS b/NEWS
index f61e521fc88316f739f844ac18cfc580e6154feb..15f3dd2cdb4b8712760510df17231149a21bd3c1 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -4,6 +4,13 @@ See the end for copying conditions.
 
 Please send GNU C library bug reports via <https://sourceware.org/bugzilla/>
 using `glibc' in the "product" field.
+\f
+Version 2.36.1
+
+The following bugs are resolved with this release:
+
+  [29446] _dlopen now ignores dl_caller argument in static mode
+
 \f
 Version 2.36
 
index 2696dde4b1cdf510b78f173e8b69155890ddae66..9b07b4e132f2e73d00339d8702ff34c1d455ac23 100644 (file)
@@ -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 *