diff options
author | kan <kan@FreeBSD.org> | 2005-12-18 19:43:33 +0000 |
---|---|---|
committer | kan <kan@FreeBSD.org> | 2005-12-18 19:43:33 +0000 |
commit | 8d6f05d58bc7dda5a91170bff51023509aa82558 (patch) | |
tree | 0d48e9fa3e1a8d20651242fc849efd6ba9f69557 /lib | |
parent | 116fa05e6020161c2d69796fd827231ba57cb838 (diff) | |
download | FreeBSD-src-8d6f05d58bc7dda5a91170bff51023509aa82558.zip FreeBSD-src-8d6f05d58bc7dda5a91170bff51023509aa82558.tar.gz |
Implement ELF symbol versioning using GNU semantics. This code aims
to be compatible with symbol versioning support as implemented by
GNU libc and documented by http://people.redhat.com/~drepper/symbol-versioning
and LSB 3.0.
Implement dlvsym() function to allow lookups for a specific version of
a given symbol.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/gen/dlfcn.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/libc/gen/dlfcn.c b/lib/libc/gen/dlfcn.c index be58e28..e0a8233 100644 --- a/lib/libc/gen/dlfcn.c +++ b/lib/libc/gen/dlfcn.c @@ -104,6 +104,15 @@ dlsym(void * __restrict handle, const char * __restrict name) return NULL; } +#pragma weak dlvsym +void * +dlvsym(void * __restrict handle, const char * __restrict name, + const char * __restrict version) +{ + _rtld_error(sorry); + return NULL; +} + #pragma weak dlinfo int dlinfo(void * __restrict handle, int request, void * __restrict p) |