diff options
author | Siddhesh Poyarekar <siddhesh@redhat.com> | 2013-06-11 11:11:11 +0530 |
---|---|---|
committer | Siddhesh Poyarekar <siddhesh@redhat.com> | 2013-06-11 11:11:11 +0530 |
commit | 89fb6835583088059b8d8987c86caac33e37e5ea (patch) | |
tree | ffd867e682b478adbfe07fe0410c33c14b6e4002 /rt/clock_gettime.c | |
parent | b8c61b4b1d6afb69190169764c1b141f4659e48b (diff) | |
download | glibc-89fb6835583088059b8d8987c86caac33e37e5ea.tar glibc-89fb6835583088059b8d8987c86caac33e37e5ea.tar.gz glibc-89fb6835583088059b8d8987c86caac33e37e5ea.tar.bz2 glibc-89fb6835583088059b8d8987c86caac33e37e5ea.zip |
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.
Diffstat (limited to 'rt/clock_gettime.c')
-rw-r--r-- | rt/clock_gettime.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/rt/clock_gettime.c b/rt/clock_gettime.c index cc7936de8a..1c9e52459a 100644 --- a/rt/clock_gettime.c +++ b/rt/clock_gettime.c @@ -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) |