/pyelfwrapper

Dwarf elf file wrapper

Primary LanguagePython

Elf wrapper

Build Status Coverage Status

This tool use the pyelftools to parse the elf file, and provide a interface for user to get the global variable address informations.

Installation

Install use pip.

$ pip install pyelfwrapper

How to use it

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')

Supported variable types

  • structure
  • structure array
  • structure array filed
  • array

Todos

  • to add support for bit filed members

License

MIT