summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordimitry <dimitry@google.com>2021-12-09 20:02:05 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2021-12-09 20:02:05 +0000
commitff548389b6d1ca30a36b6561c12e9b7469fb7bc7 (patch)
treea0b33e4a2a8a4582da13a395b2fef3d10a56ac9d
parent2a2a33e677b3030cc61be4db57dcd8eaba807424 (diff)
parent8fb43d316830a0b3496ed6bf880fa3acdd815a95 (diff)
downloadnative_bridge_support-android12-qpr3-s2-release.tar.gz
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/libs/native_bridge_support/+/16432416 Change-Id: I25c15d2d82d3b87b18acd1f15e1dd4c373aa74b4
-rw-r--r--libc/stubs_arm64.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/libc/stubs_arm64.cpp b/libc/stubs_arm64.cpp
index 8e15822..98c9157 100644
--- a/libc/stubs_arm64.cpp
+++ b/libc/stubs_arm64.cpp
@@ -43,12 +43,15 @@ DEFINE_INTERCEPTABLE_STUB_FUNCTION(android_getaddrinfofornet);
DEFINE_INTERCEPTABLE_STUB_FUNCTION(android_getaddrinfofornetcontext);
DEFINE_INTERCEPTABLE_STUB_FUNCTION(android_mallopt);
DEFINE_INTERCEPTABLE_STUB_FUNCTION(android_set_abort_message);
+DEFINE_INTERCEPTABLE_STUB_FUNCTION(clock_getres);
+DEFINE_INTERCEPTABLE_STUB_FUNCTION(clock_gettime);
DEFINE_INTERCEPTABLE_STUB_FUNCTION(freeaddrinfo);
DEFINE_INTERCEPTABLE_STUB_FUNCTION(gai_strerror);
DEFINE_INTERCEPTABLE_STUB_FUNCTION(getaddrinfo);
DEFINE_INTERCEPTABLE_STUB_FUNCTION(gethostbyaddr);
DEFINE_INTERCEPTABLE_STUB_FUNCTION(gethostbyname);
DEFINE_INTERCEPTABLE_STUB_FUNCTION(getnameinfo);
+DEFINE_INTERCEPTABLE_STUB_FUNCTION(gettimeofday);
DEFINE_INTERCEPTABLE_STUB_FUNCTION(longjmp);
DEFINE_INTERCEPTABLE_STUB_FUNCTION(native_bridge___cxa_thread_atexit_impl);
DEFINE_INTERCEPTABLE_STUB_FUNCTION(native_bridge_aligned_alloc);
@@ -105,6 +108,7 @@ DEFINE_INTERCEPTABLE_STUB_FUNCTION(pthread_sigqueue);
DEFINE_INTERCEPTABLE_STUB_FUNCTION(setjmp);
DEFINE_INTERCEPTABLE_STUB_FUNCTION(siglongjmp);
DEFINE_INTERCEPTABLE_STUB_FUNCTION(sigsetjmp);
+DEFINE_INTERCEPTABLE_STUB_FUNCTION(time);
DEFINE_INTERCEPTABLE_STUB_VARIABLE(environ);
static void __attribute__((constructor(0))) init_stub_library() {
@@ -134,12 +138,15 @@ static void __attribute__((constructor(0))) init_stub_library() {
INIT_INTERCEPTABLE_STUB_FUNCTION("libc.so", android_getaddrinfofornetcontext);
INIT_INTERCEPTABLE_STUB_FUNCTION("libc.so", android_mallopt);
INIT_INTERCEPTABLE_STUB_FUNCTION("libc.so", android_set_abort_message);
+ INIT_INTERCEPTABLE_STUB_FUNCTION("libc.so", clock_getres);
+ INIT_INTERCEPTABLE_STUB_FUNCTION("libc.so", clock_gettime);
INIT_INTERCEPTABLE_STUB_FUNCTION("libc.so", freeaddrinfo);
INIT_INTERCEPTABLE_STUB_FUNCTION("libc.so", gai_strerror);
INIT_INTERCEPTABLE_STUB_FUNCTION("libc.so", getaddrinfo);
INIT_INTERCEPTABLE_STUB_FUNCTION("libc.so", gethostbyaddr);
INIT_INTERCEPTABLE_STUB_FUNCTION("libc.so", gethostbyname);
INIT_INTERCEPTABLE_STUB_FUNCTION("libc.so", getnameinfo);
+ INIT_INTERCEPTABLE_STUB_FUNCTION("libc.so", gettimeofday);
INIT_INTERCEPTABLE_STUB_FUNCTION("libc.so", longjmp);
INIT_INTERCEPTABLE_STUB_FUNCTION("libc.so", native_bridge___cxa_thread_atexit_impl);
INIT_INTERCEPTABLE_STUB_FUNCTION("libc.so", native_bridge_aligned_alloc);
@@ -196,6 +203,7 @@ static void __attribute__((constructor(0))) init_stub_library() {
INIT_INTERCEPTABLE_STUB_FUNCTION("libc.so", setjmp);
INIT_INTERCEPTABLE_STUB_FUNCTION("libc.so", siglongjmp);
INIT_INTERCEPTABLE_STUB_FUNCTION("libc.so", sigsetjmp);
+ INIT_INTERCEPTABLE_STUB_FUNCTION("libc.so", time);
INIT_INTERCEPTABLE_STUB_VARIABLE("libc.so", environ);
}
// clang-format on