What is it?
relf is simple elf (Executable and Linkable Format) files reader.
Features
Right now this program can read and print elf header and program headers of executable files. In the future i will add more options so you can see what the executable file contains (See TODO section).
Dependencies
To build project, you need this:
- C compiler (gcc, clang)
- Shell (bash)
- Meson (meson, ninja)
Build
Clone repo or download it, go to repo dir, and type this command:
$ ./build.sh
To install program, after build type this:
$ ./build.sh -i
Options
Program options (type -h option):
usage: relf [options...]
options:
-v - prints program version
-h - prints help message
-a - equivalent to: -e -p -s
-e - prints elf header
-p - prints program headers
-s - prints section headers
-f [file] - specifies the input executable file
Build script options (also type -h option):
$ ./build.sh -h
usage: ./build.sh [options...]
options:
-r - compile release
-d - compile debug
-i - install
-c - clean
-h - prints this help message
TODO
- option to print program header
- option to print section header
- option to print string and symbol tables
- option to print notes