llvm-readelf.rst 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  1. llvm-readelf - GNU-style LLVM Object Reader
  2. ===========================================
  3. .. program:: llvm-readelf
  4. SYNOPSIS
  5. --------
  6. :program:`llvm-readelf` [*options*] [*input...*]
  7. DESCRIPTION
  8. -----------
  9. The :program:`llvm-readelf` tool displays low-level format-specific information
  10. about one or more object files.
  11. If ``input`` is "``-``" or omitted, :program:`llvm-readelf` reads from standard
  12. input. Otherwise, it will read from the specified ``filenames``.
  13. OPTIONS
  14. -------
  15. .. option:: --all
  16. Equivalent to specifying all the main display options.
  17. .. option:: --addrsig
  18. Display the address-significance table.
  19. .. option:: --arch-specific, -A
  20. Display architecture-specific information, e.g. the ARM attributes section on ARM.
  21. .. option:: --color
  22. Use colors in the output for warnings and errors.
  23. .. option:: --demangle, -C
  24. Display demangled symbol names in the output.
  25. .. option:: --dyn-relocations
  26. Display the dynamic relocation entries.
  27. .. option:: --dyn-symbols, --dyn-syms
  28. Display the dynamic symbol table.
  29. .. option:: --dynamic-table, --dynamic, -d
  30. Display the dynamic table.
  31. .. option:: --elf-cg-profile
  32. Display the callgraph profile section.
  33. .. option:: --elf-hash-histogram, --histogram, -I
  34. Display a bucket list histogram for dynamic symbol hash tables.
  35. .. option:: --elf-linker-options
  36. Display the linker options section.
  37. .. option:: --elf-output-style=<value>
  38. Format ELF information in the specified style. Valid options are ``LLVM`` and
  39. ``GNU``. ``LLVM`` output is an expanded and structured format, whilst ``GNU``
  40. (the default) output mimics the equivalent GNU :program:`readelf` output.
  41. .. option:: --elf-section-groups, --section-groups, -g
  42. Display section groups.
  43. .. option:: --expand-relocs
  44. When used with :option:`--relocations`, display each relocation in an expanded
  45. multi-line format.
  46. .. option:: --file-headers, -h
  47. Display file headers.
  48. .. option:: --gnu-hash-table
  49. Display the GNU hash table for dynamic symbols.
  50. .. option:: --hash-symbols
  51. Display the expanded hash table with dynamic symbol data.
  52. .. option:: --hash-table
  53. Display the hash table for dynamic symbols.
  54. .. option:: --headers, -e
  55. Equivalent to setting: :option:`--file-headers`, :option:`--program-headers`,
  56. and :option:`--sections`.
  57. .. option:: --help
  58. Display a summary of command line options.
  59. .. option:: --help-list
  60. Display an uncategorized summary of command line options.
  61. .. option:: --hex-dump=<section[,section,...]>, -x
  62. Display the specified section(s) as hexadecimal bytes. ``section`` may be a
  63. section index or section name.
  64. .. option:: --needed-libs
  65. Display the needed libraries.
  66. .. option:: --notes, -n
  67. Display all notes.
  68. .. option:: --program-headers, --segments, -l
  69. Display the program headers.
  70. .. option:: --raw-relr
  71. Do not decode relocations in RELR relocation sections when displaying them.
  72. .. option:: --relocations, --relocs, -r
  73. Display the relocation entries in the file.
  74. .. option:: --sections, --section-headers, -S
  75. Display all sections.
  76. .. option:: --section-data
  77. When used with :option:`--sections`, display section data for each section
  78. shown. This option has no effect for GNU style output.
  79. .. option:: --section-mapping
  80. Display the section to segment mapping.
  81. .. option:: --section-relocations
  82. When used with :option:`--sections`, display relocations for each section
  83. shown. This option has no effect for GNU style output.
  84. .. option:: --section-symbols
  85. When used with :option:`--sections`, display symbols for each section shown.
  86. This option has no effect for GNU style output.
  87. .. option:: --stackmap
  88. Display contents of the stackmap section.
  89. .. option:: --stack-sizes
  90. Display the contents of the stack sizes section(s), i.e. pairs of function
  91. names and the size of their stack frames. Currently only implemented for GNU
  92. style output.
  93. .. option:: --string-dump=<section[,section,...]>, -p
  94. Display the specified section(s) as a list of strings. ``section`` may be a
  95. section index or section name.
  96. .. option:: --symbols, --syms, -s
  97. Display the symbol table.
  98. .. option:: --unwind, -u
  99. Display unwind information.
  100. .. option:: --version
  101. Display the version of the :program:`llvm-readelf` executable.
  102. .. option:: --version-info, -V
  103. Display version sections.
  104. .. option:: @<FILE>
  105. Read command-line options from response file `<FILE>`.
  106. EXIT STATUS
  107. -----------
  108. :program:`llvm-readelf` returns 0 under normal operation. It returns a non-zero
  109. exit code if there were any errors.
  110. SEE ALSO
  111. --------
  112. :manpage:`llvm-nm(1)`, :manpage:`llvm-objdump(1)`, :manpage:`llvm-readobj(1)`