|
@@ -15,13 +15,15 @@
|
|
#include <rtthread.h>
|
|
#include <rtthread.h>
|
|
#include <rtm.h>
|
|
#include <rtm.h>
|
|
|
|
|
|
-void* rt_dlsym(void *handle, const char* symbol)
|
|
|
|
|
|
+void* dlsym(void *handle, const char* symbol)
|
|
{
|
|
{
|
|
int i;
|
|
int i;
|
|
- rt_module_t module = (rt_module_t)handle;
|
|
|
|
|
|
+ rt_module_t module;
|
|
|
|
|
|
RT_ASSERT(handle != RT_NULL);
|
|
RT_ASSERT(handle != RT_NULL);
|
|
|
|
|
|
|
|
+ module = (rt_module_t)handle;
|
|
|
|
+
|
|
for(i=0; i<module->nsym; i++)
|
|
for(i=0; i<module->nsym; i++)
|
|
{
|
|
{
|
|
if (rt_strcmp(module->symtab[i].name, symbol) == 0)
|
|
if (rt_strcmp(module->symtab[i].name, symbol) == 0)
|
|
@@ -31,5 +33,5 @@ void* rt_dlsym(void *handle, const char* symbol)
|
|
return RT_NULL;
|
|
return RT_NULL;
|
|
}
|
|
}
|
|
|
|
|
|
-RTM_EXPORT(rt_dlsym)
|
|
|
|
|
|
+RTM_EXPORT(dlsym)
|
|
|
|
|