14a68586dSMichael Trentllvm-objdump - LLVM's object file dumper 24a68586dSMichael Trent======================================== 34a68586dSMichael Trent 44a68586dSMichael TrentSYNOPSIS 54a68586dSMichael Trent-------- 64a68586dSMichael Trent 74a68586dSMichael Trent:program:`llvm-objdump` [*commands*] [*options*] [*filenames...*] 84a68586dSMichael Trent 94a68586dSMichael TrentDESCRIPTION 104a68586dSMichael Trent----------- 114a68586dSMichael TrentThe :program:`llvm-objdump` utility prints the contents of object files and 124a68586dSMichael Trentfinal linked images named on the command line. If no file name is specified, 134a68586dSMichael Trent:program:`llvm-objdump` will attempt to read from *a.out*. If *-* is used as a 144a68586dSMichael Trentfile name, :program:`llvm-objdump` will process a file on its standard input 154a68586dSMichael Trentstream. 164a68586dSMichael Trent 174a68586dSMichael TrentCOMMANDS 184a68586dSMichael Trent-------- 19*7e660211SMichael TrentAt least one of the following commands are required, and some commands can be 20*7e660211SMichael Trentcombined with other commands: 214a68586dSMichael Trent 22*7e660211SMichael Trent.. option:: -d, -disassemble 234a68586dSMichael Trent 24*7e660211SMichael Trent Display assembler mnemonics for the machine instructions. Disassembles all 25*7e660211SMichael Trent text sections found in the input file(s). 26*7e660211SMichael Trent 27*7e660211SMichael Trent.. option:: -D, -disassemble-all 28*7e660211SMichael Trent 29*7e660211SMichael Trent Display assembler mnemonics for the machine instructions. Disassembles all 30*7e660211SMichael Trent sections found in the input file(s). 314a68586dSMichael Trent 324a68586dSMichael Trent.. option:: -help 334a68586dSMichael Trent 344a68586dSMichael Trent Display usage information and exit. Does not stack with other commands. 354a68586dSMichael Trent 364a68586dSMichael Trent.. option:: -r 374a68586dSMichael Trent 384a68586dSMichael Trent Display the relocation entries in the file. 394a68586dSMichael Trent 404a68586dSMichael Trent.. option:: -s 414a68586dSMichael Trent 424a68586dSMichael Trent Display the content of each section. 434a68586dSMichael Trent 444a68586dSMichael Trent.. option:: -section-headers 454a68586dSMichael Trent 464a68586dSMichael Trent Display summaries of the headers for each section. 474a68586dSMichael Trent 484a68586dSMichael Trent.. option:: -t 494a68586dSMichael Trent 504a68586dSMichael Trent Display the symbol table. 514a68586dSMichael Trent 524a68586dSMichael Trent.. option:: -version 534a68586dSMichael Trent 544a68586dSMichael Trent Display the version of this program. Does not stack with other commands. 554a68586dSMichael Trent 564a68586dSMichael TrentOPTIONS 574a68586dSMichael Trent------- 584a68586dSMichael Trent:program:`llvm-objdump` supports the following options: 594a68586dSMichael Trent 604a68586dSMichael Trent.. option:: -arch=<architecture> 614a68586dSMichael Trent 62*7e660211SMichael Trent Specify the architecture to disassemble. see ``-version`` for available 634a68586dSMichael Trent architectures. 644a68586dSMichael Trent 654a68586dSMichael Trent.. option:: -cfg 664a68586dSMichael Trent 674a68586dSMichael Trent Create a CFG for every symbol in the object file and write it to a graphviz 684a68586dSMichael Trent file (Mach-O-only). 694a68586dSMichael Trent 704a68586dSMichael Trent.. option:: -dsym=<string> 714a68586dSMichael Trent 724a68586dSMichael Trent Use .dSYM file for debug info. 734a68586dSMichael Trent 744a68586dSMichael Trent.. option:: -g 754a68586dSMichael Trent 764a68586dSMichael Trent Print line information from debug info if available. 774a68586dSMichael Trent 78*7e660211SMichael Trent.. option:: -m, -macho 794a68586dSMichael Trent 80*7e660211SMichael Trent Use Mach-O specific object file parser. Commands and other options may behave 81*7e660211SMichael Trent differently when used with ``-macho``. 824a68586dSMichael Trent 834a68586dSMichael Trent.. option:: -mattr=<a1,+a2,-a3,...> 844a68586dSMichael Trent 854a68586dSMichael Trent Target specific attributes. 864a68586dSMichael Trent 874a68586dSMichael Trent.. option:: -mc-x86-disable-arith-relaxation 884a68586dSMichael Trent 894a68586dSMichael Trent Disable relaxation of arithmetic instruction for X86. 904a68586dSMichael Trent 914a68586dSMichael Trent.. option:: -stats 924a68586dSMichael Trent 934a68586dSMichael Trent Enable statistics output from program. 944a68586dSMichael Trent 954a68586dSMichael Trent.. option:: -triple=<string> 964a68586dSMichael Trent 97*7e660211SMichael Trent Target triple to disassemble for, see ``-version`` for available targets. 984a68586dSMichael Trent 994a68586dSMichael Trent.. option:: -x86-asm-syntax=<style> 1004a68586dSMichael Trent 1014a68586dSMichael Trent When used with the ``-disassemble`` option, choose style of code to emit from 1024a68586dSMichael Trent X86 backend. Supported values are: 1034a68586dSMichael Trent 1044a68586dSMichael Trent .. option:: att 1054a68586dSMichael Trent 1064a68586dSMichael Trent AT&T-style assembly 1074a68586dSMichael Trent 1084a68586dSMichael Trent .. option:: intel 1094a68586dSMichael Trent 1104a68586dSMichael Trent Intel-style assembly 1114a68586dSMichael Trent 1124a68586dSMichael Trent 1134a68586dSMichael Trent The default disassembly style is **att**. 1144a68586dSMichael Trent 1154a68586dSMichael TrentBUGS 1164a68586dSMichael Trent---- 1174a68586dSMichael Trent 1184a68586dSMichael TrentTo report bugs, please visit <http://llvm.org/bugs/>. 1194a68586dSMichael Trent 1204a68586dSMichael TrentSEE ALSO 1214a68586dSMichael Trent-------- 1224a68586dSMichael Trent 1234a68586dSMichael Trent:manpage:`llvm-nm(1)` 124