From Wikipedia, the free encyclopedia
Jump to navigation Jump to search

readelf is a program for displaying various information about object files on Unix-like systems such as objdump. It is part of the GNU binutils.

readelf and objdump[edit]

objdump has a similar function but with different features like disassembling. The main difference is that readelf does not depend on BFD and helps to check if BFD works.[1]


The following command displays the contents of the file's dynamic section (to examine the shared library dependencies and rpath): [2]

$ readelf -d <file name>


  1. ^ "readelf vs. objdump: why are both needed" on StackOverflow".
  2. ^ "readelf(1) - Linux manual page". Retrieved 2021-04-09.