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 relevant
20 to the file format.
21
22 --addrsig
23 Display the address-significance table.
24
25 --arch-specific, -A
26 Display architecture-specific information, e.g. the ARM at‐
27 tributes section on ARM.
28
29 --bb-addr-map
30 Display the contents of the basic block address map section(s),
31 which contain the address of each function, along with the rela‐
32 tive offset of each basic block.
33
34 --demangle, -C
35 Display demangled symbol names in the output.
36
37 --dyn-relocations
38 Display the dynamic relocation entries.
39
40 --dyn-symbols, --dyn-syms
41 Display the dynamic symbol table.
42
43 --dynamic-table, --dynamic, -d
44 Display the dynamic table.
45
46 --cg-profile
47 Display the callgraph profile section.
48
49 --histogram, -I
50 Display a bucket list histogram for dynamic symbol hash tables.
51
52 --elf-linker-options
53 Display the linker options section.
54
55 --elf-output-style=<value>
56 Format ELF information in the specified style. Valid options are
57 LLVM and GNU. LLVM output is an expanded and structured format,
58 whilst GNU (the default) output mimics the equivalent GNU read‐
59 elf output.
60
61 --section-groups, -g
62 Display section groups.
63
64 --expand-relocs
65 When used with --relocations, display each relocation in an ex‐
66 panded multi-line format.
67
68 --file-header, -h
69 Display file headers.
70
71 --gnu-hash-table
72 Display the GNU hash table for dynamic symbols.
73
74 --hash-symbols
75 Display the expanded hash table with dynamic symbol data.
76
77 --hash-table
78 Display the hash table for dynamic symbols.
79
80 --headers, -e
81 Equivalent to setting: --file-header, --program-headers, and
82 --sections.
83
84 --help Display a 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-2022, LLVM Project
167
168
169
170
17113 2022-07-21 LLVM-READELF(1)