llvm-objdump.rst 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. llvm-objdump - LLVM's object file dumper
  2. ========================================
  3. SYNOPSIS
  4. --------
  5. :program:`llvm-objdump` [*commands*] [*options*] [*filenames...*]
  6. DESCRIPTION
  7. -----------
  8. The :program:`llvm-objdump` utility prints the contents of object files and
  9. final linked images named on the command line. If no file name is specified,
  10. :program:`llvm-objdump` will attempt to read from *a.out*. If *-* is used as a
  11. file name, :program:`llvm-objdump` will process a file on its standard input
  12. stream.
  13. COMMANDS
  14. --------
  15. At least one of the following commands are required, and some commands can be
  16. combined with other commands:
  17. .. option:: -d, -disassemble
  18. Display assembler mnemonics for the machine instructions. Disassembles all
  19. text sections found in the input file(s).
  20. .. option:: -D, -disassemble-all
  21. Display assembler mnemonics for the machine instructions. Disassembles all
  22. sections found in the input file(s).
  23. .. option:: -help
  24. Display usage information and exit. Does not stack with other commands.
  25. .. option:: -r
  26. Display the relocation entries in the file.
  27. .. option:: -s
  28. Display the content of each section.
  29. .. option:: -section-headers
  30. Display summaries of the headers for each section.
  31. .. option:: -t
  32. Display the symbol table.
  33. .. option:: -version
  34. Display the version of this program. Does not stack with other commands.
  35. OPTIONS
  36. -------
  37. :program:`llvm-objdump` supports the following options:
  38. .. option:: -arch=<architecture>
  39. Specify the architecture to disassemble. see ``-version`` for available
  40. architectures.
  41. .. option:: -cfg
  42. Create a CFG for every symbol in the object file and write it to a graphviz
  43. file (Mach-O-only).
  44. .. option:: -dsym=<string>
  45. Use .dSYM file for debug info.
  46. .. option:: -g
  47. Print line information from debug info if available.
  48. .. option:: -m, -macho
  49. Use Mach-O specific object file parser. Commands and other options may behave
  50. differently when used with ``-macho``.
  51. .. option:: -mattr=<a1,+a2,-a3,...>
  52. Target specific attributes.
  53. .. option:: -mc-x86-disable-arith-relaxation
  54. Disable relaxation of arithmetic instruction for X86.
  55. .. option:: -stats
  56. Enable statistics output from program.
  57. .. option:: -triple=<string>
  58. Target triple to disassemble for, see ``-version`` for available targets.
  59. .. option:: -x86-asm-syntax=<style>
  60. When used with the ``-disassemble`` option, choose style of code to emit from
  61. X86 backend. Supported values are:
  62. .. option:: att
  63. AT&T-style assembly
  64. .. option:: intel
  65. Intel-style assembly
  66. The default disassembly style is **att**.
  67. BUGS
  68. ----
  69. To report bugs, please visit <http://llvm.org/bugs/>.
  70. SEE ALSO
  71. --------
  72. :manpage:`llvm-nm(1)`