diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2016-08-30 04:46:47 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2016-08-30 04:46:47 -0500 |
commit | 7515ce3fa8b30f7b7d67bc2a659e15276c0923d7 (patch) | |
tree | 3d727e06ad85417602e7e933dc751c6a6a40a59c /dlvsym.c | |
download | gcompat-7515ce3fa8b30f7b7d67bc2a659e15276c0923d7.tar.gz gcompat-7515ce3fa8b30f7b7d67bc2a659e15276c0923d7.tar.bz2 gcompat-7515ce3fa8b30f7b7d67bc2a659e15276c0923d7.tar.xz gcompat-7515ce3fa8b30f7b7d67bc2a659e15276c0923d7.zip |
Initial commit
Diffstat (limited to 'dlvsym.c')
-rw-r--r-- | dlvsym.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/dlvsym.c b/dlvsym.c new file mode 100644 index 0000000..3d744ea --- /dev/null +++ b/dlvsym.c @@ -0,0 +1,14 @@ +#include <dlfcn.h> // dlsym +#include <stdio.h> // fprintf +#include <stdlib.h> // getenv + +void *dlvsym(void *handle, char *symbol, char *version) +{ + if(getenv("GLIBC_FAKE_DEBUG")) + { + fprintf(stderr, "symbol %s with version %s is being redirected", + symbol, version); + } + + return dlsym(handle, symbol); +} |