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 python_elf_wrapper

How to use it

from elf_addr_dict 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

python_elf_wrapper-0.0.2.tar.gz (1.8 kB view details)

Uploaded Source

Built Distribution

python_elf_wrapper-0.0.2-py3-none-any.whl (1.7 kB view details)

Uploaded Python 3

File details

Details for the file python_elf_wrapper-0.0.2.tar.gz.

File metadata

  • Download URL: python_elf_wrapper-0.0.2.tar.gz
  • Upload date:
  • Size: 1.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.2

File hashes

Hashes for python_elf_wrapper-0.0.2.tar.gz
Algorithm Hash digest
SHA256 a8132124a32f4d49b534a15fd85307045caf85ffdca266f9832d71ded8735db8
MD5 378817395ace72aaf51f8117a770767d
BLAKE2b-256 d48f95a37834a2a558fc17672867ba02a4fd6264b9408fa4ab3ae17ea51a4743

See more details on using hashes here.

File details

Details for the file python_elf_wrapper-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: python_elf_wrapper-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 1.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.2

File hashes

Hashes for python_elf_wrapper-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 377657ce7c8d9ee753d2888c4d39332016a498ba257b2d0e4f827c711e94aa51
MD5 9a9009ed2ad1cd8561da5fbb9b1fff64
BLAKE2b-256 9efb1705df61b7e54273763f53048eefc75bc9e5e923523b862e3ede4a8d1758

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page