llvm.org GIT mirror llvm / release_90 docs / CommandGuide / llvm-readobj.rst
release_90

Tree @release_90 (Download .tar.gz)

llvm-readobj.rst @release_90view markup · raw · history · blame

llvm-readobj - LLVM Object Reader

SYNOPSIS

:program:`llvm-readobj` [options] [input...]

DESCRIPTION

The :program:`llvm-readobj` tool displays low-level format-specific information about one or more object files.

If input is "-" or omitted, :program:`llvm-readobj` reads from standard input. Otherwise, it will read from the specified filenames.

DIFFERENCES TO LLVM-READELF

:program:`llvm-readelf` is an alias for the :manpage:`llvm-readobj` tool with a slightly different command-line interface and output that is GNU compatible. Following is a list of differences between :program:`llvm-readelf` and :program:`llvm-readobj`:

GENERAL AND MULTI-FORMAT OPTIONS

These options are applicable to more than one file format, or are unrelated to file formats.

ELF SPECIFIC OPTIONS

The following options are implemented only for the ELF file format.

MACH-O SPECIFIC OPTIONS

The following options are implemented only for the Mach-O file format.

PE/COFF SPECIFIC OPTIONS

The following options are implemented only for the PE/COFF file format.

EXIT STATUS

:program:`llvm-readobj` returns 0 under normal operation. It returns a non-zero exit code if there were any errors.