Python tool to read ELF format, more hackable than GNU's readelf.
ELF: Executable and Linkable Format, the usual format of Unix/Linux's binaries.
Originated from my pull request to @detailyang's readelf.
Options:
usage: readelf.py [-h] [-v] [-eh] [-ph] [-sh] [-it] [-st] [-ds] [-a] file
positional arguments:
file path to the ELF file
optional arguments:
-h, --help show this help message and exit
-v, --version version info
-eh, --elf-header print ELF header
-ph, --program-header
print program headers
-sh, --section-header
print section headers
-it, --interp print interp, i.e. the dynamic loader (itself a shared
binary)
-st, --symbol-table print symbol table
-ds, --dynamic-section
print dynamic section
-a, --all print all (default)
More on ELF:
- Wikipedia article (this link is less likely to be unavailable)
- ELF specification (version 1.2) from Stanford CS140
- Linux Journal
- GNU's extension to ELF, you need to read the repo yourself. Particularly this header, last updated on 2018-01-03 by Alan Modra.
This is a simple colorizer mounted to the real (GNU's) readelf
, like this: readelf ... | readelf-color