| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Identify and extract sections of an ELF file. For learning how Linux binaries are laid out.
ELF (Executable and Linkable Format) is the format used by Linux executables, shared libraries, and object files. Examples: /bin/ls, libc.so.6, a.out.
Layout:
+------------------------+ | ELF header | identifies the file +------------------------+ | Program headers | how the kernel loads it +------------------------+ | Sections (.text, ...) | code, data, symbols, strings +------------------------+ | Section headers | describes each section +------------------------+
Requires: gcc, make, Linux.
make
./elfparser /bin/lsPrints ELF header, section headers, and symbols. Writes .text to text.S.
Use readelf or objdump for real work.
Gap between ELF header and program header:
*.so is ELF. *.a is an ar archive, not ELF.
Disassembler is a stub. Reads .text into memory but does not decode.
Creative Commons. See LICENSE.md.
| Back | FazBrowse Home | New Git URL |