📝 Author : Admin, Last updated on : 15-12-2024 7:45 PM (India)
Readelf is a command for analyzing ELF files, such as executables or shared objects, which is available in Linux-based operating systems. It is part of GNU binutils. To display ELF headers, we can use the following command:
readelf -h <binary_file>
To display the program header, we can use the -l flag or the --program-headers flag. Displaying section headers, we can use the -S or --section-headers flag.
Other Useful Flags:
-s or --symbols: Display symbol table entries. This flag displays all function or variable names
-r or --relocs : It will display relocation entries.
-d or --dynamic: This flag display dynamic section, it will provide information about required shared libraries, symbol and string tables, initialization and termination functions, runtime flags.
Documentation : click here to view man7 documentation
readelf command showing elf header
readelf command showing program header information