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 Equivalent to specifying all the main display options.
20
21 --addrsig
22 Display the address-significance table.
23
24 --arch-specific, -A
25 Display architecture-specific information, e.g. the ARM at‐
26 tributes section on ARM.
27
28 --color
29 Use colors in the output for warnings and errors.
30
31 --demangle, -C
32 Display demangled symbol names in the output.
33
34 --dyn-relocations
35 Display the dynamic relocation entries.
36
37 --dyn-symbols, --dyn-syms
38 Display the dynamic symbol table.
39
40 --dynamic-table, --dynamic, -d
41 Display the dynamic table.
42
43 --cg-profile
44 Display the callgraph profile section.
45
46 --elf-hash-histogram, --histogram, -I
47 Display a bucket list histogram for dynamic symbol hash tables.
48
49 --elf-linker-options
50 Display the linker options section.
51
52 --elf-output-style=<value>
53 Format ELF information in the specified style. Valid options are
54 LLVM and GNU. LLVM output is an expanded and structured format,
55 whilst GNU (the default) output mimics the equivalent GNU read‐
56 elf output.
57
58 --elf-section-groups, --section-groups, -g
59 Display section groups.
60
61 --expand-relocs
62 When used with --relocations, display each relocation in an ex‐
63 panded multi-line format.
64
65 --file-headers, -h
66 Display file headers.
67
68 --gnu-hash-table
69 Display the GNU hash table for dynamic symbols.
70
71 --hash-symbols
72 Display the expanded hash table with dynamic symbol data.
73
74 --hash-table
75 Display the hash table for dynamic symbols.
76
77 --headers, -e
78 Equivalent to setting: --file-headers, --program-headers, and
79 --sections.
80
81 --help Display a summary of command line options.
82
83 --help-list
84 Display an uncategorized summary of command line options.
85
86 --hex-dump=<section[,section,...]>, -x
87 Display the specified section(s) as hexadecimal bytes. section
88 may be a section index or section name.
89
90 --needed-libs
91 Display the needed libraries.
92
93 --notes, -n
94 Display all notes.
95
96 --program-headers, --segments, -l
97 Display the program headers.
98
99 --raw-relr
100 Do not decode relocations in RELR relocation sections when dis‐
101 playing them.
102
103 --relocations, --relocs, -r
104 Display the relocation entries in the file.
105
106 --sections, --section-headers, -S
107 Display all sections.
108
109 --section-data
110 When used with --sections, display section data for each section
111 shown. This option has no effect for GNU style output.
112
113 --section-details, -t
114 Display all section details. Used as an alternative to
115 --sections.
116
117 --section-mapping
118 Display the section to segment mapping.
119
120 --section-relocations
121 When used with --sections, display relocations for each section
122 shown. This option has no effect for GNU style output.
123
124 --section-symbols
125 When used with --sections, display symbols for each section
126 shown. This option has no effect for GNU style output.
127
128 --stackmap
129 Display contents of the stackmap section.
130
131 --stack-sizes
132 Display the contents of the stack sizes section(s), i.e. pairs
133 of function names and the size of their stack frames. Currently
134 only implemented for GNU style output.
135
136 --string-dump=<section[,section,...]>, -p
137 Display the specified section(s) as a list of strings. section
138 may be a section index or section name.
139
140 --symbols, --syms, -s
141 Display the symbol table.
142
143 --unwind, -u
144 Display unwind information.
145
146 --version
147 Display the version of the llvm-readelf executable.
148
149 --version-info, -V
150 Display version sections.
151
152 @<FILE>
153 Read command-line options from response file <FILE>.
154
156 llvm-readelf returns 0 under normal operation. It returns a non-zero
157 exit code if there were any errors.
158
160 llvm-nm(1), llvm-objdump(1), llvm-readobj(1)
161
163 Maintained by the LLVM Team (https://llvm.org/).
164
166 2003-2021, LLVM Project
167
168
169
170
17112 2021-07-22 LLVM-READELF(1)