1LLVM-OBJDUMP(1)                      LLVM                      LLVM-OBJDUMP(1)
2
3
4

NAME

6       llvm-objdump - LLVM's object file dumper
7

SYNOPSIS

9       llvm-objdump [commands] [options] [filenames...]
10

DESCRIPTION

12       The  llvm-objdump utility prints the contents of object files and final
13       linked images named on the command line. If no file name is  specified,
14       llvm-objdump  will  attempt  to read from a.out. If - is used as a file
15       name, llvm-objdump will process a file on its standard input stream.
16

COMMANDS

18       At least one of the following commands are required, and some  commands
19       can be combined with other commands:
20
21       -a, --archive-headers
22              Display the information contained within an archive's headers.
23
24       -d, --disassemble
25              Disassemble all text sections found in the input files.
26
27       -D, --disassemble-all
28              Disassemble all sections found in the input files.
29
30       --disassemble-symbols=<symbol1[,symbol2,...]>
31              Disassemble  only  the specified symbols. Takes demangled symbol
32              names when --demangle is specified, otherwise takes mangled sym‐
33              bol names.  Implies --disassemble.
34
35       --dwarf=<value>
36              Dump  the  specified  DWARF debug sections. The supported values
37              are:
38
39              frames - .debug_frame
40
41       -f, --file-headers
42              Display the contents of the overall file header.
43
44       --fault-map-section
45              Display the content of the fault map section.
46
47       -h, --headers, --section-headers
48              Display summaries of the headers for each section.
49
50       --help Display usage information and exit. Does not  stack  with  other
51              commands.
52
53       -p, --private-headers
54              Display format-specific file headers.
55
56       -r, --reloc
57              Display the relocation entries in the file.
58
59       -R, --dynamic-reloc
60              Display the dynamic relocation entries in the file.
61
62       --raw-clang-ast
63              Dump the raw binary contents of the clang AST section.
64
65       -s, --full-contents
66              Display the contents of each section.
67
68       -t, --syms
69              Display the symbol table.
70
71       -T, --dynamic-syms
72              Display the contents of the dynamic symbol table.
73
74       -u, --unwind-info
75              Display the unwind info of the input(s).
76
77       --version
78              Display  the  version  of  the llvm-objdump executable. Does not
79              stack with other commands.
80
81       -x, --all-headers
82              Display all available header information. Equivalent to specify‐
83              ing    --archive-headers,   --file-headers,   --private-headers,
84              --reloc, --section-headers, and --syms.
85

OPTIONS

87       llvm-objdump supports the following options:
88
89       --adjust-vma=<offset>
90              Increase the displayed address in disassembly or section  header
91              printing by the specified offset.
92
93       --arch-name=<string>
94              Specify   the   target   architecture  when  disassembling.  Use
95              --version for a list of available targets.
96
97       -C, --demangle
98              Demangle symbol names in the output.
99
100       --debug-vars=<format>
101              Print the locations (in registers  or  memory)  of  source-level
102              variables alongside disassembly. format may be unicode or ascii,
103              defaulting to unicode if omitted.
104
105       --debug-vars-indent=<width>
106              Distance to indent the source-level variable  display,  relative
107              to the start of the disassembly. Defaults to 40 characters.
108
109       -j, --section=<section1[,section2,...]>
110              Perform  commands on the specified sections only. For Mach-O use
111              segment,section to specify the section name.
112
113       -l, --line-numbers
114              When  disassembling,  display  source  line   numbers.   Implies
115              --disassemble.
116
117       -M, --disassembler-options=<opt1[,opt2,...]>
118              Pass  target-specific  disassembler options. Currently supported
119              for ARM targets only. Available options  are  reg-names-std  and
120              reg-names-raw.
121
122       --mcpu=<cpu-name>
123              Target  a specific CPU type for disassembly. Specify --mcpu=help
124              to display available CPUs.
125
126       --mattr=<a1,+a2,-a3,...>
127              Enable/disable target-specific attributes.  Specify  --mcpu=help
128              to display the available attributes.
129
130       --no-leading-addr
131              When disassembling, do not print leading addresses.
132
133       --no-show-raw-insn
134              When  disassembling, do not print the raw bytes of each instruc‐
135              tion.
136
137       --print-imm-hex
138              Use hex format when printing  immediate  values  in  disassembly
139              output.
140
141       -S, --source
142              When  disassembling,  display source interleaved with the disas‐
143              sembly. Implies --disassemble.
144
145       --show-lma
146              Display the LMA column when dumping  ELF  section  headers.  De‐
147              faults to off unless any section has different VMA and LMAs.
148
149       --start-address=<address>
150              When disassembling, only disassemble from the specified address.
151
152              When  printing  relocations, only print the relocations patching
153              offsets from at least address.
154
155              When printing symbols, only print symbols with  a  value  of  at
156              least address.
157
158       --stop-address=<address>
159              When  disassembling,  only  disassemble up to, but not including
160              the specified address.
161
162              When printing relocations, only print the  relocations  patching
163              offsets up to address.
164
165              When printing symbols, only print symbols with a value up to ad‐
166              dress.
167
168       --triple=<string>
169              Target triple to disassemble for, see  --version  for  available
170              targets.
171
172       -w, --wide
173              Ignored for compatibility with GNU objdump.
174
175       --x86-asm-syntax=<style>
176              When  used with --disassemble, choose style of code to emit from
177              X86 backend. Supported values are:
178
179                 att    AT&T-style assembly
180
181                 intel  Intel-style assembly
182
183              The default disassembly style is att.
184
185       -z, --disassemble-zeroes
186              Do not skip blocks of zeroes when disassembling.
187
188       @<FILE>
189              Read  command-line  options  and  commands  from  response  file
190              <FILE>.
191

MACH-O ONLY OPTIONS AND COMMANDS

193       --arch=<architecture>
194              Specify  the  architecture  to  disassemble.  see  --version for
195              available architectures.
196
197       --archive-member-offsets
198              Print the offset to each archive member for Mach-O archives (re‐
199              quires --archive-headers).
200
201       --bind Display binding info
202
203       --cfg  Create a CFG for every symbol in the object file and write it to
204              a graphviz file.
205
206       --data-in-code
207              Display the data in code table.
208
209       --dis-symname=<name>
210              Disassemble just the specified symbol's instructions.
211
212       --dylibs-used
213              Display the shared libraries used for linked files.
214
215       --dsym=<string>
216              Use .dSYM file for debug info.
217
218       --dylib-id
219              Display the shared library's ID for dylib files.
220
221       --exports-trie
222              Display exported symbols.
223
224       -g     Print line information from debug info if available.
225
226       --full-leading-addr
227              Print the full leading address when disassembling.
228
229       --indirect-symbols
230              Display the indirect symbol table.
231
232       --info-plist
233              Display the info plist section as strings.
234
235       --lazy-bind
236              Display lazy binding info.
237
238       --link-opt-hints
239              Display the linker optimization hints.
240
241       -m, --macho
242              Use Mach-O specific object file parser. Commands and  other  op‐
243              tions may behave differently when used with --macho.
244
245       --no-leading-headers
246              Do not print any leading headers.
247
248       --no-symbolic-operands
249              Do not print symbolic operands when disassembling.
250
251       --non-verbose
252              Display the information for Mach-O objects in non-verbose or nu‐
253              meric form.
254
255       --objc-meta-data
256              Display the Objective-C runtime meta data.
257
258       --private-header
259              Display only the first format specific file header.
260
261       --rebase
262              Display rebasing information.
263
264       --universal-headers
265              Display universal headers.
266
267       --weak-bind
268              Display weak binding information.
269

XCOFF ONLY OPTIONS AND COMMANDS

271       --symbol-description
272              Add symbol description to disassembly output.
273

BUGS

275       To report bugs, please visit <https://bugs.llvm.org/>.
276

SEE ALSO

278       llvm-nm(1), llvm-readelf(1), llvm-readobj(1)
279

AUTHOR

281       Maintained by the LLVM Team (https://llvm.org/).
282
284       2003-2023, LLVM Project
285
286
287
288
28911                                2023-07-20                   LLVM-OBJDUMP(1)
Impressum