musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/src/ldso/dlopen.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ldso/dlopen.c')
-rw-r--r--src/ldso/dlopen.c 13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/ldso/dlopen.c b/src/ldso/dlopen.c
new file mode 100644
index 00000000..dcdb4398
--- /dev/null
+++ b/src/ldso/dlopen.c
@@ -0,0 +1,13 @@
+#include <dlfcn.h>
+#include "libc.h"
+
+__attribute__((__visibility__("hidden")))
+void __dl_seterr(const char *, ...);
+
+static void *stub_dlopen(const char *file, int mode)
+{
+ __dl_seterr("Dynamic loading not supported");
+ return 0;
+}
+
+weak_alias(stub_dlopen, dlopen);
generated by cgit v1.2.1 (git 2.18.0) at 2025年11月03日 18:33:31 +0000

AltStyle によって変換されたページ (->オリジナル) /