 |
|
| |
LLVM-READOBJ(1) |
LLVM |
LLVM-READOBJ(1) |
llvm-readobj - LLVM Object Reader
llvm-readobj [options] [input...]
The llvm-readobj tool displays low-level format-specific
information about one or more object files.
If input is "-", llvm-readobj reads
from standard input. Otherwise, it will read from the specified
filenames.
llvm-readelf is an alias for the llvm-readobj tool
with a slightly different command-line interface and output that is GNU
compatible. Following is a list of differences between llvm-readelf
and llvm-readobj:
- llvm-readelf uses GNU for the --elf-output-style
option by default. llvm-readobj uses LLVM.
- llvm-readelf allows single-letter grouped flags (e.g.
llvm-readelf -SW is the same as llvm-readelf -S -W).
llvm-readobj does not allow grouping.
- llvm-readelf provides -s as an alias for --symbols,
for GNU readelf compatibility, whereas it is an alias for
--section-headers in llvm-readobj.
- llvm-readobj provides -t as an alias for --symbols.
llvm-readelf does not.
- llvm-readobj provides --sr, --sd, --st and
--dt as aliases for --section-relocations,
--section-data, --section-symbols and --dyn-symbols
respectively. llvm-readelf does not provide these aliases, to avoid
conflicting with grouped flags.
These options are applicable to more than one file format, or are
unrelated to file formats.
- --all
- Equivalent to specifying all the main display options relevant to the file
format.
- --addrsig
- Display the address-significance table.
- --decompress,
-z
- Dump decompressed section content when used with -x or -p.
If the section(s) are not compressed, they are displayed as is.
- --demangle,
-C
- Display demangled symbol names in the output. This option is only for ELF
and XCOFF file formats.
- --expand-relocs
- When used with --relocs, display each relocation in an expanded
multi-line format.
- Equivalent to setting: --file-header, --program-headers, and
--sections.
- --help
- Display a summary of command line options.
- --hex-dump=<section[,section,...]>,
-x
- Display the specified section(s) as hexadecimal bytes. section may
be a section index or section name.
Display information about memory tagging present in the binary.
This includes various memtag-specific dynamic entries, decoded global
descriptor sections, and decoded Android-specific ELF notes.
- --no-demangle
- Do not demangle symbol names in the output. This option is only for ELF
and XCOFF file formats. The option is enabled by default.
- --section-data,
--sd
- When used with --sections, display section data for each section
shown. This option has no effect for GNU style output.
- --section-relocations,
--sr
- When used with --sections, display relocations for each section
shown. This option has no effect for GNU style output.
- --section-symbols,
--st
- 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.
- --version
- Display the version of the llvm-readobj executable.
- @<FILE>
- Read command-line options from response file <FILE>.
The following options are implemented only for the ELF file
format.
- --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.
When pgo analysis maps are present, all analyses are printed
as their raw value.
- --pretty-pgo-analysis-map
- When pgo analysis maps are present in the basic block address map
section(s), analyses with special formats (i.e. BlockFrequency,
BranchProbability, etc) are printed using the same format as their
respective analysis pass.
Requires --bb-addr-map to have an effect.
- --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, GNU, and JSON. LLVM output (the default)
is an expanded and structured format. GNU output mimics the
equivalent GNU readelf output. JSON is JSON formatted output
intended for machine consumption.
- --hash-symbols
- Display the expanded hash table with dynamic symbol data.
- --memtag
- Display information about memory tagging present in the binary. This
includes various dynamic entries, decoded global descriptor sections, and
decoded Android-specific ELF notes.
- --pretty-print
- When used with --elf-output-style, JSON output will be formatted in
a more readable format.
- --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-info, -V
- Display version sections.
The following options are implemented only for the Mach-O file
format.
The following options are implemented only for the PE/COFF file
format.
- --codeview-ghash
- Enable global hashing for CodeView type stream de-duplication.
- --codeview-merged-types
- Display the merged CodeView type stream.
- --codeview-subsection-bytes
- Dump raw contents of CodeView debug sections and records.
The following options are implemented only for the XCOFF file
format.
llvm-readobj returns 0 under normal operation. It returns a
non-zero exit code if there were any errors.
llvm-nm(1), llvm-objdump(1),
llvm-readelf(1)
Maintained by the LLVM Team (https://llvm.org/).
Visit the GSP FreeBSD Man Page Interface. Output converted with ManDoc.
|