From 89fb6835583088059b8d8987c86caac33e37e5ea Mon Sep 17 00:00:00 2001 From: Siddhesh Poyarekar Date: Tue, 11 Jun 2013 11:11:11 +0530 Subject: 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. --- sysdeps/unix/clock_gettime.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sysdeps/unix/clock_gettime.c') diff --git a/sysdeps/unix/clock_gettime.c b/sysdeps/unix/clock_gettime.c index 1c64f07..d46057a 100644 --- a/sysdeps/unix/clock_gettime.c +++ b/sysdeps/unix/clock_gettime.c @@ -89,7 +89,7 @@ realtime_gettime (struct timespec *tp) /* 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) { int retval = -1; @@ -132,4 +132,5 @@ clock_gettime (clockid_t clock_id, struct timespec *tp) return retval; } -strong_alias (clock_gettime, __clock_gettime) +weak_alias (__clock_gettime, clock_gettime) +libc_hidden_def (__clock_gettime) -- cgit v1.1