Use libc_ifunc macro for clock_* symbols in librt.
This patch uses the libc_ifunc macro to create already existing ifunc functions clock_getres, clock_gettime, clock_settime, clock_getcpuclockid and clock_nanosleep. If HAVE_IFUNC is defined, the macro COMPAT_REDIRECT uses the libc_ifunc macro. Furthermore some whitespace damage is cleaned. ChangeLog: * rt/clock-compat.c (COMPAT_REDIRECT): Use libc_ifunc macro.
This commit is contained in:
parent
a4d7fe35cd
commit
98ac7b7c85
|
@ -1,3 +1,7 @@
|
|||
2016-10-07 Stefan Liebler <stli@linux.vnet.ibm.com>
|
||||
|
||||
* rt/clock-compat.c (COMPAT_REDIRECT): Use libc_ifunc macro.
|
||||
|
||||
2016-10-07 Stefan Liebler <stli@linux.vnet.ibm.com>
|
||||
|
||||
* sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
|
||||
|
|
|
@ -28,13 +28,9 @@
|
|||
#include <time.h>
|
||||
|
||||
#if HAVE_IFUNC
|
||||
# define COMPAT_REDIRECT(name, proto, arglist) \
|
||||
__typeof (name) *name##_ifunc (void) asm (#name); \
|
||||
__typeof (name) *name##_ifunc (void) \
|
||||
{ \
|
||||
return &__##name; \
|
||||
} \
|
||||
asm (".type " #name ", %gnu_indirect_function");
|
||||
# undef INIT_ARCH
|
||||
# define INIT_ARCH()
|
||||
# define COMPAT_REDIRECT(name, proto, arglist) libc_ifunc (name, &__##name)
|
||||
#else
|
||||
# define COMPAT_REDIRECT(name, proto, arglist) \
|
||||
int \
|
||||
|
|
Loading…
Reference in New Issue