ELF: Find all symbols of a given name in `get_symbol_by_name`.
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Tue, 7 Apr 2015 00:00:55 +0000 (10:00 +1000)
committerMatthew Fernandez <matthew.fernandez@nicta.com.au>
Fri, 10 Apr 2015 05:51:50 +0000 (15:51 +1000)
commit9da4c455f36eb50330de3a2f55c3f3a19e2ae0b5
tree475e9a7528f8a13129507bd0cafe0eb17f3bea96
parent4e31e0a56755440f0cf452f357eddb3b2485e778
ELF: Find all symbols of a given name in `get_symbol_by_name`.

It is possible for an ELF file's symbol table to contain multiple entries under
the same symbol name. Prior to this commit, it was only possible to retrieve
the first of these via `get_symbol_by_name`. This commit alters this function
to return a list of all symbols under the given name, rather than just the
first entry. Functionality when a symbol name does not exist remains
unaffected.
elftools/elf/sections.py
test/test_get_symbol_by_name.py