1570af302Sopenharmony_ci#include <dlfcn.h> 2570af302Sopenharmony_ci#include "dynlink.h" 3570af302Sopenharmony_ci 4570af302Sopenharmony_cistatic void *stub_dlsym(void *restrict p, const char *restrict s, void *restrict ra) 5570af302Sopenharmony_ci{ 6570af302Sopenharmony_ci __dl_seterr("Symbol not found: %s", s); 7570af302Sopenharmony_ci return 0; 8570af302Sopenharmony_ci} 9570af302Sopenharmony_ci 10570af302Sopenharmony_ciweak_alias(stub_dlsym, __dlsym); 11570af302Sopenharmony_ci 12570af302Sopenharmony_ci#if _REDIR_TIME64 13570af302Sopenharmony_ciweak_alias(stub_dlsym, __dlsym_redir_time64); 14570af302Sopenharmony_ci#endif 15