llvm-objdump.rst 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  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 combined with other commands:
  16. .. option:: -disassemble
  17. Display assembler mnemonics for the machine instructions
  18. .. option:: -help
  19. Display usage information and exit. Does not stack with other commands.
  20. .. option:: -r
  21. Display the relocation entries in the file.
  22. .. option:: -s
  23. Display the content of each section.
  24. .. option:: -section-headers
  25. Display summaries of the headers for each section.
  26. .. option:: -t
  27. Display the symbol table.
  28. .. option:: -version
  29. Display the version of this program. Does not stack with other commands.
  30. OPTIONS
  31. -------
  32. :program:`llvm-objdump` supports the following options:
  33. .. option:: -arch=<architecture>
  34. Specify the architecture to disassemble. see -version for available
  35. architectures.
  36. .. option:: -cfg
  37. Create a CFG for every symbol in the object file and write it to a graphviz
  38. file (Mach-O-only).
  39. .. option:: -dsym=<string>
  40. Use .dSYM file for debug info.
  41. .. option:: -g
  42. Print line information from debug info if available.
  43. .. option:: -macho
  44. Use Mach-O specific object file parser.
  45. .. option:: -mattr=<a1,+a2,-a3,...>
  46. Target specific attributes.
  47. .. option:: -mc-x86-disable-arith-relaxation
  48. Disable relaxation of arithmetic instruction for X86.
  49. .. option:: -stats
  50. Enable statistics output from program.
  51. .. option:: -triple=<string>
  52. Target triple to disassemble for, see -version for available targets.
  53. .. option:: -x86-asm-syntax=<style>
  54. When used with the ``-disassemble`` option, choose style of code to emit from
  55. X86 backend. Supported values are:
  56. .. option:: att
  57. AT&T-style assembly
  58. .. option:: intel
  59. Intel-style assembly
  60. The default disassembly style is **att**.
  61. BUGS
  62. ----
  63. To report bugs, please visit <http://llvm.org/bugs/>.
  64. SEE ALSO
  65. --------
  66. :manpage:`llvm-nm(1)`