mirror of
git://sourceware.org/git/glibc.git
synced 2025-03-06 20:58:33 +01:00
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>
This commit is contained in:
parent
1f09aae36a
commit
d97842653f
1 changed files with 5 additions and 1 deletions
|
@ -19,17 +19,21 @@
|
||||||
#include <dlfcn.h>
|
#include <dlfcn.h>
|
||||||
#include <elf.h>
|
#include <elf.h>
|
||||||
#include <ldsodefs.h>
|
#include <ldsodefs.h>
|
||||||
|
#include <shlib-compat.h>
|
||||||
|
|
||||||
/* This is the map for the shared object we profile. It is defined here
|
/* 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. */
|
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
|
void
|
||||||
_dl_mcount_wrapper (void *selfpc)
|
_dl_mcount_wrapper (void *selfpc)
|
||||||
{
|
{
|
||||||
GLRO(dl_mcount) ((ElfW(Addr)) RETURN_ADDRESS (0), (ElfW(Addr)) 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
|
void
|
||||||
_dl_mcount_wrapper_check (void *selfpc)
|
_dl_mcount_wrapper_check (void *selfpc)
|
||||||
|
|
Loading…
Add table
Reference in a new issue