dlopen and global variables in C/C++
- by mjn12
Due to some restrictions I am being forced to load a library written in C at runtime. A third party provides two library to me as static archives which we turn into shared objects. The application I'm working with loads one of the libraries at runtime based on some hardware parameters. Unfortunately one of the libraries is configured largely with global variables.
I am already using dlsym to load function references but can I used dlsym to load references to these global variables as well?