1LLVM-READELF(1) LLVM LLVM-READELF(1)
2
3
4
6 llvm-readelf - GNU-style LLVM Object Reader
7
9 llvm-readelf [options] [input...]
10
12 The llvm-readelf tool displays low-level format-specific information
13 about one or more object files.
14
15 If input is "-", llvm-readelf reads from standard input. Otherwise, it
16 will read from the specified filenames.
17
19 --all, -a
20 Equivalent to specifying all the main display options relevant
21 to the file format.
22
23 --addrsig
24 Display the address-significance table.
25
26 --arch-specific, -A
27 Display architecture-specific information, e.g. the ARM at‐
28 tributes section on ARM.
29
30 --bb-addr-map
31 Display the contents of the basic block address map section(s),
32 which contain the address of each function, along with the rela‐
33 tive offset of each basic block.
34
35 --demangle, -C
36 Display demangled symbol names in the output.
37
38 --dependent-libraries
39 Display the dependent libraries section.
40
41 --dyn-relocations
42 Display the dynamic relocation entries.
43
44 --dyn-symbols, --dyn-syms
45 Display the dynamic symbol table.
46
47 --dynamic-table, --dynamic, -d
48 Display the dynamic table.
49
50 --cg-profile
51 Display the callgraph profile section.
52
53 --histogram, -I
54 Display a bucket list histogram for dynamic symbol hash tables.
55
56 --elf-linker-options
57 Display the linker options section.
58
59 --elf-output-style=<value>
60 Format ELF information in the specified style. Valid options are
61 LLVM, GNU, and JSON. LLVM output is an expanded and structured
62 format. GNU (the default) output mimics the equivalent GNU
63 readelf output. JSON is JSON formatted output intended for ma‐
64 chine consumption.
65
66 --section-groups, -g
67 Display section groups.
68
69 --expand-relocs
70 When used with --relocations, display each relocation in an ex‐
71 panded multi-line format.
72
73 --file-header, -h
74 Display file headers.
75
76 --gnu-hash-table
77 Display the GNU hash table for dynamic symbols.
78
79 --hash-symbols
80 Display the expanded hash table with dynamic symbol data.
81
82 --hash-table
83 Display the hash table for dynamic symbols.
84
85 --headers, -e
86 Equivalent to setting: --file-header, --program-headers, and
87 --sections.
88
89 --help Display a summary of command line options.
90
91 --hex-dump=<section[,section,...]>, -x
92 Display the specified section(s) as hexadecimal bytes. section
93 may be a section index or section name.
94
95 --memtag
96 Display information about memory tagging present in the binary.
97 This includes various memtag-specific dynamic entries, decoded
98 global descriptor sections, and decoded Android-specific ELF
99 notes.
100
101 --needed-libs
102 Display the needed libraries.
103
104 --no-demangle
105 Do not display demangled symbol names in the output. On by de‐
106 fault.
107
108 --notes, -n
109 Display all notes.
110
111 --pretty-print
112 When used with --elf-output-style, JSON output will be formatted
113 in a more readable format.
114
115 --program-headers, --segments, -l
116 Display the program headers.
117
118 --raw-relr
119 Do not decode relocations in RELR relocation sections when dis‐
120 playing them.
121
122 --relocations, --relocs, -r
123 Display the relocation entries in the file.
124
125 --sections, --section-headers, -S
126 Display all sections.
127
128 --section-data
129 When used with --sections, display section data for each section
130 shown. This option has no effect for GNU style output.
131
132 --section-details, -t
133 Display all section details. Used as an alternative to
134 --sections.
135
136 --section-mapping
137 Display the section to segment mapping.
138
139 --section-relocations
140 When used with --sections, display relocations for each section
141 shown. This option has no effect for GNU style output.
142
143 --section-symbols
144 When used with --sections, display symbols for each section
145 shown. This option has no effect for GNU style output.
146
147 --stackmap
148 Display contents of the stackmap section.
149
150 --stack-sizes
151 Display the contents of the stack sizes section(s), i.e. pairs
152 of function names and the size of their stack frames. Currently
153 only implemented for GNU style output.
154
155 --string-dump=<section[,section,...]>, -p
156 Display the specified section(s) as a list of strings. section
157 may be a section index or section name.
158
159 --symbols, --syms, -s
160 Display the symbol table. Also display the dynamic symbol table
161 when using GNU output style for ELF.
162
163 --unwind, -u
164 Display unwind information.
165
166 --version
167 Display the version of the llvm-readelf executable.
168
169 --version-info, -V
170 Display version sections.
171
172 --wide, -W
173 Ignored for GNU readelf compatibility. The output is already
174 similar to when using -W with GNU readelf.
175
176 @<FILE>
177 Read command-line options from response file <FILE>.
178
180 llvm-readelf returns 0 under normal operation. It returns a non-zero
181 exit code if there were any errors.
182
184 llvm-nm(1), llvm-objdump(1), llvm-readobj(1)
185
187 Maintained by the LLVM Team (https://llvm.org/).
188
190 2003-2023, LLVM Project
191
192
193
194
19517 2023-11-28 LLVM-READELF(1)