mirror of
git://sourceware.org/git/glibc.git
synced 2024-11-27 03:41:23 +08: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:
parent
98ac7b7c85
commit
75685c4d98
@ -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>
|
||||
|
||||
* rt/clock-compat.c (COMPAT_REDIRECT): Use libc_ifunc macro.
|
||||
|
@ -32,21 +32,10 @@
|
||||
|
||||
# if HAVE_IFUNC
|
||||
|
||||
static __typeof (system) *
|
||||
__attribute__ ((used))
|
||||
system_resolve (void)
|
||||
{
|
||||
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
|
||||
extern __typeof(system) system_ifunc;
|
||||
# undef INIT_ARCH
|
||||
# define INIT_ARCH()
|
||||
libc_ifunc (system_ifunc, &__libc_system)
|
||||
|
||||
# else /* !HAVE_IFUNC */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user