diff --git a/components/libdl/dlopen.c b/components/libdl/dlopen.c index 8271d2fd4e41d1d16ddde66279d2ece74e8ce8dd..5e063eed9680e30b3c99925be5711dec2c778ab2 100644 --- a/components/libdl/dlopen.c +++ b/components/libdl/dlopen.c @@ -35,7 +35,12 @@ void* dlopen(const char *filename, int flags) rt_snprintf(fullpath, strlen(def_path) + strlen(filename) + 2, "%s/%s", def_path, filename); } - + else + { + rt_kprintf("use absolute path\n"); + return RT_NULL; + } + /* find in module list */ module = rt_module_find(fullpath);