1/*
2 * Copyright (C) 2007 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#include <dlfcn.h>
18#include <link.h>
19#include <stdlib.h>
20#include <stdbool.h>
21
22// Proxy calls to bionic loader
23void* dlopen(const char* filename __unused, int flag __unused) {
24  return NULL;
25}
26
27char* dlerror() {
28  return NULL;
29}
30
31void* dlsym(void* handle __unused, const char* symbol __unused) {
32  return NULL;
33}
34
35void* dlvsym(void* handle __unused,
36             const char* symbol __unused,
37             const char* version __unused) {
38  return NULL;
39}
40
41int dladdr(const void* addr __unused, Dl_info* info __unused) {
42  return 0;
43}
44
45int dlclose(void* handle __unused) {
46  return -1;
47}
48
49#if defined(__arm__)
50_Unwind_Ptr dl_unwind_find_exidx(_Unwind_Ptr pc __unused, int* pcount __unused) {
51  return 0;
52}
53#endif
54
55void android_set_application_target_sdk_version(uint32_t target __unused) {
56}
57
58