2 .\" Man page generated from reStructuredText.
5 .nr rst2man-indent-level 0
9 level \\n[rst2man-indent-level]
10 level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
17 .\" .rstReportMargin pre:
19 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
20 . nr rst2man-indent-level +1
21 .\" .rstReportMargin post:
25 .\" indent \\n[an-margin]
26 .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
27 .nr rst2man-indent-level -1
28 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
29 .in \\n[rst2man-indent\\n[rst2man-indent-level]]u
31 .TH "LLVM-OBJDUMP" "1" "2021-06-07" "12" "LLVM"
33 llvm-objdump \- LLVM's object file dumper
36 \fBllvm\-objdump\fP [\fIcommands\fP] [\fIoptions\fP] [\fIfilenames...\fP]
39 The \fBllvm\-objdump\fP utility prints the contents of object files and
40 final linked images named on the command line. If no file name is specified,
41 \fBllvm\-objdump\fP will attempt to read from \fIa.out\fP\&. If \fI\-\fP is used as a
42 file name, \fBllvm\-objdump\fP will process a file on its standard input
46 At least one of the following commands are required, and some commands can be
47 combined with other commands:
50 .B \-a, \-\-archive\-headers
51 Display the information contained within an archive\(aqs headers.
55 .B \-d, \-\-disassemble
56 Disassemble all text sections found in the input files.
60 .B \-D, \-\-disassemble\-all
61 Disassemble all sections found in the input files.
65 .B \-\-disassemble\-symbols=<symbol1[,symbol2,...]>
66 Disassemble only the specified symbols. Takes demangled symbol names when
67 \fI\%\-\-demangle\fP is specified, otherwise takes mangled symbol names.
68 Implies \fI\%\-\-disassemble\fP\&.
73 Dump the specified DWARF debug sections. The supported values are:
75 \fIframes\fP \- .debug_frame
79 .B \-f, \-\-file\-headers
80 Display the contents of the overall file header.
84 .B \-\-fault\-map\-section
85 Display the content of the fault map section.
89 .B \-h, \-\-headers, \-\-section\-headers
90 Display summaries of the headers for each section.
95 Display usage information and exit. Does not stack with other commands.
99 .B \-p, \-\-private\-headers
100 Display format\-specific file headers.
105 Display the relocation entries in the file.
109 .B \-R, \-\-dynamic\-reloc
110 Display the dynamic relocation entries in the file.
114 .B \-\-raw\-clang\-ast
115 Dump the raw binary contents of the clang AST section.
119 .B \-s, \-\-full\-contents
120 Display the contents of each section.
125 Display the symbol table.
129 .B \-T, \-\-dynamic\-syms
130 Display the contents of the dynamic symbol table.
134 .B \-u, \-\-unwind\-info
135 Display the unwind info of the input(s).
140 Display the version of the \fBllvm\-objdump\fP executable. Does not stack
145 .B \-x, \-\-all\-headers
146 Display all available header information. Equivalent to specifying
147 \fI\%\-\-archive\-headers\fP, \fI\%\-\-file\-headers\fP,
148 \fI\%\-\-private\-headers\fP, \fI\%\-\-reloc\fP, \fI\%\-\-section\-headers\fP,
149 and \fI\%\-\-syms\fP\&.
153 \fBllvm\-objdump\fP supports the following options:
156 .B \-\-adjust\-vma=<offset>
157 Increase the displayed address in disassembly or section header printing by
158 the specified offset.
162 .B \-\-arch\-name=<string>
163 Specify the target architecture when disassembling. Use \fI\%\-\-version\fP
164 for a list of available targets.
169 Demangle symbol names in the output.
173 .B \-\-debug\-vars=<format>
174 Print the locations (in registers or memory) of source\-level variables
175 alongside disassembly. \fBformat\fP may be \fBunicode\fP or \fBascii\fP, defaulting
176 to \fBunicode\fP if omitted.
180 .B \-\-debug\-vars\-indent=<width>
181 Distance to indent the source\-level variable display, relative to the start
182 of the disassembly. Defaults to 40 characters.
186 .B \-j, \-\-section=<section1[,section2,...]>
187 Perform commands on the specified sections only. For Mach\-O use
188 \fIsegment,section\fP to specify the section name.
192 .B \-l, \-\-line\-numbers
193 When disassembling, display source line numbers. Implies
194 \fI\%\-\-disassemble\fP\&.
198 .B \-M, \-\-disassembler\-options=<opt1[,opt2,...]>
199 Pass target\-specific disassembler options. Currently supported for ARM targets
200 only. Available options are \fBreg\-names\-std\fP and \fBreg\-names\-raw\fP\&.
204 .B \-\-mcpu=<cpu\-name>
205 Target a specific CPU type for disassembly. Specify \fB\-\-mcpu=help\fP to display
210 .B \-\-mattr=<a1,+a2,\-a3,...>
211 Enable/disable target\-specific attributes. Specify \fB\-\-mattr=help\fP to display
212 the available attributes.
216 .B \-\-no\-leading\-addr
217 When disassembling, do not print leading addresses.
221 .B \-\-no\-show\-raw\-insn
222 When disassembling, do not print the raw bytes of each instruction.
226 .B \-\-prefix=<prefix>
227 When disassembling with the \fI\%\-\-source\fP option, prepend \fBprefix\fP to
232 .B \-\-print\-imm\-hex
233 Use hex format when printing immediate values in disassembly output.
238 When disassembling, display source interleaved with the disassembly. Implies
239 \fI\%\-\-disassemble\fP\&.
244 Display the LMA column when dumping ELF section headers. Defaults to off
245 unless any section has different VMA and LMAs.
249 .B \-\-start\-address=<address>
250 When disassembling, only disassemble from the specified address.
252 When printing relocations, only print the relocations patching offsets from at least \fBaddress\fP\&.
254 When printing symbols, only print symbols with a value of at least \fBaddress\fP\&.
258 .B \-\-stop\-address=<address>
259 When disassembling, only disassemble up to, but not including the specified address.
261 When printing relocations, only print the relocations patching offsets up to \fBaddress\fP\&.
263 When printing symbols, only print symbols with a value up to \fBaddress\fP\&.
267 .B \-\-symbolize\-operands
268 When disassembling, symbolize a branch target operand to print a label instead of a real address.
270 When printing a PC\-relative global symbol reference, print it as an offset from the leading symbol.
272 Only works with an X86 linked image.
276 A non\-symbolized branch instruction with a local target and pc\-relative memory access like
283 cmp eax, dword ptr [rip + 4112]
284 jge 0x20117e <_start+0x25>
297 cmp eax, dword ptr <g>
306 .B \-\-triple=<string>
307 Target triple to disassemble for, see \fB\-\-version\fP for available targets.
312 Ignored for compatibility with GNU objdump.
316 .B \-\-x86\-asm\-syntax=<style>
317 When used with \fI\%\-\-disassemble\fP, choose style of code to emit from
318 X86 backend. Supported values are:
329 Intel\-style assembly
334 The default disassembly style is \fBatt\fP\&.
338 .B \-z, \-\-disassemble\-zeroes
339 Do not skip blocks of zeroes when disassembling.
344 Read command\-line options and commands from response file \fI<FILE>\fP\&.
346 .SH MACH-O ONLY OPTIONS AND COMMANDS
349 .B \-\-arch=<architecture>
350 Specify the architecture to disassemble. see \fB\-\-version\fP for available
355 .B \-\-archive\-member\-offsets
356 Print the offset to each archive member for Mach\-O archives (requires
357 \fI\%\-\-archive\-headers\fP).
367 Create a CFG for every symbol in the object file and write it to a graphviz
372 .B \-\-data\-in\-code
373 Display the data in code table.
377 .B \-\-dis\-symname=<name>
378 Disassemble just the specified symbol\(aqs instructions.
383 Display the shared libraries used for linked files.
388 Use .dSYM file for debug info.
393 Display the shared library\(aqs ID for dylib files.
398 Display exported symbols.
403 Print line information from debug info if available.
407 .B \-\-full\-leading\-addr
408 Print the full leading address when disassembling.
412 .B \-\-indirect\-symbols
413 Display the indirect symbol table.
418 Display the info plist section as strings.
423 Display lazy binding info.
427 .B \-\-link\-opt\-hints
428 Display the linker optimization hints.
433 Use Mach\-O specific object file parser. Commands and other options may behave
434 differently when used with \fB\-\-macho\fP\&.
438 .B \-\-no\-leading\-headers
439 Do not print any leading headers.
443 .B \-\-no\-symbolic\-operands
444 Do not print symbolic operands when disassembling.
449 Display the information for Mach\-O objects in non\-verbose or numeric form.
453 .B \-\-objc\-meta\-data
454 Display the Objective\-C runtime meta data.
458 .B \-\-private\-header
459 Display only the first format specific file header.
464 Display rebasing information.
468 .B \-\-universal\-headers
469 Display universal headers.
474 Display weak binding information.
476 .SH XCOFF ONLY OPTIONS AND COMMANDS
479 .B \-\-symbol\-description
480 Add symbol description to disassembly output.
484 To report bugs, please visit <\fI\%https://bugs.llvm.org/\fP>.
487 \fBllvm\-nm(1)\fP, \fBllvm\-readelf(1)\fP, \fBllvm\-readobj(1)\fP
489 Maintained by the LLVM Team (https://llvm.org/).
491 2003-2021, LLVM Project
492 .\" Generated by docutils manpage writer.