RTLDNEXT
RTLD_NEXT is a special handle defined in the dynamic linking interface (dlfcn.h) that can be passed to the symbol resolution function dlsym to locate the next occurrence of a symbol after the current object in the shared object dependency chain. It is primarily used to implement function interposition in shared libraries, allowing a library to wrap or override a symbol provided by lower layers and then delegate to the original version.
Usage and behavior: include <dlfcn.h>. When implementing a replacement for a library function, obtain the address
Comparison with other handles: RTLD_NEXT is distinct from RTLD_DEFAULT, which asks the linker to search all
Limitations and portability: RTLD_NEXT is a GNU extension and is available on platforms with glibc or compatible