Skip to content
Snippets Groups Projects
Commit 01b059e1 authored by Avi Kivity's avatar Avi Kivity
Browse files

dlfcn: implement dlsym()

parent 3cb49127
No related branches found
No related tags found
No related merge requests found
......@@ -10,6 +10,11 @@ void* dlopen(const char* filename, int flags)
return obj;
}
void* dlsym(void* handle, const char* name)
{
// FIXME: don't ignore handle
return elf::get_program()->lookup(name).relocated_addr();
}
int dl_iterate_phdr(int (*callback)(struct dl_phdr_info *info,
size_t size, void *data),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment