[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
readelf [`-a'|`--all'] [`-h'|`--file-header'] [`-l'|`--program-headers'|`--segments'] [`-S'|`--section-headers'|`--sections'] [`-g'|`--section-groups'] [`-t'|`--section-details'] [`-e'|`--headers'] [`-s'|`--syms'|`--symbols'] [`--dyn-syms'] [`-n'|`--notes'] [`-r'|`--relocs'] [`-u'|`--unwind'] [`-d'|`--dynamic'] [`-V'|`--version-info'] [`-A'|`--arch-specific'] [`-D'|`--use-dynamic'] [`-x' <number or name>|`--hex-dump='<number or name>] [`-p' <number or name>|`--string-dump='<number or name>] [`-R' <number or name>|`--relocated-dump='<number or name>] [`-c'|`--archive-index'] [`-w[lLiaprmfFsoRt]'| `--debug-dump'[=rawline,=decodedline,=info,=abbrev,=pubnames,=aranges,=macro,=frames,=frames-interp,=str,=loc,=Ranges,=pubtypes,=trace_info,=trace_abbrev,=trace_aranges,=gdb_index]] [`--dwarf-depth=n'] [`--dwarf-start=n'] [`-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
-h
--file-header
-l
--program-headers
--segments
-S
--sections
--section-headers
-g
--section-groups
-t
--section-details
-s
--symbols
--syms
--dyn-syms
-e
--headers
-n
--notes
-r
--relocs
-u
--unwind
.ARM.exidx
/ .ARM.extab
) are currently supported.
-d
--dynamic
-V
--version-info
-A
--arch-specific
-D
--use-dynamic
readelf
use the
symbol hash tables in the file's dynamic section, rather than the
symbol table sections.
-x <number or name>
--hex-dump=<number or name>
-R <number or name>
--relocated-dump=<number or name>
-p <number or name>
--string-dump=<number or name>
-c
--archive-index
ar
, but without using the BFD library. See section 1. ar.
-w[lLiaprmfFsoRt]
--debug-dump[=rawline,=decodedline,=info,=abbrev,=pubnames,=aranges,=macro,=frames,=frames-interp,=str,=loc,=Ranges,=pubtypes,=trace_info,=trace_abbrev,=trace_aranges,=gdb_index]
Note that there is no single letter option to display the content of trace sections or .gdb_index.
Note: the `=decodedline' option will display the interpreted contents of a .debug_line section whereas the `=rawline' option dumps the contents in a raw format.
Note: the `=frames-interp' option will display the interpreted contents of a .debug_frame section whereas the `=frames' option dumps the contents in a raw format.
Note: the output from the `=info' option can also be affected by the options `--dwarf-depth' and `--dwarf-start'.
--dwarf-depth=n
.debug_info
section to n children.
This is only useful with `--debug-dump=info'. The default is
to print all DIEs; the special value 0 for n will also have this
effect.
With a non-zero value for n, DIEs at or deeper than n levels will not be printed. The range for n is zero-based.
--dwarf-start=n
If specified, this option will suppress printing of any header information and all DIEs before the DIE numbered n. Only siblings and children of the specified DIE will be printed.
This can be used in conjunction with `--dwarf-depth'.
-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
.
[ << ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |