readelf Plugin
Display information about ELF format files (executables, shared libraries, object files).
Commands
readelf self version— Print versionreadelf file header <elf-file>— Display ELF file headerreadelf file sections <elf-file>— Display section headersreadelf file symbols <elf-file>— Display symbol tablereadelf file relocations <elf-file>— Display relocationsreadelf file dynamic <elf-file>— Display dynamic sectionreadelf file segments <elf-file>— Display program headers/segmentsreadelf file notes <elf-file>— Display notes sectionreadelf file version-info <elf-file>— Display version sectionsreadelf file demangle <elf-file>— Display symbols with demangled C++/Rust namesreadelf file all <elf-file>— Display all informationreadelf _ _ [args]— Passthrough to readelf
Usage Examples
Examine a binary
Check ELF header: readelf file header /bin/ls
List sections: readelf file sections /bin/ls
Find symbols: readelf file symbols /usr/lib/libc.so.6
With demangled names: readelf file demangle /usr/lib/libstdc++.so.6
Debug linking
Check dependencies: readelf file dynamic /usr/bin/gcc
Quick overview
All info at once: readelf file all /bin/bash
Installation
Part of GNU Binutils, pre-installed on most Linux distributions.