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`:
- :program:`llvm-readelf` uses GNU for the :option:`--elf-output-style` option by default. :program:`llvm-readobj` uses LLVM.
-
:program:`llvm-readelf` allows single-letter grouped flags (e.g.
llvm-readelf -SW
is the same asllvm-readelf -S -W
). :program:`llvm-readobj` does not allow grouping. - :program:`llvm-readelf` provides :option:`-s` as an alias for :option:`--symbols`, for GNU :program:`readelf` compatibility, whereas it is an alias for :option:`--section-headers` in :program:`llvm-readobj`.
-
:program:`llvm-readobj` provides
-t
as an alias for :option:`--symbols`. :program:`llvm-readelf` does not. -
:program:`llvm-readobj` provides
--sr
,--sd
,--st
and--dt
as aliases for :option:`--section-relocations`, :option:`--section-data`, :option:`--section-symbols` and :option:`--dyn-symbols` respectively. :program:`llvm-readelf` does not provide these aliases, to avoid conflicting with grouped flags.
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.
SEE ALSO
:manpage:`llvm-nm(1)`, :manpage:`llvm-objdump(1)`, :manpage:`llvm-readelf(1)`