A wrapper for dwarf format elf file
Project description
Elf wrapper
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for python_elf_wrapper-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 377657ce7c8d9ee753d2888c4d39332016a498ba257b2d0e4f827c711e94aa51 |
|
MD5 | 9a9009ed2ad1cd8561da5fbb9b1fff64 |
|
BLAKE2b-256 | 9efb1705df61b7e54273763f53048eefc75bc9e5e923523b862e3ede4a8d1758 |