Section 1 · User commands

llvm-otool.1

Package: llvm

LLVM-OTOOL

NAME
SYNOPSIS
DESCRIPTION
OPTIONS
EXIT STATUS
BUGS
SEE ALSO
AUTHOR
COPYRIGHT


NAME

llvm-otool − Mach-O dumping tool

SYNOPSIS

llvm−otool [option…] [file…]

DESCRIPTION

llvm−otool is a tool for dumping Mach−O files.

It attempts to be command−line−compatible and output−compatible with macOS’s otool.

OPTIONS

−arch <value>

Select slice of universal Mach−O file.

−chained_fixups

Print chained fixup information.

−CPrint linker optimization hints.

−dyld_info

Print bind and rebase information.

−DPrint shared library id.
−dPrint data section.
−fPrint universal headers.
−GPrint data−in−code table.

−−help−hidden

Print help for hidden flags.

−−helpPrint help.
−hPrint mach header.
−IPrint indirect symbol table.
−jPrint opcode bytes.
−LPrint used shared libraries.
−lPrint load commands.

−mcpu=<value>

Select cpu for disassembly.

−oPrint Objective−C segment.
−PPrint __TEXT,__info_plist section as strings.

−p <function name>

Start disassembly at <function name>.

−rPrint relocation entries.

−s <segname> <sectname>

Print contents of section.

−tPrint text section.

−−version

Print version.

−VSymbolize disassembled operands (implies −v).
−vVerbose output / disassemble when printing text sections.
−XOmit leading addresses or headers.
−xPrint all text sections.

@<FILE>

Read command−line options and commands from response file <FILE>.

EXIT STATUS

llvm−otool exits with a non−zero exit code if there is an error. Otherwise, it exits with code 0.

BUGS

To report bugs, please visit <- *https://github.com/llvm/llvm−project/labels/tools:llvm−objdump/*\>.

SEE ALSO

llvm−nm(1), llvm−objdump(1)

AUTHOR

Maintained by the LLVM Team (https://llvm.org/).

2003-2025, LLVM Project