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.

Files for pyelfwrapper, version 0.0.5
Filename, size File type Python version Upload date Hashes
Filename, size pyelfwrapper-0.0.5-py3-none-any.whl (6.8 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size pyelfwrapper-0.0.5.tar.gz (7.3 kB) File type Source Python version None Upload date Hashes View

Supported by

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