public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc] Obsolete _dl_mcount_wrapper in glibc 2.40 [BZ #31765]
@ 2024-05-21 17:12 H.J. Lu
  0 siblings, 0 replies; only message in thread
From: H.J. Lu @ 2024-05-21 17:12 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=d97842653fba2fe5c093a101ac923a1b9e5e637c

commit d97842653fba2fe5c093a101ac923a1b9e5e637c
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Mon May 20 19:37:20 2024 -0700

    Obsolete _dl_mcount_wrapper in glibc 2.40 [BZ #31765]
    
    There is no _dl_mcount_wrapper prototype in any installed header files.
    Fix BZ #31765 by changing _dl_mcount_wrapper to a compat symbol and
    obsolete it in glibc 2.40.
    
    Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
    Reviewed-by: Sunil K Pandey <skpgkp2@gmail.com>

Diff:
---
 elf/libc-dl-profstub.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/elf/libc-dl-profstub.c b/elf/libc-dl-profstub.c
index 36a65f4616..dd12443f2c 100644
--- a/elf/libc-dl-profstub.c
+++ b/elf/libc-dl-profstub.c
@@ -19,17 +19,21 @@
 #include <dlfcn.h>
 #include <elf.h>
 #include <ldsodefs.h>
+#include <shlib-compat.h>
 
 /* This is the map for the shared object we profile.  It is defined here
    only because we test for this value being NULL or not.  */
 
-
+#if SHLIB_COMPAT(libc, GLIBC_2_1, GLIBC_2_40)
+attribute_compat_text_section
 void
 _dl_mcount_wrapper (void *selfpc)
 {
   GLRO(dl_mcount) ((ElfW(Addr)) RETURN_ADDRESS (0), (ElfW(Addr)) selfpc);
 }
 
+compat_symbol (libc, _dl_mcount_wrapper, _dl_mcount_wrapper, GLIBC_2_1);
+#endif
 
 void
 _dl_mcount_wrapper_check (void *selfpc)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-05-21 17:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-21 17:12 [glibc] Obsolete _dl_mcount_wrapper in glibc 2.40 [BZ #31765] H.J. Lu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).