1
0
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:
Siddhesh Poyarekar
2013-06-11 11:11:11 +05:30
parent b8c61b4b1d
commit 89fb683558
13 changed files with 50 additions and 25 deletions

View File

@ -23,7 +23,7 @@
#include "kernel-posix-cpu-timers.h"
int
clock_getcpuclockid (pid_t pid, clockid_t *clock_id)
__clock_getcpuclockid (pid_t pid, clockid_t *clock_id)
{
/* The clockid_t value is a simple computation from the PID.
But we do a clock_getres call to validate it. */
@ -46,4 +46,4 @@ clock_getcpuclockid (pid_t pid, clockid_t *clock_id)
else
return INTERNAL_SYSCALL_ERRNO (r, err);
}
strong_alias (clock_getcpuclockid, __clock_getcpuclockid)
weak_alias (__clock_getcpuclockid, clock_getcpuclockid)