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
706 stars 152 forks source link

Value returned by `get_symbols_num()` does not increase after adding new symbols #140

Closed atirut-w closed 1 month ago

atirut-w commented 1 month ago

I am currently making an assembler and I plan to refactor it to add things to the ELF class directly, but I can't enumerate symbols to check for duplicates, etc. if it always return 0.

serge1 commented 1 month ago

I cannot confirm that value returned by get_symbols_num() is not changing after adding new symbols. New tests added in d81d4c5 confirms the correct behavior.

Please reopen and provide more detailed information if you are still observing the issue