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 4.\" 5.Dd December 19, 2018 6.Dt LLVM-OBJDUMP 1 7.Os 8.Sh NAME 9.Nm llvm-objdump 10.Nd LLVM object file dumper 11.Sh SYNOPSIS 12.Nm llvm-objdump 13.Op Ar options 14.Ar objfile ... 15.Sh DESCRIPTION 16.Nm 17prints the contents of object files and final linked images named on the 18command line. 19If no file name is specified, 20.Nm 21will attempt to read from 22.Pa a.out . 23If 24.Pa - 25is used as a file name, 26.Nm 27will process a file on its standard input stream. 28.Nm 29accepts many of the same command line arguments as GNU objdump. 30.Sh OPTIONS 31.Ss General Options 32.Bl -tag -width indent 33.It Fl -aarch64-neon-syntax Ns = Ns Ar value 34Choose style of NEON code to emit from AArch64 backend. 35.Ar value 36may be one of: 37.Bl -tag -width indent 38.It generic 39Generic NEON assembly 40.It apple 41Apple-style NEON assembly 42.El 43.It Fl -arch Ns = Ns Ar value 44Choose architecture(s) from a Mach-O file to dump 45.It Fl -arch-name Ns = Ns ar arch 46Target arch to disassemble for. 47See 48.Fl -version 49for available targets. 50.It Fl -bind 51Display mach-o binding info. 52.It Fl -color 53Use colored syntax highlighting. 54Default autodetect. 55.It Fl -disassemble 56Display assembler mnemonics for machine instructions. 57.It Fl -disassemble-all 58Display assembler mnemonics for the machine instruction in all sections. 59.It Fl -dsym Ns = Ns Ar file 60Use 61.Ar file 62for debug info. 63.It Fl -dwarf Ns = Ns Ar sections 64Dump of dwarf debug sections. 65.Bl -tag -width indent 66.It frames 67.Dv .debug_frame 68.El 69.It Fl -exports-trie 70Display mach-o exported symbols. 71.It Fl -fault-map-section 72Display contents of faultmap section. 73.It Fl -filter-print-funcs Ns = Ns Ar functions 74Only print IR for functions whose name match 75.Ar functions 76for all print-[before|after][-all] options. 77.It Fl -full-leading-addr 78Print full leading address. 79.It Fl g 80Print line information from debug info if available. 81.It Fl h , -headers , -section-headers 82Display summaries of the headers for each section. 83.It Fl -help 84Display available options. 85Use 86.Fl -help-hidden 87for more. 88.It Fl -lazy-bind 89Display mach-o lazy binding info. 90.It Fl -line-numbers 91Display source line numbers with disassembly. 92Implies disassemble object. 93.It Fl -macho 94Use MachO specific object file parser. 95.It Fl -mattr Ns = Ns Ar attribute ... 96Target specific attributes. 97.It Fl -mcpu Ns = Ns Ar CPU 98Target a specific cpu type. 99Use 100.Fl mcpu Ns = Ns help 101for details. 102.It Fl -no-leading-addr 103Print no leading address. 104.It Fl -no-leading-headers 105Print no leading headers. 106.It Fl -no-show-raw-insn 107When disassembling instructions, do not print the instruction bytes. 108.It Fl -prefix Ns = Ns Ar PREFIX 109When disassembling, add 110.Ar PREFIX 111to absolute paths. 112.It Fl -print-imm-hex 113Use hex format for immediate values. 114.It Fl -private-header 115Display only the first format specific file header. 116.It Fl -private-headers 117Display format specific file headers. 118.It Fl r 119Display the relocation entries in the file. 120.It Fl -raw-clang-ast 121Dump the raw binary contents of the clang AST section. 122.It Fl -rebase 123Display mach-o rebasing info. 124.It Fl -reverse-iterate 125Reverse iterate. 126.It Fl s 127Display the content of each section. 128.It Fl -section Ns = Ns Ar section 129Operate on the specified sections only. 130With 131.Fl -macho 132dump segment,section. 133.It Fl -source 134Display source inline with disassembly. 135Implies disassmble object. 136.It Fl -start-address Ns = Ns Ar address 137Disassemble beginning at 138.Ar address . 139.It Fl -stop-address Ns = Ns Ar address 140Stop disassembly at 141.Ar address . 142.It Fl t 143Display the symbol table. 144.It Fl -triple Ns = Ns Ar triple 145Target triple to disassemble for. 146See 147.Fl -version 148for available targets. 149.It Fl -unwind-info 150Display unwind information. 151.It Fl -version 152Display the version of this program. 153.It Fl -weak-bind 154Display mach-o weak binding info. 155.It Fl -x86-asm-syntax Ns = Ns Ar syntax 156Choose style of code to emit from X86 backend. 157.Bl -tag -width indent 158.It att 159Emit AT&T-style assembly. 160.It intel 161Emit Intel-style assembly. 162.El 163.El 164.Ss Mach-O Options 165There are a number of options specific to the Mach-O format. 166These are used in combination with the 167.Fl -macho 168option. 169.Bl -tag -width indent 170.It Fl -archive-headers 171Print archive headers for Mach-O archives. 172.It Fl -archive-member-offsets 173Print the offset to each archive member for Mach-O archives. 174Requires 175.Fl -macho 176and 177.Fl -archive-headers . 178.It Fl -data-in-code 179Print the data in code table for Mach-O objects. 180.It Fl -dis-symname Ns = Ns Ar symbol 181Disassemble just 182.Ar symbol 's 183instructions. 184.It Fl -dylib-id 185Print the shared library's id for the dylib Mach-O file. 186.It Fl -dylibs-used 187Print the shared libraries used for linked Mach-O files. 188.It Fl -indirect-symbols 189Print indirect symbol table for Mach-O objects. 190.It Fl -info-plist 191Print the info plist section as strings for Mach-O objects. 192.It Fl -link-opt-hints 193Print the linker optimization hints for Mach-O objects. 194.It Fl -no-symbolic-operands 195do not symbolic operands when disassembling. 196.It Fl -non-verbose 197Print the info for Mach-O objects in non-verbose or numeric form. 198.It Fl -objc-meta-data 199Print the Objective-C runtime meta data for Mach-O files. 200.It Fl -universal-headers 201Print Mach-O universal headers. 202.El 203