mirror of
https://sourceware.org/git/glibc.git
synced 2025-09-02 16:01:20 +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:
@@ -21,10 +21,11 @@
|
||||
|
||||
/* Get current value of CLOCK and store it in TP. */
|
||||
int
|
||||
clock_gettime (clockid_t clock_id, struct timespec *tp)
|
||||
__clock_gettime (clockid_t clock_id, struct timespec *tp)
|
||||
{
|
||||
__set_errno (ENOSYS);
|
||||
return -1;
|
||||
}
|
||||
strong_alias (clock_gettime, __clock_gettime)
|
||||
weak_alias (__clock_gettime, clock_gettime)
|
||||
libc_hidden_def (__clock_gettime)
|
||||
stub_warning (clock_gettime)
|
||||
|
Reference in New Issue
Block a user