llvm-readelf.rst 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  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:: --arm-attributes
  20. Display the ARM attributes section. Only applicable for ARM architectures.
  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. Specify the style to dump ELF information in. 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 dynamic symbols derived from the hash table.
  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 shown.
  78. .. option:: --section-mapping
  79. Display the section to segment mapping.
  80. .. option:: --section-relocations
  81. When used with :option:`--sections`, display relocations for each section shown.
  82. .. option:: --section-symbols
  83. When used with :option:`--sections`, display symbols for each section shown.
  84. .. option:: --stackmap
  85. Display contents of the stackmap section.
  86. .. option:: --string-dump=<section[,section,...]>, -p
  87. Display the specified section(s) as a list of strings. ``section`` may be a
  88. section index or section name.
  89. .. option:: --symbols, --syms, -s
  90. Display the symbol table.
  91. .. option:: --unwind, -u
  92. Display unwind information.
  93. .. option:: --version
  94. Display the version of this program.
  95. .. option:: --version-info, -V
  96. Display version sections.
  97. .. option:: @<FILE>
  98. Read command-line options from response file `<FILE>`.
  99. EXIT STATUS
  100. -----------
  101. :program:`llvm-readelf` returns 0 under normal operation. It returns a non-zero
  102. exit code if there were any errors.
  103. SEE ALSO
  104. --------
  105. :manpage:`llvm-nm(1)`, :manpage:`llvm-objdump(1)`, :manpage:`llvm-readobj(1)`