1 llvm-readelf - GNU-style LLVM Object Reader
2 ===========================================
4 .. program:: llvm-readelf
9 :program:`llvm-readelf` [*options*] [*input...*]
14 The :program:`llvm-readelf` tool displays low-level format-specific information
15 about one or more object files.
17 If ``input`` is "``-``", :program:`llvm-readelf` reads from standard
18 input. Otherwise, it will read from the specified ``filenames``.
25 Equivalent to specifying all the main display options relevant to the file
30 Display the address-significance table.
32 .. option:: --arch-specific, -A
34 Display architecture-specific information, e.g. the ARM attributes section on ARM.
36 .. option:: --bb-addr-map
38 Display the contents of the basic block address map section(s), which contain the
39 address of each function, along with the relative offset of each basic block.
41 .. option:: --demangle, -C
43 Display demangled symbol names in the output.
45 .. option:: --dyn-relocations
47 Display the dynamic relocation entries.
49 .. option:: --dyn-symbols, --dyn-syms
51 Display the dynamic symbol table.
53 .. option:: --dynamic-table, --dynamic, -d
55 Display the dynamic table.
57 .. option:: --cg-profile
59 Display the callgraph profile section.
61 .. option:: --histogram, -I
63 Display a bucket list histogram for dynamic symbol hash tables.
65 .. option:: --elf-linker-options
67 Display the linker options section.
69 .. option:: --elf-output-style=<value>
71 Format ELF information in the specified style. Valid options are ``LLVM`` and
72 ``GNU``. ``LLVM`` output is an expanded and structured format, whilst ``GNU``
73 (the default) output mimics the equivalent GNU :program:`readelf` output.
75 .. option:: --section-groups, -g
77 Display section groups.
79 .. option:: --expand-relocs
81 When used with :option:`--relocations`, display each relocation in an expanded
84 .. option:: --file-header, -h
88 .. option:: --gnu-hash-table
90 Display the GNU hash table for dynamic symbols.
92 .. option:: --hash-symbols
94 Display the expanded hash table with dynamic symbol data.
96 .. option:: --hash-table
98 Display the hash table for dynamic symbols.
100 .. option:: --headers, -e
102 Equivalent to setting: :option:`--file-header`, :option:`--program-headers`,
103 and :option:`--sections`.
107 Display a summary of command line options.
109 .. option:: --hex-dump=<section[,section,...]>, -x
111 Display the specified section(s) as hexadecimal bytes. ``section`` may be a
112 section index or section name.
114 .. option:: --needed-libs
116 Display the needed libraries.
118 .. option:: --notes, -n
122 .. option:: --program-headers, --segments, -l
124 Display the program headers.
126 .. option:: --raw-relr
128 Do not decode relocations in RELR relocation sections when displaying them.
130 .. option:: --relocations, --relocs, -r
132 Display the relocation entries in the file.
134 .. option:: --sections, --section-headers, -S
136 Display all sections.
138 .. option:: --section-data
140 When used with :option:`--sections`, display section data for each section
141 shown. This option has no effect for GNU style output.
143 .. option:: --section-details, -t
145 Display all section details. Used as an alternative to :option:`--sections`.
147 .. option:: --section-mapping
149 Display the section to segment mapping.
151 .. option:: --section-relocations
153 When used with :option:`--sections`, display relocations for each section
154 shown. This option has no effect for GNU style output.
156 .. option:: --section-symbols
158 When used with :option:`--sections`, display symbols for each section shown.
159 This option has no effect for GNU style output.
161 .. option:: --stackmap
163 Display contents of the stackmap section.
165 .. option:: --stack-sizes
167 Display the contents of the stack sizes section(s), i.e. pairs of function
168 names and the size of their stack frames. Currently only implemented for GNU
171 .. option:: --string-dump=<section[,section,...]>, -p
173 Display the specified section(s) as a list of strings. ``section`` may be a
174 section index or section name.
176 .. option:: --symbols, --syms, -s
178 Display the symbol table.
180 .. option:: --unwind, -u
182 Display unwind information.
184 .. option:: --version
186 Display the version of the :program:`llvm-readelf` executable.
188 .. option:: --version-info, -V
190 Display version sections.
194 Read command-line options from response file `<FILE>`.
199 :program:`llvm-readelf` returns 0 under normal operation. It returns a non-zero
200 exit code if there were any errors.
205 :manpage:`llvm-nm(1)`, :manpage:`llvm-objdump(1)`, :manpage:`llvm-readobj(1)`