mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
Fix symbol definitions for __clock_* functions
__clock_gettime and other __clock_* functions could result in an extra PLT reference within libc.so if it actually gets used. None of the code currently uses them, which is why this probably went unnoticed.
This commit is contained in:
@ -76,7 +76,7 @@ realtime_getres (struct timespec *res)
|
||||
|
||||
/* Get resolution of clock. */
|
||||
int
|
||||
clock_getres (clockid_t clock_id, struct timespec *res)
|
||||
__clock_getres (clockid_t clock_id, struct timespec *res)
|
||||
{
|
||||
int retval = -1;
|
||||
|
||||
@ -115,4 +115,4 @@ clock_getres (clockid_t clock_id, struct timespec *res)
|
||||
|
||||
return retval;
|
||||
}
|
||||
strong_alias (clock_getres, __clock_getres)
|
||||
weak_alias (__clock_getres, clock_getres)
|
||||
|
Reference in New Issue
Block a user