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
729 stars 158 forks source link

Is the elfhash algorithm outdated? #72

Closed Hackerl closed 3 years ago

Hackerl commented 3 years ago

Searching the symbol table by name seems to fail, because ".gnu.hash" uses the DJB (Daniel J Bernstein) hash algorithm. https://github.com/serge1/ELFIO/blob/master/elfio/elfio_utils.hpp#L165

serge1 commented 3 years ago

Thank you for pointing me to this! I have started to look at this

serge1 commented 3 years ago

Support for the GNU hash algorithm has been added in commit ef26228