1 .\" Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
2 .\" See https://llvm.org/LICENSE.txt for license information.
3 .\" SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
10 .Nd LLVM object file dumper
17 prints the contents of object files and final linked images named on the
19 If no file name is specified,
21 will attempt to read from
25 is used as a file name,
27 will process a file on its standard input stream.
29 accepts many of the same command line arguments as GNU objdump.
32 .Bl -tag -width indent
33 .It Fl -aarch64-neon-syntax Ns = Ns Ar value
34 Choose style of NEON code to emit from AArch64 backend.
37 .Bl -tag -width indent
41 Apple-style NEON assembly
43 .It Fl -arch Ns = Ns Ar value
44 Choose architecture(s) from a Mach-O file to dump
45 .It Fl -arch-name Ns = Ns ar arch
46 Target arch to disassemble for.
49 for available targets.
51 Display mach-o binding info.
53 Use colored syntax highlighting.
56 Display assembler mnemonics for machine instructions.
57 .It Fl -disassemble-all
58 Display assembler mnemonics for the machine instruction in all sections.
59 .It Fl -dsym Ns = Ns Ar file
63 .It Fl -dwarf Ns = Ns Ar sections
64 Dump of dwarf debug sections.
65 .Bl -tag -width indent
70 Display mach-o exported symbols.
71 .It Fl -fault-map-section
72 Display contents of faultmap section.
73 .It Fl -filter-print-funcs Ns = Ns Ar functions
74 Only print IR for functions whose name match
76 for all print-[before|after][-all] options.
77 .It Fl -full-leading-addr
78 Print full leading address.
80 Print line information from debug info if available.
81 .It Fl h , -headers , -section-headers
82 Display summaries of the headers for each section.
84 Display available options.
89 Display mach-o lazy binding info.
91 Display source line numbers with disassembly.
92 Implies disassemble object.
94 Use MachO specific object file parser.
95 .It Fl -mattr Ns = Ns Ar attribute ...
96 Target specific attributes.
97 .It Fl -mcpu Ns = Ns Ar CPU
98 Target a specific cpu type.
100 .Fl mcpu Ns = Ns help
102 .It Fl -no-leading-addr
103 Print no leading address.
104 .It Fl -no-leading-headers
105 Print no leading headers.
106 .It Fl -no-show-raw-insn
107 When disassembling instructions, do not print the instruction bytes.
108 .It Fl -prefix Ns = Ns Ar PREFIX
109 When disassembling, add
112 .It Fl -prefix-strip Ns = Ns Ar LEVEL
113 When disassembling, strip out
115 initial directories from absolute paths. This option has no effect without
116 .Fl -prefix Ns = Ns PREFIX .
117 .It Fl -print-imm-hex
118 Use hex format for immediate values.
119 .It Fl -private-header
120 Display only the first format specific file header.
121 .It Fl -private-headers
122 Display format specific file headers.
124 Display the relocation entries in the file.
125 .It Fl -raw-clang-ast
126 Dump the raw binary contents of the clang AST section.
128 Display mach-o rebasing info.
129 .It Fl -reverse-iterate
132 Display the content of each section.
133 .It Fl -section Ns = Ns Ar section
134 Operate on the specified sections only.
137 dump segment,section.
139 Display source inline with disassembly.
140 Implies disassmble object.
141 .It Fl -start-address Ns = Ns Ar address
142 Disassemble beginning at
144 .It Fl -stop-address Ns = Ns Ar address
148 Display the symbol table.
149 .It Fl -triple Ns = Ns Ar triple
150 Target triple to disassemble for.
153 for available targets.
155 Display unwind information.
157 Display the version of this program.
159 Display mach-o weak binding info.
160 .It Fl -x86-asm-syntax Ns = Ns Ar syntax
161 Choose style of code to emit from X86 backend.
162 .Bl -tag -width indent
164 Emit AT&T-style assembly.
166 Emit Intel-style assembly.
170 There are a number of options specific to the Mach-O format.
171 These are used in combination with the
174 .Bl -tag -width indent
175 .It Fl -archive-headers
176 Print archive headers for Mach-O archives.
177 .It Fl -archive-member-offsets
178 Print the offset to each archive member for Mach-O archives.
182 .Fl -archive-headers .
184 Print the data in code table for Mach-O objects.
185 .It Fl -dis-symname Ns = Ns Ar symbol
190 Print the shared library's id for the dylib Mach-O file.
192 Print the shared libraries used for linked Mach-O files.
193 .It Fl -indirect-symbols
194 Print indirect symbol table for Mach-O objects.
196 Print the info plist section as strings for Mach-O objects.
197 .It Fl -link-opt-hints
198 Print the linker optimization hints for Mach-O objects.
199 .It Fl -no-symbolic-operands
200 do not symbolic operands when disassembling.
202 Print the info for Mach-O objects in non-verbose or numeric form.
203 .It Fl -objc-meta-data
204 Print the Objective-C runtime meta data for Mach-O files.
205 .It Fl -universal-headers
206 Print Mach-O universal headers.