1llvm-objdump - LLVM's object file dumper 2======================================== 3 4.. program:: llvm-objdump 5 6SYNOPSIS 7-------- 8 9:program:`llvm-objdump` [*commands*] [*options*] [*filenames...*] 10 11DESCRIPTION 12----------- 13The :program:`llvm-objdump` utility prints the contents of object files and 14final linked images named on the command line. If no file name is specified, 15:program:`llvm-objdump` will attempt to read from *a.out*. If *-* is used as a 16file name, :program:`llvm-objdump` will process a file on its standard input 17stream. 18 19COMMANDS 20-------- 21At least one of the following commands are required, and some commands can be 22combined with other commands: 23 24.. option:: -a, --archive-headers 25 26 Display the information contained within an archive's headers. 27 28.. option:: -d, --disassemble 29 30 Disassemble all text sections found in the input files. 31 32.. option:: -D, --disassemble-all 33 34 Disassemble all sections found in the input files. 35 36.. option:: --disassemble-symbols=<symbol1[,symbol2,...]> 37 38 Disassemble only the specified symbols. Takes demangled symbol names when 39 :option:`--demangle` is specified, otherwise takes mangled symbol names. 40 Implies :option:`--disassemble`. 41 42.. option:: --dwarf=<value> 43 44 Dump the specified DWARF debug sections. The supported values are: 45 46 `frames` - .debug_frame 47 48.. option:: -f, --file-headers 49 50 Display the contents of the overall file header. 51 52.. option:: --fault-map-section 53 54 Display the content of the fault map section. 55 56.. option:: -h, --headers, --section-headers 57 58 Display summaries of the headers for each section. 59 60.. option:: --help 61 62 Display usage information and exit. Does not stack with other commands. 63 64.. option:: -p, --private-headers 65 66 Display format-specific file headers. 67 68.. option:: -r, --reloc 69 70 Display the relocation entries in the file. 71 72.. option:: -R, --dynamic-reloc 73 74 Display the dynamic relocation entries in the file. 75 76.. option:: --raw-clang-ast 77 78 Dump the raw binary contents of the clang AST section. 79 80.. option:: -s, --full-contents 81 82 Display the contents of each section. 83 84.. option:: -t, --syms 85 86 Display the symbol table. 87 88.. option:: -T, --dynamic-syms 89 90 Display the contents of the dynamic symbol table. 91 92.. option:: -u, --unwind-info 93 94 Display the unwind info of the input(s). 95 96.. option:: --version 97 98 Display the version of the :program:`llvm-objdump` executable. Does not stack 99 with other commands. 100 101.. option:: -x, --all-headers 102 103 Display all available header information. Equivalent to specifying 104 :option:`--archive-headers`, :option:`--file-headers`, 105 :option:`--private-headers`, :option:`--reloc`, :option:`--section-headers`, 106 and :option:`--syms`. 107 108OPTIONS 109------- 110:program:`llvm-objdump` supports the following options: 111 112.. option:: --adjust-vma=<offset> 113 114 Increase the displayed address in disassembly or section header printing by 115 the specified offset. 116 117.. option:: --arch-name=<string> 118 119 Specify the target architecture when disassembling. Use :option:`--version` 120 for a list of available targets. 121 122.. option:: -C, --demangle 123 124 Demangle symbol names in the output. 125 126.. option:: -j, --section=<section1[,section2,...]> 127 128 Perform commands on the specified sections only. For Mach-O use 129 `segment,section` to specify the section name. 130 131.. option:: -l, --line-numbers 132 133 When disassembling, display source line numbers. Implies 134 :option:`--disassemble`. 135 136.. option:: -M, --disassembler-options=<opt1[,opt2,...]> 137 138 Pass target-specific disassembler options. Currently supported for ARM targets 139 only. Available options are ``reg-names-std`` and ``reg-names-raw``. 140 141.. option:: --mcpu=<cpu-name> 142 143 Target a specific CPU type for disassembly. Specify ``--mcpu=help`` to display 144 available CPUs. 145 146.. option:: --mattr=<a1,+a2,-a3,...> 147 148 Enable/disable target-specific attributes. Specify ``--mcpu=help`` to display 149 the available attributes. 150 151.. option:: --no-leading-addr 152 153 When disassembling, do not print leading addresses. 154 155.. option:: --no-show-raw-insn 156 157 When disassembling, do not print the raw bytes of each instruction. 158 159.. option:: --print-imm-hex 160 161 Use hex format when printing immediate values in disassembly output. 162 163.. option:: -S, --source 164 165 When disassembling, display source interleaved with the disassembly. Implies 166 :option:`--disassemble`. 167 168.. option:: --show-lma 169 170 Display the LMA column when dumping ELF section headers. Defaults to off 171 unless any section has different VMA and LMAs. 172 173.. option:: --start-address=<address> 174 175 When disassembling, only disassemble from the specified address. 176 177 When printing relocations, only print the relocations patching offsets from at least ``address``. 178 179 When printing symbols, only print symbols with a value of at least ``address``. 180 181.. option:: --stop-address=<address> 182 183 When disassembling, only disassemble up to, but not including the specified address. 184 185 When printing relocations, only print the relocations patching offsets up to ``address``. 186 187 When printing symbols, only print symbols with a value up to ``address``. 188 189.. option:: --triple=<string> 190 191 Target triple to disassemble for, see ``--version`` for available targets. 192 193.. option:: -w, --wide 194 195 Ignored for compatibility with GNU objdump. 196 197.. option:: --x86-asm-syntax=<style> 198 199 When used with :option:`--disassemble`, choose style of code to emit from 200 X86 backend. Supported values are: 201 202 .. option:: att 203 204 AT&T-style assembly 205 206 .. option:: intel 207 208 Intel-style assembly 209 210 211 The default disassembly style is **att**. 212 213.. option:: -z, --disassemble-zeroes 214 215 Do not skip blocks of zeroes when disassembling. 216 217.. option:: @<FILE> 218 219 Read command-line options and commands from response file `<FILE>`. 220 221MACH-O ONLY OPTIONS AND COMMANDS 222-------------------------------- 223 224.. option:: --arch=<architecture> 225 226 Specify the architecture to disassemble. see ``--version`` for available 227 architectures. 228 229.. option:: --archive-member-offsets 230 231 Print the offset to each archive member for Mach-O archives (requires 232 :option:`--archive-headers`). 233 234.. option:: --bind 235 236 Display binding info 237 238.. option:: --cfg 239 240 Create a CFG for every symbol in the object file and write it to a graphviz 241 file. 242 243.. option:: --data-in-code 244 245 Display the data in code table. 246 247.. option:: --dis-symname=<name> 248 249 Disassemble just the specified symbol's instructions. 250 251.. option:: --dylibs-used 252 253 Display the shared libraries used for linked files. 254 255.. option:: --dsym=<string> 256 257 Use .dSYM file for debug info. 258 259.. option:: --dylib-id 260 261 Display the shared library's ID for dylib files. 262 263.. option:: --exports-trie 264 265 Display exported symbols. 266 267.. option:: -g 268 269 Print line information from debug info if available. 270 271.. option:: --full-leading-addr 272 273 Print the full leading address when disassembling. 274 275.. option:: --indirect-symbols 276 277 Display the indirect symbol table. 278 279.. option:: --info-plist 280 281 Display the info plist section as strings. 282 283.. option:: --lazy-bind 284 285 Display lazy binding info. 286 287.. option:: --link-opt-hints 288 289 Display the linker optimization hints. 290 291.. option:: -m, --macho 292 293 Use Mach-O specific object file parser. Commands and other options may behave 294 differently when used with ``--macho``. 295 296.. option:: --no-leading-headers 297 298 Do not print any leading headers. 299 300.. option:: --no-symbolic-operands 301 302 Do not print symbolic operands when disassembling. 303 304.. option:: --non-verbose 305 306 Display the information for Mach-O objects in non-verbose or numeric form. 307 308.. option:: --objc-meta-data 309 310 Display the Objective-C runtime meta data. 311 312.. option:: --private-header 313 314 Display only the first format specific file header. 315 316.. option:: --rebase 317 318 Display rebasing information. 319 320.. option:: --universal-headers 321 322 Display universal headers. 323 324.. option:: --weak-bind 325 326 Display weak binding information. 327 328XCOFF ONLY OPTIONS AND COMMANDS 329--------------------------------- 330 331.. option:: --symbol-description 332 333 Add symbol description to disassembly output. 334 335BUGS 336---- 337 338To report bugs, please visit <https://bugs.llvm.org/>. 339 340SEE ALSO 341-------- 342 343:manpage:`llvm-nm(1)`, :manpage:`llvm-readelf(1)`, :manpage:`llvm-readobj(1)` 344