From 42d206e97595bddcee95a76e4ab61d0cfd90be3b Mon Sep 17 00:00:00 2001 From: Alexander Kabaev Date: Thu, 13 Feb 2003 17:47:44 +0000 Subject: Implement dlinfo() function. Introdice RTLD_SELF special handle and properly process it within dlsym() and dlinfo() functions. The intention is to improve our compatibility with Solaris and to make a Java port easier. Partially submitted by: phantom --- lib/libc/gen/dlfcn.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib') diff --git a/lib/libc/gen/dlfcn.c b/lib/libc/gen/dlfcn.c index ff1d9006c8609..ed9bf85f72789 100644 --- a/lib/libc/gen/dlfcn.c +++ b/lib/libc/gen/dlfcn.c @@ -103,3 +103,11 @@ dlsym(void * __restrict handle, const char * __restrict name) _rtld_error(sorry); return NULL; } + +#pragma weak dlinfo +int +dlinfo(void * __restrict handle, int request, void * __restrict p) +{ + _rtld_error(sorry); + return NULL; +} -- cgit v1.3