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-functions=<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       -u, --unwind-info
72              Display the unwind info of the input(s).
73
74       --version
75              Display  the  version of this program. Does not stack with other
76              commands.
77
78       -x, --all-headers
79              Display all available header information. Equivalent to specify‐
80              ing    --archive-headers,   --file-headers,   --private-headers,
81              --reloc, --section-headers, and --syms.
82

OPTIONS

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

MACH-O ONLY OPTIONS AND COMMANDS

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

BUGS

259       To report bugs, please visit <http://llvm.org/bugs/>.
260

SEE ALSO

262       llvm-nm(1), llvm-readelf(1), llvm-readobj(1)
263

AUTHOR

265       Maintained by the LLVM Team (https://llvm.org/).
266
268       2003-2021, LLVM Project
269
270
271
272
2739                                 2021-05-31                   LLVM-OBJDUMP(1)
Impressum