serge1 / ELFIO

ELFIO - ELF (Executable and Linkable Format) reader and producer implemented as a header only C++ library
http://serge1.github.io/ELFIO
MIT License
720 stars 155 forks source link

Added get_symbol by value and generic linear search #37

Closed alfreb closed 4 years ago

alfreb commented 4 years ago

This is something I found useful for creating e.g. backtraces.

I'm added a generic search over raw symbol entries using std::function, in order to not have to lookup and produce all the std::strings etc. for each search.

I've only tested this locally in an application I'm building for work, so please let me know how / if you want me to update any tests or examples.

serge1 commented 4 years ago

The request has been merged. Thank you!