llvm-readelf - GNU-style LLVM Object Reader
llvm-readelf [options] [input…]
The llvm-readelf tool displays low-level format-specific
information about one or more object files.
If input is “-”, llvm-readelf
reads from standard input. Otherwise, it will read from the specified
filenames.
- --all
- Equivalent to specifying all the main display options relevant to the file
format.
- --addrsig
- Display the address-significance table.
- --arch-specific,
-A
- Display architecture-specific information, e.g. the ARM attributes section
on ARM.
- --bb-addr-map
- Display the contents of the basic block address map section(s), which
contain the address of each function, along with the relative offset of
each basic block.
- --histogram,
-I
- Display a bucket list histogram for dynamic symbol hash tables.
- --elf-output-style=<value>
- Format ELF information in the specified style. Valid options are
LLVM and GNU. LLVM output is an expanded and
structured format, whilst GNU (the default) output mimics the
equivalent GNU readelf output.
- --expand-relocs
- When used with --relocations, display each relocation in an
expanded multi-line format.
- --hash-symbols
- Display the expanded hash table with dynamic symbol data.
- Equivalent to setting: --file-header, --program-headers, and
--sections.
- --help
- Display a summary of command line options.
- --raw-relr
- Do not decode relocations in RELR relocation sections when displaying
them.
- --section-data
- When used with --sections, display section data for each section
shown. This option has no effect for GNU style output.
- --section-relocations
- When used with --sections, display relocations for each section
shown. This option has no effect for GNU style output.
- --section-symbols
- When used with --sections, display symbols for each section shown.
This option has no effect for GNU style output.
- --stackmap
- Display contents of the stackmap section.
- --stack-sizes
- Display the contents of the stack sizes section(s), i.e. pairs of function
names and the size of their stack frames. Currently only implemented for
GNU style output.
- --version
- Display the version of the llvm-readelf executable.
- --version-info, -V
- Display version sections.
- @<FILE>
- Read command-line options from response file <FILE>.
llvm-readelf returns 0 under normal operation. It returns a
non-zero exit code if there were any errors.
Maintained by the LLVM Team (https://llvm.org/).