Hello,
I want to write a C++ function that uses the xdl_iterate_phdr API to iterate over the program headers of a shared library (.so) for which I have the handle. The goal is to extract all the functions exported by this library and store them in a std::vector<ExportedFunction>. Each element of this vector will contain the function's name and its memory address.
The ExportedFunction structure I’m using to store this information is defined as follows:
std::string name;
void* address;
};```
So I have written a callback but it's seems to struggle when looping in `dyn`: