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 the dependencies.
$ pip install pyelftools
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)
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.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c812387b6abfe03826de932a6f7e5ed0226cb25e789619bde6f9753a7012761e |
|
MD5 | 551023ba4a65447e0a3989efe31bc0c5 |
|
BLAKE2b-256 | 0c5e52b6cd7c2f744571bb9d3e162cc674ebe52515cad29009d38120a6c853d2 |