summaryrefslogtreecommitdiffstats
path: root/libdl
diff options
context:
space:
mode:
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