blob: 3d744eabefee9b500a647e9b69eff3fdd7efb40c (
plain) (
tree)
|
|
#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);
}
|