summaryrefslogtreecommitdiffstats
path: root/libdl
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2012-10-12 10:50:21 -0700
committerElliott Hughes <enh@google.com>2012-10-12 10:50:21 -0700
commit22d629211d72adaf46f3fc48f59540f8e5798b1e (patch)
tree98ff73ae376f40abae72a869702276b0d35d2adc /libdl
parentdb4fdf1aafb63b09ee967066d9b8107a9812db2d (diff)
downloadbionic-22d629211d72adaf46f3fc48f59540f8e5798b1e.zip
bionic-22d629211d72adaf46f3fc48f59540f8e5798b1e.tar.gz
bionic-22d629211d72adaf46f3fc48f59540f8e5798b1e.tar.bz2
Make the dlfcn mutex static.
More style fixes too, and removal of yet another lingering SH reference! Change-Id: Iebc34a46475dd11845ad172b9108bb6ddd7585bb
Diffstat (limited to 'libdl')
-rw-r--r--libdl/libdl.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/libdl/libdl.c b/libdl/libdl.c
index 1d51c37..e8b01be 100644
--- a/libdl/libdl.c
+++ b/libdl/libdl.c
@@ -24,13 +24,16 @@ void *dlsym(void *handle, const char *symbol) { return 0; }
int dladdr(const void *addr, Dl_info *info) { return 0; }
int dlclose(void *handle) { return 0; }
-#ifdef __arm__
+#if defined(__arm__)
+
void *dl_unwind_find_exidx(void *pc, int *pcount) { return 0; }
-#elif defined(__i386__) || defined(__sh__) || defined(__mips__)
+
+#elif defined(__i386__) || defined(__mips__)
+
/* we munge the cb definition so we don't have to include any headers here.
* It won't affect anything since these are just symbols anyway */
-int dl_iterate_phdr(int (*cb)(void *info, void *size, void *data),
- void *data) { return 0; }
+int dl_iterate_phdr(int (*cb)(void *info, void *size, void *data), void *data) { return 0; }
+
#else
#error Unsupported architecture. Only mips, arm and x86 are supported.
#endif