llvm-readobj.rst 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281
  1. llvm-readobj - LLVM Object Reader
  2. =================================
  3. .. program:: llvm-readobj
  4. SYNOPSIS
  5. --------
  6. :program:`llvm-readobj` [*options*] [*input...*]
  7. DESCRIPTION
  8. -----------
  9. The :program:`llvm-readobj` tool displays low-level format-specific information
  10. about one or more object files.
  11. If ``input`` is "``-``" or omitted, :program:`llvm-readobj` reads from standard
  12. input. Otherwise, it will read from the specified ``filenames``.
  13. GENERAL AND MULTI-FORMAT OPTIONS
  14. --------------------------------
  15. These options are applicable to more than one file format, or are unrelated to
  16. file formats.
  17. .. option:: --all
  18. Equivalent to specifying all the main display options relevant to the file
  19. format.
  20. .. option:: --addrsig
  21. Display the address-significance table.
  22. .. option:: --color
  23. Use colors in the output for warnings and errors.
  24. .. option:: --expand-relocs
  25. When used with :option:`--relocations`, display each relocation in an expanded
  26. multi-line format.
  27. .. option:: --file-headers, -h
  28. Display file headers.
  29. .. option:: --headers, -e
  30. Equivalent to setting: :option:`--file-headers`, :option:`--program-headers`,
  31. and :option:`--sections`.
  32. .. option:: --help
  33. Display a summary of command line options.
  34. .. option:: --help-list
  35. Display an uncategorized summary of command line options.
  36. .. option:: --hex-dump=<section[,section,...]>, -x
  37. Display the specified section(s) as hexadecimal bytes. ``section`` may be a
  38. section index or section name.
  39. .. option:: --needed-libs
  40. Display the needed libraries.
  41. .. option:: --relocations, --relocs, -r
  42. Display the relocation entries in the file.
  43. .. option:: --sections, --section-headers, -s, -S
  44. Display all sections.
  45. .. option:: --section-data, --sd
  46. When used with :option:`--sections`, display section data for each section shown.
  47. .. option:: --section-relocations, --sr
  48. When used with :option:`--sections`, display relocations for each section shown.
  49. .. option:: --section-symbols, --st
  50. When used with :option:`--sections`, display symbols for each section shown.
  51. .. option:: --stackmap
  52. Display contents of the stackmap section.
  53. .. option:: --string-dump=<section[,section,...]>, -p
  54. Display the specified section(s) as a list of strings. ``section`` may be a
  55. section index or section name.
  56. .. option:: --symbols, --syms, -t
  57. Display the symbol table.
  58. .. option:: --unwind, -u
  59. Display unwind information.
  60. .. option:: --version
  61. Display the version of this program.
  62. .. option:: @<FILE>
  63. Read command-line options from response file `<FILE>`.
  64. ELF SPECIFIC OPTIONS
  65. --------------------
  66. The following options are implemented only for the ELF file format.
  67. .. option:: --arm-attributes
  68. Display the ARM attributes section. Only applicable for ARM architectures.
  69. .. option:: --demangle, -C
  70. Display demangled symbol names in the output.
  71. .. option:: --dyn-relocations
  72. Display the dynamic relocation entries.
  73. .. option:: --dyn-symbols, --dyn-syms, --dt
  74. Display the dynamic symbol table.
  75. .. option:: --dynamic-table, --dynamic, -d
  76. Display the dynamic table.
  77. .. option:: --elf-cg-profile
  78. Display the callgraph profile section.
  79. .. option:: --elf-hash-histogram, --histogram, -I
  80. Display a bucket list histogram for dynamic symbol hash tables.
  81. .. option:: --elf-linker-options
  82. Display the linker options section.
  83. .. option:: --elf-output-style=<value>
  84. Specify the style to dump ELF information in. Valid options are ``LLVM`` and
  85. ``GNU``. ``LLVM`` output (the default) is an expanded and structured format,
  86. whilst ``GNU`` output mimics the equivalent GNU :program:`readelf` output.
  87. .. option:: --elf-section-groups, --section-groups, -g
  88. Display section groups.
  89. .. option:: --gnu-hash-table
  90. Display the GNU hash table for dynamic symbols.
  91. .. option:: --hash-symbols
  92. Display the dynamic symbols derived from the hash table.
  93. .. option:: --hash-table
  94. Display the hash table for dynamic symbols.
  95. .. option:: --notes, -n
  96. Display all notes.
  97. .. option:: --program-headers, --segments, -l
  98. Display the program headers.
  99. .. option:: --raw-relr
  100. Do not decode relocations in RELR relocation sections when displaying them.
  101. .. option:: --section-mapping
  102. Display the section to segment mapping.
  103. .. option:: --version-info, -V
  104. Display version sections.
  105. MACH-O SPECIFIC OPTIONS
  106. -----------------------
  107. The following options are implemented only for the Mach-O file format.
  108. .. option:: --macho-data-in-code
  109. Display the Data in Code command.
  110. .. option:: --macho-dsymtab
  111. Display the Dsymtab command.
  112. .. option:: --macho-indirect-symbols
  113. Display indirect symbols.
  114. .. option:: --macho-linker-options
  115. Display the Mach-O-specific linker options.
  116. .. option:: --macho-segment
  117. Display the Segment command.
  118. .. option:: --macho-version-min
  119. Display the version min command.
  120. PE/COFF SPECIFIC OPTIONS
  121. ------------------------
  122. The following options are implemented only for the PE/COFF file format.
  123. .. option:: --codeview
  124. Display CodeView debug information.
  125. .. option:: --codeview-ghash
  126. Enable global hashing for CodeView type stream de-duplication.
  127. .. option:: --codeview-merged-types
  128. Display the merged CodeView type stream.
  129. .. option:: --codeview-subsection-bytes
  130. Dump raw contents of CodeView debug sections and records.
  131. .. option:: --coff-basereloc
  132. Display the .reloc section.
  133. .. option:: --coff-debug-directory
  134. Display the debug directory.
  135. .. option:: --coff-directives
  136. Display the .drectve section.
  137. .. option:: --coff-exports
  138. Display the export table.
  139. .. option:: --coff-imports
  140. Display the import table.
  141. .. option:: --coff-load-config
  142. Display the load config.
  143. .. option:: --coff-resources
  144. Display the .rsrc section.
  145. EXIT STATUS
  146. -----------
  147. :program:`llvm-readobj` returns 0 under normal operation. It returns a non-zero
  148. exit code if there were any errors.
  149. SEE ALSO
  150. --------
  151. :manpage:`llvm-nm(1)`, :manpage:`llvm-objdump(1)`, :manpage:`llvm-readelf(1)`