boostorg / dll

Library for comfortable work with DLL and DSO
https://boost.org/libs/dll
52 stars 43 forks source link

List symbols in dynsym (as fall-back) #41

Closed ingomueller-net closed 3 years ago

ingomueller-net commented 4 years ago

It seems like there are ELF libraries do not have any symbols in the symtab table. This is the case for some libraries shipped with my distro (libaio1 in Debian Buster to be specific). However, the dynsym table does contain a list of exported symbols. I think it would be great if library_info::symbols could return those, potentially only as fall-back if the symtab table is empty. Currently, it does not return them, not even if I explicitly call library_info::symbols(".dynsym").

apolukhin commented 3 years ago

Good catch!

Many thanks for the report, fixed in https://github.com/boostorg/dll/commit/9d884adb48581209231655ea2576534a5e0846db