mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-07 06:43:00 +03:00
Use libc_ifunc macro for system in libpthread.
This patch uses the libc_ifunc macro to create already existing ifunc function system_ifunc if HAVE_IFUNC is defined. ChangeLog: * nptl/pt-system.c (system_ifunc): Use libc_ifunc macro.
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
|
2016-10-07 Stefan Liebler <stli@linux.vnet.ibm.com>
|
||||||
|
|
||||||
|
* nptl/pt-system.c (system_ifunc): Use libc_ifunc macro.
|
||||||
|
|
||||||
2016-10-07 Stefan Liebler <stli@linux.vnet.ibm.com>
|
2016-10-07 Stefan Liebler <stli@linux.vnet.ibm.com>
|
||||||
|
|
||||||
* rt/clock-compat.c (COMPAT_REDIRECT): Use libc_ifunc macro.
|
* rt/clock-compat.c (COMPAT_REDIRECT): Use libc_ifunc macro.
|
||||||
|
@@ -32,21 +32,10 @@
|
|||||||
|
|
||||||
# if HAVE_IFUNC
|
# if HAVE_IFUNC
|
||||||
|
|
||||||
static __typeof (system) *
|
extern __typeof(system) system_ifunc;
|
||||||
__attribute__ ((used))
|
# undef INIT_ARCH
|
||||||
system_resolve (void)
|
# define INIT_ARCH()
|
||||||
{
|
libc_ifunc (system_ifunc, &__libc_system)
|
||||||
return &__libc_system;
|
|
||||||
}
|
|
||||||
|
|
||||||
asm (".globl system_ifunc\n"
|
|
||||||
".type system_ifunc, %gnu_indirect_function");
|
|
||||||
|
|
||||||
# ifdef HAVE_ASM_SET_DIRECTIVE
|
|
||||||
asm (".set system_ifunc, system_resolve");
|
|
||||||
# else
|
|
||||||
asm ("system_ifunc = system_resolve");
|
|
||||||
# endif
|
|
||||||
|
|
||||||
# else /* !HAVE_IFUNC */
|
# else /* !HAVE_IFUNC */
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user