dlopen.c 267 B

12345678910111213
  1. #include <dlfcn.h>
  2. #include "libc.h"
  3. __attribute__((__visibility__("hidden")))
  4. void __dl_seterr(const char *, ...);
  5. static void *stub_dlopen(const char *file, int mode)
  6. {
  7. __dl_seterr("Dynamic loading not supported");
  8. return 0;
  9. }
  10. weak_alias(stub_dlopen, dlopen);