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 --needed-libs
96 Display the needed libraries.
97
98 --no-demangle
99 Do not display demangled symbol names in the output. On by de‐
100 fault.
101
102 --notes, -n
103 Display all notes.
104
105 --pretty-print
106 When used with --elf-output-style, JSON output will be formatted
107 in a more readable format.
108
109 --program-headers, --segments, -l
110 Display the program headers.
111
112 --raw-relr
113 Do not decode relocations in RELR relocation sections when dis‐
114 playing them.
115
116 --relocations, --relocs, -r
117 Display the relocation entries in the file.
118
119 --sections, --section-headers, -S
120 Display all sections.
121
122 --section-data
123 When used with --sections, display section data for each section
124 shown. This option has no effect for GNU style output.
125
126 --section-details, -t
127 Display all section details. Used as an alternative to
128 --sections.
129
130 --section-mapping
131 Display the section to segment mapping.
132
133 --section-relocations
134 When used with --sections, display relocations for each section
135 shown. This option has no effect for GNU style output.
136
137 --section-symbols
138 When used with --sections, display symbols for each section
139 shown. This option has no effect for GNU style output.
140
141 --stackmap
142 Display contents of the stackmap section.
143
144 --stack-sizes
145 Display the contents of the stack sizes section(s), i.e. pairs
146 of function names and the size of their stack frames. Currently
147 only implemented for GNU style output.
148
149 --string-dump=<section[,section,...]>, -p
150 Display the specified section(s) as a list of strings. section
151 may be a section index or section name.
152
153 --symbols, --syms, -s
154 Display the symbol table. Also display the dynamic symbol table
155 when using GNU output style for ELF.
156
157 --unwind, -u
158 Display unwind information.
159
160 --version
161 Display the version of the llvm-readelf executable.
162
163 --version-info, -V
164 Display version sections.
165
166 --wide, -W
167 Ignored for GNU readelf compatibility. The output is already
168 similar to when using -W with GNU readelf.
169
170 @<FILE>
171 Read command-line options from response file <FILE>.
172
174 llvm-readelf returns 0 under normal operation. It returns a non-zero
175 exit code if there were any errors.
176
178 llvm-nm(1), llvm-objdump(1), llvm-readobj(1)
179
181 Maintained by the LLVM Team (https://llvm.org/).
182
184 2003-2022, LLVM Project
185
186
187
188
18914 2022-09-12 LLVM-READELF(1)