Skip to main content

A wrapper for dwarf format elf file

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyelfwrapper-0.0.5.tar.gz (7.3 kB view hashes)

Uploaded source

Built Distribution

pyelfwrapper-0.0.5-py3-none-any.whl (6.8 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page