summaryrefslogtreecommitdiffstats
path: root/libc/arch-x86_64
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2014-07-15 16:53:13 -0700
committerElliott Hughes <enh@google.com>2014-07-16 14:27:43 -0700
commit625993dfbb085a3cde7492eda8ec1cdc1ee39a78 (patch)
tree4385fee1dde6d90f42c616a2afc6766824f72835 /libc/arch-x86_64
parent770d0f6177ca1ad242b509151fb612f07ef8a07b (diff)
downloadbionic-625993dfbb085a3cde7492eda8ec1cdc1ee39a78.zip
bionic-625993dfbb085a3cde7492eda8ec1cdc1ee39a78.tar.gz
bionic-625993dfbb085a3cde7492eda8ec1cdc1ee39a78.tar.bz2
Use VDSO for clock_gettime(2) and gettimeofday(2).
Bug: 15387103 Change-Id: Ifc3608ea65060c1dc38120b10b6e79874f182a36
Diffstat (limited to 'libc/arch-x86_64')
-rw-r--r--libc/arch-x86_64/syscalls/__clock_gettime.S (renamed from libc/arch-x86_64/syscalls/clock_gettime.S)5
-rw-r--r--libc/arch-x86_64/syscalls/__gettimeofday.S (renamed from libc/arch-x86_64/syscalls/gettimeofday.S)5
2 files changed, 6 insertions, 4 deletions
diff --git a/libc/arch-x86_64/syscalls/clock_gettime.S b/libc/arch-x86_64/syscalls/__clock_gettime.S
index 20850c8..7e553b8 100644
--- a/libc/arch-x86_64/syscalls/clock_gettime.S
+++ b/libc/arch-x86_64/syscalls/__clock_gettime.S
@@ -2,7 +2,7 @@
#include <private/bionic_asm.h>
-ENTRY(clock_gettime)
+ENTRY(__clock_gettime)
movl $__NR_clock_gettime, %eax
syscall
cmpq $-MAX_ERRNO, %rax
@@ -12,4 +12,5 @@ ENTRY(clock_gettime)
call __set_errno
1:
ret
-END(clock_gettime)
+END(__clock_gettime)
+.hidden __clock_gettime
diff --git a/libc/arch-x86_64/syscalls/gettimeofday.S b/libc/arch-x86_64/syscalls/__gettimeofday.S
index 4867c30..a38eb64 100644
--- a/libc/arch-x86_64/syscalls/gettimeofday.S
+++ b/libc/arch-x86_64/syscalls/__gettimeofday.S
@@ -2,7 +2,7 @@
#include <private/bionic_asm.h>
-ENTRY(gettimeofday)
+ENTRY(__gettimeofday)
movl $__NR_gettimeofday, %eax
syscall
cmpq $-MAX_ERRNO, %rax
@@ -12,4 +12,5 @@ ENTRY(gettimeofday)
call __set_errno
1:
ret
-END(gettimeofday)
+END(__gettimeofday)
+.hidden __gettimeofday