diff options
author | Rich Felker <dalias@aerifal.cx> | 2011-08-16 00:42:13 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2011-08-16 00:42:13 -0400 |
commit | 623753ad64a3625b010c10c00c45262d2eec2495 (patch) | |
tree | 822d9f37067f4bbd51f83116696cfb835438b138 /src/ldso/dlsym.c | |
parent | 2719cc86285d85df42f13ba0ae5b07b262c39686 (diff) | |
download | musl-623753ad64a3625b010c10c00c45262d2eec2495.tar.gz musl-623753ad64a3625b010c10c00c45262d2eec2495.tar.bz2 musl-623753ad64a3625b010c10c00c45262d2eec2495.tar.xz musl-623753ad64a3625b010c10c00c45262d2eec2495.zip |
RTLD_NEXT support
the asm wrapper is needed to get the return address without
compiler-specific extensions.
Diffstat (limited to 'src/ldso/dlsym.c')
-rw-r--r-- | src/ldso/dlsym.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ldso/dlsym.c b/src/ldso/dlsym.c new file mode 100644 index 00000000..33693143 --- /dev/null +++ b/src/ldso/dlsym.c @@ -0,0 +1,8 @@ +#include <dlfcn.h> + +void *__dlsym(void *, const char *, void *); + +void *dlsym(void *p, const char *s) +{ + return __dlsym(p, s, 0); +} |