struct dso *n;
while (p) {
n = p->next;
- if (p->map) free(p);
+ if (p->map && p!=libc && p!=head) free(p);
p = n;
}
}
return 1;
}
-void *__dlsym(void *p, const char *s, void *ra)
+void *__dlsym(void *restrict p, const char *restrict s, void *restrict ra)
{
void *res;
pthread_rwlock_rdlock(&lock);
{
return 0;
}
-void *__dlsym(void *p, const char *s, void *ra)
+void *__dlsym(void *restrict p, const char *restrict s, void *restrict ra)
{
return 0;
}