Sometimes you need to do some magic to find the entry point for the real function. Here's an example that uses `dl_iterate_phdr` when `dlsym(RTLD_NEXT,...)` fails: https://github.com/jethrogb/ssltrace/blob/bf17c150a7/ssltrace.cpp#L74-L112