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 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 details)
Built Distribution
File details
Details for the file pyelfwrapper-0.0.5.tar.gz
.
File metadata
- Download URL: pyelfwrapper-0.0.5.tar.gz
- Upload date:
- Size: 7.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 66541d47302bdfa9dd00978f37938ea8c5a3adef29647ba43e5ce6d187ccf337 |
|
MD5 | 488fd5b11985577a2c170325e48ab195 |
|
BLAKE2b-256 | c78cbc00931efb368be92b564791786ef05185be4a433699c711e973e9eb1e3f |
File details
Details for the file pyelfwrapper-0.0.5-py3-none-any.whl
.
File metadata
- Download URL: pyelfwrapper-0.0.5-py3-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 96b7e63227bf0dd72dab2b8a1b723071f259cb0ec2ad70473711e3dd4cc8863d |
|
MD5 | 507d6c01ace64b1496a533332b4842b2 |
|
BLAKE2b-256 | fcb87df8675d21150da8a17c0f1eb60c4d94d348dd0055763db224be9f7f0a6d |