This tool use the pyelftools to parse the elf file, and provide a interface for user to get the global variable address informations.
Install use pip.
$ pip install pyelfwrapper
from elfwrapper.elf_wrapper import ElfAddrObj
elf = ElfAddrObj(r"example/test.elf")
var_addr = elf.get_var_addrs('TestStructVar1')
print(var_addr)
enum_info = self.get_enum_info('TestEnumAType')
- structure
- structure array
- structure array filed
- array
- to add support for bit filed members
MIT