Use VDSO for clock_gettime(2) and gettimeofday(2).
Bug: 15387103
Change-Id: Ifc3608ea65060c1dc38120b10b6e79874f182a36
diff --git a/libc/bionic/libc_init_common.cpp b/libc/bionic/libc_init_common.cpp
index aa76650..9e4eecd 100644
--- a/libc/bionic/libc_init_common.cpp
+++ b/libc/bionic/libc_init_common.cpp
@@ -51,6 +51,8 @@
extern "C" int __set_tls(void* ptr);
extern "C" int __set_tid_address(int* tid_address);
+void __libc_init_vdso();
+
// Not public, but well-known in the BSDs.
const char* __progname;
@@ -129,6 +131,8 @@
_pthread_internal_add(main_thread);
__system_properties_init(); // Requires 'environ'.
+
+ __libc_init_vdso();
}
/* This function will be called during normal program termination