My application loads custom code using dlopen on the fly.
For common symbols, the global symbol table is used by default.
However, I want to provide the functionality where - if the user has linked their so with -Bsymbolic-functions, I pass the RTLD_DEEPBIND flag to the dlopen function.
Is there a way I can programmatically know whether a .so is linked with -Bsymbolic-functions or not using C ?