mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-28 00:21:52 +03:00
rt: avoid PLT setup in timer_[sg]ettime
The functions __timer_gettime64 and __timer_settime64 live in librt, not libc. Use proper hidden aliases so that the callers do not need to set up the PLT register. Fixes commitscae1635a70
("y2038: linux: Provide __timer_settime64 implementation") and562cdc19c7
("y2038: linux: Provide __timer_gettime64 implementation").
This commit is contained in:
@ -52,6 +52,8 @@ __timer_gettime64 (timer_t timerid, struct __itimerspec64 *value)
|
||||
}
|
||||
|
||||
#if __TIMESIZE != 64
|
||||
librt_hidden_def (__timer_gettime64)
|
||||
|
||||
int
|
||||
__timer_gettime (timer_t timerid, struct itimerspec *value)
|
||||
{
|
||||
@ -67,4 +69,3 @@ __timer_gettime (timer_t timerid, struct itimerspec *value)
|
||||
}
|
||||
#endif
|
||||
weak_alias (__timer_gettime, timer_gettime)
|
||||
libc_hidden_def (timer_gettime)
|
||||
|
Reference in New Issue
Block a user