summaryrefslogtreecommitdiffstats
path: root/libc-top-half/musl/src/ldso/__dlsym.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc-top-half/musl/src/ldso/__dlsym.c')
-rw-r--r--libc-top-half/musl/src/ldso/__dlsym.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/libc-top-half/musl/src/ldso/__dlsym.c b/libc-top-half/musl/src/ldso/__dlsym.c
new file mode 100644
index 0000000..0384f97
--- /dev/null
+++ b/libc-top-half/musl/src/ldso/__dlsym.c
@@ -0,0 +1,14 @@
+#include <dlfcn.h>
+#include "dynlink.h"
+
+static void *stub_dlsym(void *restrict p, const char *restrict s, void *restrict ra)
+{
+ __dl_seterr("Symbol not found: %s", s);
+ return 0;
+}
+
+weak_alias(stub_dlsym, __dlsym);
+
+#if _REDIR_TIME64
+weak_alias(stub_dlsym, __dlsym_redir_time64);
+#endif