readelf [-a
|--all
] [-h
|--file-header
] [-l
|--program-headers
|--segments
] [-S
|--section-headers
|--sections
] [-e
|--headers
] [-s
|--syms
|--symbols
] [-n
|--notes
] [-r
|--relocs
] [-u
|--unwind
] [-d
|--dynamic
] [-V
|--version-info
] [-A
|--arch-specific
] [-D
|--use-dynamic
] [-x
<number>|--hex-dump=
<number>] [-w[liaprmfFso]
|--debug-dump
[=line,=info,=abbrev,=pubnames,=ranges,=macro,=frames,=frames-interp,=str,=loc]] [-I
|-histogram
] [-v
|--version
] [-W
|--wide
] [-H
|--help
] elffile...
readelf
displays information about one or more ELF format object files. The options control what particular information to display.
elffile... are the object files to be examined. 32-bit and 64-bit ELF files are supported, as are archives containing ELF files.
This program performs a similar function to objdump
but it goes into more detail and it exists independently of the BFD library, so if there is a bug in BFD then readelf will not be affected.
The long and short forms of options, shown here as alternatives, are equivalent. At least one option besides -v
or -H
must be given.
-a
--all
--file-header
, --program-headers
, --sections
, --symbols
, --relocs
, --dynamic
, --notes
and --version-info
.-h
--file-header
-l
--program-headers
--segments
-S
--sections
--section-headers
-s
--symbols
--syms
-e
--headers
-h -l -S
.-n
--notes
-r
--relocs
-u
--unwind
-u
--unwind
-d
--dynamic
-V
--version-info
-A
--arch-specific
-D
--use-dynamic
readelf
use the symbol table in the file's dynamic section, rather than the one in the symbols section.-x <number>
--hex-dump=<number>
-w[liaprmfFso]
--debug-dump[=line,=info,=abbrev,=pubnames,=ranges,=macro,=frames,=frames-interp,=str,=loc]
-I
--histogram
-v
--version
-W
--wide
readelf
breaks section header and segment listing lines for 64-bit ELF files, so that they fit into 80 columns. This option causes readelf
to print each section header resp. each segment one a single line, which is far more readable on terminals wider than 80 columns.-H
--help
readelf
.