x86_64-linux-gnu-objdump.1 46 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310
  1. .\" Automatically generated by Pod::Man 4.11 (Pod::Simple 3.35)
  2. .\"
  3. .\" Standard preamble:
  4. .\" ========================================================================
  5. .de Sp \" Vertical space (when we can't use .PP)
  6. .if t .sp .5v
  7. .if n .sp
  8. ..
  9. .de Vb \" Begin verbatim text
  10. .ft CW
  11. .nf
  12. .ne \\$1
  13. ..
  14. .de Ve \" End verbatim text
  15. .ft R
  16. .fi
  17. ..
  18. .\" Set up some character translations and predefined strings. \*(-- will
  19. .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
  20. .\" double quote, and \*(R" will give a right double quote. \*(C+ will
  21. .\" give a nicer C++. Capital omega is used to do unbreakable dashes and
  22. .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
  23. .\" nothing in troff, for use with C<>.
  24. .tr \(*W-
  25. .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
  26. .ie n \{\
  27. . ds -- \(*W-
  28. . ds PI pi
  29. . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
  30. . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
  31. . ds L" ""
  32. . ds R" ""
  33. . ds C` ""
  34. . ds C' ""
  35. 'br\}
  36. .el\{\
  37. . ds -- \|\(em\|
  38. . ds PI \(*p
  39. . ds L" ``
  40. . ds R" ''
  41. . ds C`
  42. . ds C'
  43. 'br\}
  44. .\"
  45. .\" Escape single quotes in literal strings from groff's Unicode transform.
  46. .ie \n(.g .ds Aq \(aq
  47. .el .ds Aq '
  48. .\"
  49. .\" If the F register is >0, we'll generate index entries on stderr for
  50. .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
  51. .\" entries marked with X<> in POD. Of course, you'll have to process the
  52. .\" output yourself in some meaningful fashion.
  53. .\"
  54. .\" Avoid warning from groff about undefined register 'F'.
  55. .de IX
  56. ..
  57. .nr rF 0
  58. .if \n(.g .if rF .nr rF 1
  59. .if (\n(rF:(\n(.g==0)) \{\
  60. . if \nF \{\
  61. . de IX
  62. . tm Index:\\$1\t\\n%\t"\\$2"
  63. ..
  64. . if !\nF==2 \{\
  65. . nr % 0
  66. . nr F 2
  67. . \}
  68. . \}
  69. .\}
  70. .rr rF
  71. .\"
  72. .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
  73. .\" Fear. Run. Save yourself. No user-serviceable parts.
  74. . \" fudge factors for nroff and troff
  75. .if n \{\
  76. . ds #H 0
  77. . ds #V .8m
  78. . ds #F .3m
  79. . ds #[ \f1
  80. . ds #] \fP
  81. .\}
  82. .if t \{\
  83. . ds #H ((1u-(\\\\n(.fu%2u))*.13m)
  84. . ds #V .6m
  85. . ds #F 0
  86. . ds #[ \&
  87. . ds #] \&
  88. .\}
  89. . \" simple accents for nroff and troff
  90. .if n \{\
  91. . ds ' \&
  92. . ds ` \&
  93. . ds ^ \&
  94. . ds , \&
  95. . ds ~ ~
  96. . ds /
  97. .\}
  98. .if t \{\
  99. . ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
  100. . ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
  101. . ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
  102. . ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
  103. . ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
  104. . ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
  105. .\}
  106. . \" troff and (daisy-wheel) nroff accents
  107. .ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
  108. .ds 8 \h'\*(#H'\(*b\h'-\*(#H'
  109. .ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
  110. .ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
  111. .ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
  112. .ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
  113. .ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
  114. .ds ae a\h'-(\w'a'u*4/10)'e
  115. .ds Ae A\h'-(\w'A'u*4/10)'E
  116. . \" corrections for vroff
  117. .if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
  118. .if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
  119. . \" for low resolution devices (crt and lpr)
  120. .if \n(.H>23 .if \n(.V>19 \
  121. \{\
  122. . ds : e
  123. . ds 8 ss
  124. . ds o a
  125. . ds d- d\h'-1'\(ga
  126. . ds D- D\h'-1'\(hy
  127. . ds th \o'bp'
  128. . ds Th \o'LP'
  129. . ds ae ae
  130. . ds Ae AE
  131. .\}
  132. .rm #[ #] #H #V #F C
  133. .\" ========================================================================
  134. .\"
  135. .IX Title "OBJDUMP 1"
  136. .TH OBJDUMP 1 "2020-09-14" "binutils-2.34" "GNU Development Tools"
  137. .\" For nroff, turn off justification. Always turn off hyphenation; it makes
  138. .\" way too many mistakes in technical documents.
  139. .if n .ad l
  140. .nh
  141. .SH "NAME"
  142. objdump \- display information from object files
  143. .SH "SYNOPSIS"
  144. .IX Header "SYNOPSIS"
  145. objdump [\fB\-a\fR|\fB\-\-archive\-headers\fR]
  146. [\fB\-b\fR \fIbfdname\fR|\fB\-\-target=\fR\fIbfdname\fR]
  147. [\fB\-C\fR|\fB\-\-demangle\fR[=\fIstyle\fR] ]
  148. [\fB\-d\fR|\fB\-\-disassemble\fR[=\fIsymbol\fR]]
  149. [\fB\-D\fR|\fB\-\-disassemble\-all\fR]
  150. [\fB\-z\fR|\fB\-\-disassemble\-zeroes\fR]
  151. [\fB\-EB\fR|\fB\-EL\fR|\fB\-\-endian=\fR{big | little }]
  152. [\fB\-f\fR|\fB\-\-file\-headers\fR]
  153. [\fB\-F\fR|\fB\-\-file\-offsets\fR]
  154. [\fB\-\-file\-start\-context\fR]
  155. [\fB\-g\fR|\fB\-\-debugging\fR]
  156. [\fB\-e\fR|\fB\-\-debugging\-tags\fR]
  157. [\fB\-h\fR|\fB\-\-section\-headers\fR|\fB\-\-headers\fR]
  158. [\fB\-i\fR|\fB\-\-info\fR]
  159. [\fB\-j\fR \fIsection\fR|\fB\-\-section=\fR\fIsection\fR]
  160. [\fB\-l\fR|\fB\-\-line\-numbers\fR]
  161. [\fB\-S\fR|\fB\-\-source\fR]
  162. [\fB\-\-source\-comment\fR[=\fItext\fR]]
  163. [\fB\-m\fR \fImachine\fR|\fB\-\-architecture=\fR\fImachine\fR]
  164. [\fB\-M\fR \fIoptions\fR|\fB\-\-disassembler\-options=\fR\fIoptions\fR]
  165. [\fB\-p\fR|\fB\-\-private\-headers\fR]
  166. [\fB\-P\fR \fIoptions\fR|\fB\-\-private=\fR\fIoptions\fR]
  167. [\fB\-r\fR|\fB\-\-reloc\fR]
  168. [\fB\-R\fR|\fB\-\-dynamic\-reloc\fR]
  169. [\fB\-s\fR|\fB\-\-full\-contents\fR]
  170. [\fB\-W[lLiaprmfFsoRtUuTgAckK]\fR|
  171. \fB\-\-dwarf\fR[=rawline,=decodedline,=info,=abbrev,=pubnames,=aranges,=macro,=frames,=frames\-interp,=str,=loc,=Ranges,=pubtypes,=trace_info,=trace_abbrev,=trace_aranges,=gdb_index,=addr,=cu_index,=links,=follow\-links]]
  172. [\fB\-\-ctf=\fR\fIsection\fR]
  173. [\fB\-G\fR|\fB\-\-stabs\fR]
  174. [\fB\-t\fR|\fB\-\-syms\fR]
  175. [\fB\-T\fR|\fB\-\-dynamic\-syms\fR]
  176. [\fB\-x\fR|\fB\-\-all\-headers\fR]
  177. [\fB\-w\fR|\fB\-\-wide\fR]
  178. [\fB\-\-start\-address=\fR\fIaddress\fR]
  179. [\fB\-\-stop\-address=\fR\fIaddress\fR]
  180. [\fB\-\-prefix\-addresses\fR]
  181. [\fB\-\-[no\-]show\-raw\-insn\fR]
  182. [\fB\-\-adjust\-vma=\fR\fIoffset\fR]
  183. [\fB\-\-dwarf\-depth=\fR\fIn\fR]
  184. [\fB\-\-dwarf\-start=\fR\fIn\fR]
  185. [\fB\-\-ctf\-parent=\fR\fIsection\fR]
  186. [\fB\-\-no\-recurse\-limit\fR|\fB\-\-recurse\-limit\fR]
  187. [\fB\-\-special\-syms\fR]
  188. [\fB\-\-prefix=\fR\fIprefix\fR]
  189. [\fB\-\-prefix\-strip=\fR\fIlevel\fR]
  190. [\fB\-\-insn\-width=\fR\fIwidth\fR]
  191. [\fB\-\-visualize\-jumps[=color|=extended\-color|=off]\fR
  192. [\fB\-V\fR|\fB\-\-version\fR]
  193. [\fB\-H\fR|\fB\-\-help\fR]
  194. \fIobjfile\fR...
  195. .SH "DESCRIPTION"
  196. .IX Header "DESCRIPTION"
  197. \&\fBobjdump\fR displays information about one or more object files.
  198. The options control what particular information to display. This
  199. information is mostly useful to programmers who are working on the
  200. compilation tools, as opposed to programmers who just want their
  201. program to compile and work.
  202. .PP
  203. \&\fIobjfile\fR... are the object files to be examined. When you
  204. specify archives, \fBobjdump\fR shows information on each of the member
  205. object files.
  206. .SH "OPTIONS"
  207. .IX Header "OPTIONS"
  208. The long and short forms of options, shown here as alternatives, are
  209. equivalent. At least one option from the list
  210. \&\fB\-a,\-d,\-D,\-e,\-f,\-g,\-G,\-h,\-H,\-p,\-P,\-r,\-R,\-s,\-S,\-t,\-T,\-V,\-x\fR must be given.
  211. .IP "\fB\-a\fR" 4
  212. .IX Item "-a"
  213. .PD 0
  214. .IP "\fB\-\-archive\-header\fR" 4
  215. .IX Item "--archive-header"
  216. .PD
  217. If any of the \fIobjfile\fR files are archives, display the archive
  218. header information (in a format similar to \fBls \-l\fR). Besides the
  219. information you could list with \fBar tv\fR, \fBobjdump \-a\fR shows
  220. the object file format of each archive member.
  221. .IP "\fB\-\-adjust\-vma=\fR\fIoffset\fR" 4
  222. .IX Item "--adjust-vma=offset"
  223. When dumping information, first add \fIoffset\fR to all the section
  224. addresses. This is useful if the section addresses do not correspond to
  225. the symbol table, which can happen when putting sections at particular
  226. addresses when using a format which can not represent section addresses,
  227. such as a.out.
  228. .IP "\fB\-b\fR \fIbfdname\fR" 4
  229. .IX Item "-b bfdname"
  230. .PD 0
  231. .IP "\fB\-\-target=\fR\fIbfdname\fR" 4
  232. .IX Item "--target=bfdname"
  233. .PD
  234. Specify that the object-code format for the object files is
  235. \&\fIbfdname\fR. This option may not be necessary; \fIobjdump\fR can
  236. automatically recognize many formats.
  237. .Sp
  238. For example,
  239. .Sp
  240. .Vb 1
  241. \& objdump \-b oasys \-m vax \-h fu.o
  242. .Ve
  243. .Sp
  244. displays summary information from the section headers (\fB\-h\fR) of
  245. \&\fIfu.o\fR, which is explicitly identified (\fB\-m\fR) as a \s-1VAX\s0 object
  246. file in the format produced by Oasys compilers. You can list the
  247. formats available with the \fB\-i\fR option.
  248. .IP "\fB\-C\fR" 4
  249. .IX Item "-C"
  250. .PD 0
  251. .IP "\fB\-\-demangle[=\fR\fIstyle\fR\fB]\fR" 4
  252. .IX Item "--demangle[=style]"
  253. .PD
  254. Decode (\fIdemangle\fR) low-level symbol names into user-level names.
  255. Besides removing any initial underscore prepended by the system, this
  256. makes \*(C+ function names readable. Different compilers have different
  257. mangling styles. The optional demangling style argument can be used to
  258. choose an appropriate demangling style for your compiler.
  259. .IP "\fB\-\-recurse\-limit\fR" 4
  260. .IX Item "--recurse-limit"
  261. .PD 0
  262. .IP "\fB\-\-no\-recurse\-limit\fR" 4
  263. .IX Item "--no-recurse-limit"
  264. .IP "\fB\-\-recursion\-limit\fR" 4
  265. .IX Item "--recursion-limit"
  266. .IP "\fB\-\-no\-recursion\-limit\fR" 4
  267. .IX Item "--no-recursion-limit"
  268. .PD
  269. Enables or disables a limit on the amount of recursion performed
  270. whilst demangling strings. Since the name mangling formats allow for
  271. an inifinite level of recursion it is possible to create strings whose
  272. decoding will exhaust the amount of stack space available on the host
  273. machine, triggering a memory fault. The limit tries to prevent this
  274. from happening by restricting recursion to 2048 levels of nesting.
  275. .Sp
  276. The default is for this limit to be enabled, but disabling it may be
  277. necessary in order to demangle truly complicated names. Note however
  278. that if the recursion limit is disabled then stack exhaustion is
  279. possible and any bug reports about such an event will be rejected.
  280. .IP "\fB\-g\fR" 4
  281. .IX Item "-g"
  282. .PD 0
  283. .IP "\fB\-\-debugging\fR" 4
  284. .IX Item "--debugging"
  285. .PD
  286. Display debugging information. This attempts to parse \s-1STABS\s0
  287. debugging format information stored in the file and print it out using
  288. a C like syntax. If no \s-1STABS\s0 debuging was found this option
  289. falls back on the \fB\-W\fR option to print any \s-1DWARF\s0 information in
  290. the file.
  291. .IP "\fB\-e\fR" 4
  292. .IX Item "-e"
  293. .PD 0
  294. .IP "\fB\-\-debugging\-tags\fR" 4
  295. .IX Item "--debugging-tags"
  296. .PD
  297. Like \fB\-g\fR, but the information is generated in a format compatible
  298. with ctags tool.
  299. .IP "\fB\-d\fR" 4
  300. .IX Item "-d"
  301. .PD 0
  302. .IP "\fB\-\-disassemble\fR" 4
  303. .IX Item "--disassemble"
  304. .IP "\fB\-\-disassemble=\fR\fIsymbol\fR" 4
  305. .IX Item "--disassemble=symbol"
  306. .PD
  307. Display the assembler mnemonics for the machine instructions from the
  308. input file. This option only disassembles those sections which are
  309. expected to contain instructions. If the optional \fIsymbol\fR
  310. argument is given, then display the assembler mnemonics starting at
  311. \&\fIsymbol\fR. If \fIsymbol\fR is a function name then disassembly
  312. will stop at the end of the function, otherwise it will stop when the
  313. next symbol is encountered. If there are no matches for \fIsymbol\fR
  314. then nothing will be displayed.
  315. .Sp
  316. Note if the \fB\-\-dwarf=follow\-links\fR option has also been enabled
  317. then any symbol tables in linked debug info files will be read in and
  318. used when disassembling.
  319. .IP "\fB\-D\fR" 4
  320. .IX Item "-D"
  321. .PD 0
  322. .IP "\fB\-\-disassemble\-all\fR" 4
  323. .IX Item "--disassemble-all"
  324. .PD
  325. Like \fB\-d\fR, but disassemble the contents of all sections, not just
  326. those expected to contain instructions.
  327. .Sp
  328. This option also has a subtle effect on the disassembly of
  329. instructions in code sections. When option \fB\-d\fR is in effect
  330. objdump will assume that any symbols present in a code section occur
  331. on the boundary between instructions and it will refuse to disassemble
  332. across such a boundary. When option \fB\-D\fR is in effect however
  333. this assumption is supressed. This means that it is possible for the
  334. output of \fB\-d\fR and \fB\-D\fR to differ if, for example, data
  335. is stored in code sections.
  336. .Sp
  337. If the target is an \s-1ARM\s0 architecture this switch also has the effect
  338. of forcing the disassembler to decode pieces of data found in code
  339. sections as if they were instructions.
  340. .Sp
  341. Note if the \fB\-\-dwarf=follow\-links\fR option has also been enabled
  342. then any symbol tables in linked debug info files will be read in and
  343. used when disassembling.
  344. .IP "\fB\-\-prefix\-addresses\fR" 4
  345. .IX Item "--prefix-addresses"
  346. When disassembling, print the complete address on each line. This is
  347. the older disassembly format.
  348. .IP "\fB\-EB\fR" 4
  349. .IX Item "-EB"
  350. .PD 0
  351. .IP "\fB\-EL\fR" 4
  352. .IX Item "-EL"
  353. .IP "\fB\-\-endian={big|little}\fR" 4
  354. .IX Item "--endian={big|little}"
  355. .PD
  356. Specify the endianness of the object files. This only affects
  357. disassembly. This can be useful when disassembling a file format which
  358. does not describe endianness information, such as S\-records.
  359. .IP "\fB\-f\fR" 4
  360. .IX Item "-f"
  361. .PD 0
  362. .IP "\fB\-\-file\-headers\fR" 4
  363. .IX Item "--file-headers"
  364. .PD
  365. Display summary information from the overall header of
  366. each of the \fIobjfile\fR files.
  367. .IP "\fB\-F\fR" 4
  368. .IX Item "-F"
  369. .PD 0
  370. .IP "\fB\-\-file\-offsets\fR" 4
  371. .IX Item "--file-offsets"
  372. .PD
  373. When disassembling sections, whenever a symbol is displayed, also
  374. display the file offset of the region of data that is about to be
  375. dumped. If zeroes are being skipped, then when disassembly resumes,
  376. tell the user how many zeroes were skipped and the file offset of the
  377. location from where the disassembly resumes. When dumping sections,
  378. display the file offset of the location from where the dump starts.
  379. .IP "\fB\-\-file\-start\-context\fR" 4
  380. .IX Item "--file-start-context"
  381. Specify that when displaying interlisted source code/disassembly
  382. (assumes \fB\-S\fR) from a file that has not yet been displayed, extend the
  383. context to the start of the file.
  384. .IP "\fB\-h\fR" 4
  385. .IX Item "-h"
  386. .PD 0
  387. .IP "\fB\-\-section\-headers\fR" 4
  388. .IX Item "--section-headers"
  389. .IP "\fB\-\-headers\fR" 4
  390. .IX Item "--headers"
  391. .PD
  392. Display summary information from the section headers of the
  393. object file.
  394. .Sp
  395. File segments may be relocated to nonstandard addresses, for example by
  396. using the \fB\-Ttext\fR, \fB\-Tdata\fR, or \fB\-Tbss\fR options to
  397. \&\fBld\fR. However, some object file formats, such as a.out, do not
  398. store the starting address of the file segments. In those situations,
  399. although \fBld\fR relocates the sections correctly, using \fBobjdump
  400. \&\-h\fR to list the file section headers cannot show the correct addresses.
  401. Instead, it shows the usual addresses, which are implicit for the
  402. target.
  403. .Sp
  404. Note, in some cases it is possible for a section to have both the
  405. \&\s-1READONLY\s0 and the \s-1NOREAD\s0 attributes set. In such cases the \s-1NOREAD\s0
  406. attribute takes precedence, but \fBobjdump\fR will report both
  407. since the exact setting of the flag bits might be important.
  408. .IP "\fB\-H\fR" 4
  409. .IX Item "-H"
  410. .PD 0
  411. .IP "\fB\-\-help\fR" 4
  412. .IX Item "--help"
  413. .PD
  414. Print a summary of the options to \fBobjdump\fR and exit.
  415. .IP "\fB\-i\fR" 4
  416. .IX Item "-i"
  417. .PD 0
  418. .IP "\fB\-\-info\fR" 4
  419. .IX Item "--info"
  420. .PD
  421. Display a list showing all architectures and object formats available
  422. for specification with \fB\-b\fR or \fB\-m\fR.
  423. .IP "\fB\-j\fR \fIname\fR" 4
  424. .IX Item "-j name"
  425. .PD 0
  426. .IP "\fB\-\-section=\fR\fIname\fR" 4
  427. .IX Item "--section=name"
  428. .PD
  429. Display information only for section \fIname\fR.
  430. .IP "\fB\-l\fR" 4
  431. .IX Item "-l"
  432. .PD 0
  433. .IP "\fB\-\-line\-numbers\fR" 4
  434. .IX Item "--line-numbers"
  435. .PD
  436. Label the display (using debugging information) with the filename and
  437. source line numbers corresponding to the object code or relocs shown.
  438. Only useful with \fB\-d\fR, \fB\-D\fR, or \fB\-r\fR.
  439. .IP "\fB\-m\fR \fImachine\fR" 4
  440. .IX Item "-m machine"
  441. .PD 0
  442. .IP "\fB\-\-architecture=\fR\fImachine\fR" 4
  443. .IX Item "--architecture=machine"
  444. .PD
  445. Specify the architecture to use when disassembling object files. This
  446. can be useful when disassembling object files which do not describe
  447. architecture information, such as S\-records. You can list the available
  448. architectures with the \fB\-i\fR option.
  449. .Sp
  450. If the target is an \s-1ARM\s0 architecture then this switch has an
  451. additional effect. It restricts the disassembly to only those
  452. instructions supported by the architecture specified by \fImachine\fR.
  453. If it is necessary to use this switch because the input file does not
  454. contain any architecture information, but it is also desired to
  455. disassemble all the instructions use \fB\-marm\fR.
  456. .IP "\fB\-M\fR \fIoptions\fR" 4
  457. .IX Item "-M options"
  458. .PD 0
  459. .IP "\fB\-\-disassembler\-options=\fR\fIoptions\fR" 4
  460. .IX Item "--disassembler-options=options"
  461. .PD
  462. Pass target specific information to the disassembler. Only supported on
  463. some targets. If it is necessary to specify more than one
  464. disassembler option then multiple \fB\-M\fR options can be used or
  465. can be placed together into a comma separated list.
  466. .Sp
  467. For \s-1ARC,\s0 \fBdsp\fR controls the printing of \s-1DSP\s0 instructions,
  468. \&\fBspfp\fR selects the printing of \s-1FPX\s0 single precision \s-1FP\s0
  469. instructions, \fBdpfp\fR selects the printing of \s-1FPX\s0 double
  470. precision \s-1FP\s0 instructions, \fBquarkse_em\fR selects the printing of
  471. special QuarkSE-EM instructions, \fBfpuda\fR selects the printing
  472. of double precision assist instructions, \fBfpus\fR selects the
  473. printing of \s-1FPU\s0 single precision \s-1FP\s0 instructions, while \fBfpud\fR
  474. selects the printing of \s-1FPU\s0 double precision \s-1FP\s0 instructions.
  475. Additionally, one can choose to have all the immediates printed in
  476. hexadecimal using \fBhex\fR. By default, the short immediates are
  477. printed using the decimal representation, while the long immediate
  478. values are printed as hexadecimal.
  479. .Sp
  480. \&\fBcpu=...\fR allows to enforce a particular \s-1ISA\s0 when disassembling
  481. instructions, overriding the \fB\-m\fR value or whatever is in the \s-1ELF\s0 file.
  482. This might be useful to select \s-1ARC EM\s0 or \s-1HS ISA,\s0 because architecture is same
  483. for those and disassembler relies on private \s-1ELF\s0 header data to decide if code
  484. is for \s-1EM\s0 or \s-1HS.\s0 This option might be specified multiple times \- only the
  485. latest value will be used. Valid values are same as for the assembler
  486. \&\fB\-mcpu=...\fR option.
  487. .Sp
  488. If the target is an \s-1ARM\s0 architecture then this switch can be used to
  489. select which register name set is used during disassembler. Specifying
  490. \&\fB\-M reg-names-std\fR (the default) will select the register names as
  491. used in \s-1ARM\s0's instruction set documentation, but with register 13 called
  492. \&'sp', register 14 called 'lr' and register 15 called 'pc'. Specifying
  493. \&\fB\-M reg-names-apcs\fR will select the name set used by the \s-1ARM\s0
  494. Procedure Call Standard, whilst specifying \fB\-M reg-names-raw\fR will
  495. just use \fBr\fR followed by the register number.
  496. .Sp
  497. There are also two variants on the \s-1APCS\s0 register naming scheme enabled
  498. by \fB\-M reg-names-atpcs\fR and \fB\-M reg-names-special-atpcs\fR which
  499. use the ARM/Thumb Procedure Call Standard naming conventions. (Either
  500. with the normal register names or the special register names).
  501. .Sp
  502. This option can also be used for \s-1ARM\s0 architectures to force the
  503. disassembler to interpret all instructions as Thumb instructions by
  504. using the switch \fB\-\-disassembler\-options=force\-thumb\fR. This can be
  505. useful when attempting to disassemble thumb code produced by other
  506. compilers.
  507. .Sp
  508. For AArch64 targets this switch can be used to set whether instructions are
  509. disassembled as the most general instruction using the \fB\-M no-aliases\fR
  510. option or whether instruction notes should be generated as comments in the
  511. disasssembly using \fB\-M notes\fR.
  512. .Sp
  513. For the x86, some of the options duplicate functions of the \fB\-m\fR
  514. switch, but allow finer grained control. Multiple selections from the
  515. following may be specified as a comma separated string.
  516. .RS 4
  517. .ie n .IP """x86\-64""" 4
  518. .el .IP "\f(CWx86\-64\fR" 4
  519. .IX Item "x86-64"
  520. .PD 0
  521. .ie n .IP """i386""" 4
  522. .el .IP "\f(CWi386\fR" 4
  523. .IX Item "i386"
  524. .ie n .IP """i8086""" 4
  525. .el .IP "\f(CWi8086\fR" 4
  526. .IX Item "i8086"
  527. .PD
  528. Select disassembly for the given architecture.
  529. .ie n .IP """intel""" 4
  530. .el .IP "\f(CWintel\fR" 4
  531. .IX Item "intel"
  532. .PD 0
  533. .ie n .IP """att""" 4
  534. .el .IP "\f(CWatt\fR" 4
  535. .IX Item "att"
  536. .PD
  537. Select between intel syntax mode and \s-1AT&T\s0 syntax mode.
  538. .ie n .IP """amd64""" 4
  539. .el .IP "\f(CWamd64\fR" 4
  540. .IX Item "amd64"
  541. .PD 0
  542. .ie n .IP """intel64""" 4
  543. .el .IP "\f(CWintel64\fR" 4
  544. .IX Item "intel64"
  545. .PD
  546. Select between \s-1AMD64 ISA\s0 and Intel64 \s-1ISA.\s0
  547. .ie n .IP """intel\-mnemonic""" 4
  548. .el .IP "\f(CWintel\-mnemonic\fR" 4
  549. .IX Item "intel-mnemonic"
  550. .PD 0
  551. .ie n .IP """att\-mnemonic""" 4
  552. .el .IP "\f(CWatt\-mnemonic\fR" 4
  553. .IX Item "att-mnemonic"
  554. .PD
  555. Select between intel mnemonic mode and \s-1AT&T\s0 mnemonic mode.
  556. Note: \f(CW\*(C`intel\-mnemonic\*(C'\fR implies \f(CW\*(C`intel\*(C'\fR and
  557. \&\f(CW\*(C`att\-mnemonic\*(C'\fR implies \f(CW\*(C`att\*(C'\fR.
  558. .ie n .IP """addr64""" 4
  559. .el .IP "\f(CWaddr64\fR" 4
  560. .IX Item "addr64"
  561. .PD 0
  562. .ie n .IP """addr32""" 4
  563. .el .IP "\f(CWaddr32\fR" 4
  564. .IX Item "addr32"
  565. .ie n .IP """addr16""" 4
  566. .el .IP "\f(CWaddr16\fR" 4
  567. .IX Item "addr16"
  568. .ie n .IP """data32""" 4
  569. .el .IP "\f(CWdata32\fR" 4
  570. .IX Item "data32"
  571. .ie n .IP """data16""" 4
  572. .el .IP "\f(CWdata16\fR" 4
  573. .IX Item "data16"
  574. .PD
  575. Specify the default address size and operand size. These five options
  576. will be overridden if \f(CW\*(C`x86\-64\*(C'\fR, \f(CW\*(C`i386\*(C'\fR or \f(CW\*(C`i8086\*(C'\fR
  577. appear later in the option string.
  578. .ie n .IP """suffix""" 4
  579. .el .IP "\f(CWsuffix\fR" 4
  580. .IX Item "suffix"
  581. When in \s-1AT&T\s0 mode, instructs the disassembler to print a mnemonic
  582. suffix even when the suffix could be inferred by the operands.
  583. .RE
  584. .RS 4
  585. .Sp
  586. For PowerPC, the \fB\-M\fR argument \fBraw\fR selects
  587. disasssembly of hardware insns rather than aliases. For example, you
  588. will see \f(CW\*(C`rlwinm\*(C'\fR rather than \f(CW\*(C`clrlwi\*(C'\fR, and \f(CW\*(C`addi\*(C'\fR
  589. rather than \f(CW\*(C`li\*(C'\fR. All of the \fB\-m\fR arguments for
  590. \&\fBgas\fR that select a \s-1CPU\s0 are supported. These are:
  591. \&\fB403\fR, \fB405\fR, \fB440\fR, \fB464\fR, \fB476\fR,
  592. \&\fB601\fR, \fB603\fR, \fB604\fR, \fB620\fR, \fB7400\fR,
  593. \&\fB7410\fR, \fB7450\fR, \fB7455\fR, \fB750cl\fR,
  594. \&\fB821\fR, \fB850\fR, \fB860\fR, \fBa2\fR, \fBbooke\fR,
  595. \&\fBbooke32\fR, \fBcell\fR, \fBcom\fR, \fBe200z4\fR,
  596. \&\fBe300\fR, \fBe500\fR, \fBe500mc\fR, \fBe500mc64\fR,
  597. \&\fBe500x2\fR, \fBe5500\fR, \fBe6500\fR, \fBefs\fR,
  598. \&\fBpower4\fR, \fBpower5\fR, \fBpower6\fR, \fBpower7\fR,
  599. \&\fBpower8\fR, \fBpower9\fR, \fBppc\fR, \fBppc32\fR,
  600. \&\fBppc64\fR, \fBppc64bridge\fR, \fBppcps\fR, \fBpwr\fR,
  601. \&\fBpwr2\fR, \fBpwr4\fR, \fBpwr5\fR, \fBpwr5x\fR,
  602. \&\fBpwr6\fR, \fBpwr7\fR, \fBpwr8\fR, \fBpwr9\fR,
  603. \&\fBpwrx\fR, \fBtitan\fR, and \fBvle\fR.
  604. \&\fB32\fR and \fB64\fR modify the default or a prior \s-1CPU\s0
  605. selection, disabling and enabling 64\-bit insns respectively. In
  606. addition, \fBaltivec\fR, \fBany\fR, \fBhtm\fR, \fBvsx\fR,
  607. and \fBspe\fR add capabilities to a previous \fIor later\fR \s-1CPU\s0
  608. selection. \fBany\fR will disassemble any opcode known to
  609. binutils, but in cases where an opcode has two different meanings or
  610. different arguments, you may not see the disassembly you expect.
  611. If you disassemble without giving a \s-1CPU\s0 selection, a default will be
  612. chosen from information gleaned by \s-1BFD\s0 from the object files headers,
  613. but the result again may not be as you expect.
  614. .Sp
  615. For \s-1MIPS,\s0 this option controls the printing of instruction mnemonic
  616. names and register names in disassembled instructions. Multiple
  617. selections from the following may be specified as a comma separated
  618. string, and invalid options are ignored:
  619. .ie n .IP """no\-aliases""" 4
  620. .el .IP "\f(CWno\-aliases\fR" 4
  621. .IX Item "no-aliases"
  622. Print the 'raw' instruction mnemonic instead of some pseudo
  623. instruction mnemonic. I.e., print 'daddu' or 'or' instead of 'move',
  624. \&'sll' instead of 'nop', etc.
  625. .ie n .IP """msa""" 4
  626. .el .IP "\f(CWmsa\fR" 4
  627. .IX Item "msa"
  628. Disassemble \s-1MSA\s0 instructions.
  629. .ie n .IP """virt""" 4
  630. .el .IP "\f(CWvirt\fR" 4
  631. .IX Item "virt"
  632. Disassemble the virtualization \s-1ASE\s0 instructions.
  633. .ie n .IP """xpa""" 4
  634. .el .IP "\f(CWxpa\fR" 4
  635. .IX Item "xpa"
  636. Disassemble the eXtended Physical Address (\s-1XPA\s0) \s-1ASE\s0 instructions.
  637. .ie n .IP """gpr\-names=\fIABI\fP""" 4
  638. .el .IP "\f(CWgpr\-names=\f(CIABI\f(CW\fR" 4
  639. .IX Item "gpr-names=ABI"
  640. Print \s-1GPR\s0 (general-purpose register) names as appropriate
  641. for the specified \s-1ABI.\s0 By default, \s-1GPR\s0 names are selected according to
  642. the \s-1ABI\s0 of the binary being disassembled.
  643. .ie n .IP """fpr\-names=\fIABI\fP""" 4
  644. .el .IP "\f(CWfpr\-names=\f(CIABI\f(CW\fR" 4
  645. .IX Item "fpr-names=ABI"
  646. Print \s-1FPR\s0 (floating-point register) names as
  647. appropriate for the specified \s-1ABI.\s0 By default, \s-1FPR\s0 numbers are printed
  648. rather than names.
  649. .ie n .IP """cp0\-names=\fIARCH\fP""" 4
  650. .el .IP "\f(CWcp0\-names=\f(CIARCH\f(CW\fR" 4
  651. .IX Item "cp0-names=ARCH"
  652. Print \s-1CP0\s0 (system control coprocessor; coprocessor 0) register names
  653. as appropriate for the \s-1CPU\s0 or architecture specified by
  654. \&\fI\s-1ARCH\s0\fR. By default, \s-1CP0\s0 register names are selected according to
  655. the architecture and \s-1CPU\s0 of the binary being disassembled.
  656. .ie n .IP """hwr\-names=\fIARCH\fP""" 4
  657. .el .IP "\f(CWhwr\-names=\f(CIARCH\f(CW\fR" 4
  658. .IX Item "hwr-names=ARCH"
  659. Print \s-1HWR\s0 (hardware register, used by the \f(CW\*(C`rdhwr\*(C'\fR instruction) names
  660. as appropriate for the \s-1CPU\s0 or architecture specified by
  661. \&\fI\s-1ARCH\s0\fR. By default, \s-1HWR\s0 names are selected according to
  662. the architecture and \s-1CPU\s0 of the binary being disassembled.
  663. .ie n .IP """reg\-names=\fIABI\fP""" 4
  664. .el .IP "\f(CWreg\-names=\f(CIABI\f(CW\fR" 4
  665. .IX Item "reg-names=ABI"
  666. Print \s-1GPR\s0 and \s-1FPR\s0 names as appropriate for the selected \s-1ABI.\s0
  667. .ie n .IP """reg\-names=\fIARCH\fP""" 4
  668. .el .IP "\f(CWreg\-names=\f(CIARCH\f(CW\fR" 4
  669. .IX Item "reg-names=ARCH"
  670. Print CPU-specific register names (\s-1CP0\s0 register and \s-1HWR\s0 names)
  671. as appropriate for the selected \s-1CPU\s0 or architecture.
  672. .RE
  673. .RS 4
  674. .Sp
  675. For any of the options listed above, \fI\s-1ABI\s0\fR or
  676. \&\fI\s-1ARCH\s0\fR may be specified as \fBnumeric\fR to have numbers printed
  677. rather than names, for the selected types of registers.
  678. You can list the available values of \fI\s-1ABI\s0\fR and \fI\s-1ARCH\s0\fR using
  679. the \fB\-\-help\fR option.
  680. .Sp
  681. For \s-1VAX,\s0 you can specify function entry addresses with \fB\-M
  682. entry:0xf00ba\fR. You can use this multiple times to properly
  683. disassemble \s-1VAX\s0 binary files that don't contain symbol tables (like
  684. \&\s-1ROM\s0 dumps). In these cases, the function entry mask would otherwise
  685. be decoded as \s-1VAX\s0 instructions, which would probably lead the rest
  686. of the function being wrongly disassembled.
  687. .RE
  688. .IP "\fB\-p\fR" 4
  689. .IX Item "-p"
  690. .PD 0
  691. .IP "\fB\-\-private\-headers\fR" 4
  692. .IX Item "--private-headers"
  693. .PD
  694. Print information that is specific to the object file format. The exact
  695. information printed depends upon the object file format. For some
  696. object file formats, no additional information is printed.
  697. .IP "\fB\-P\fR \fIoptions\fR" 4
  698. .IX Item "-P options"
  699. .PD 0
  700. .IP "\fB\-\-private=\fR\fIoptions\fR" 4
  701. .IX Item "--private=options"
  702. .PD
  703. Print information that is specific to the object file format. The
  704. argument \fIoptions\fR is a comma separated list that depends on the
  705. format (the lists of options is displayed with the help).
  706. .Sp
  707. For \s-1XCOFF,\s0 the available options are:
  708. .RS 4
  709. .ie n .IP """header""" 4
  710. .el .IP "\f(CWheader\fR" 4
  711. .IX Item "header"
  712. .PD 0
  713. .ie n .IP """aout""" 4
  714. .el .IP "\f(CWaout\fR" 4
  715. .IX Item "aout"
  716. .ie n .IP """sections""" 4
  717. .el .IP "\f(CWsections\fR" 4
  718. .IX Item "sections"
  719. .ie n .IP """syms""" 4
  720. .el .IP "\f(CWsyms\fR" 4
  721. .IX Item "syms"
  722. .ie n .IP """relocs""" 4
  723. .el .IP "\f(CWrelocs\fR" 4
  724. .IX Item "relocs"
  725. .ie n .IP """lineno,""" 4
  726. .el .IP "\f(CWlineno,\fR" 4
  727. .IX Item "lineno,"
  728. .ie n .IP """loader""" 4
  729. .el .IP "\f(CWloader\fR" 4
  730. .IX Item "loader"
  731. .ie n .IP """except""" 4
  732. .el .IP "\f(CWexcept\fR" 4
  733. .IX Item "except"
  734. .ie n .IP """typchk""" 4
  735. .el .IP "\f(CWtypchk\fR" 4
  736. .IX Item "typchk"
  737. .ie n .IP """traceback""" 4
  738. .el .IP "\f(CWtraceback\fR" 4
  739. .IX Item "traceback"
  740. .ie n .IP """toc""" 4
  741. .el .IP "\f(CWtoc\fR" 4
  742. .IX Item "toc"
  743. .ie n .IP """ldinfo""" 4
  744. .el .IP "\f(CWldinfo\fR" 4
  745. .IX Item "ldinfo"
  746. .RE
  747. .RS 4
  748. .PD
  749. .Sp
  750. Not all object formats support this option. In particular the \s-1ELF\s0
  751. format does not use it.
  752. .RE
  753. .IP "\fB\-r\fR" 4
  754. .IX Item "-r"
  755. .PD 0
  756. .IP "\fB\-\-reloc\fR" 4
  757. .IX Item "--reloc"
  758. .PD
  759. Print the relocation entries of the file. If used with \fB\-d\fR or
  760. \&\fB\-D\fR, the relocations are printed interspersed with the
  761. disassembly.
  762. .IP "\fB\-R\fR" 4
  763. .IX Item "-R"
  764. .PD 0
  765. .IP "\fB\-\-dynamic\-reloc\fR" 4
  766. .IX Item "--dynamic-reloc"
  767. .PD
  768. Print the dynamic relocation entries of the file. This is only
  769. meaningful for dynamic objects, such as certain types of shared
  770. libraries. As for \fB\-r\fR, if used with \fB\-d\fR or
  771. \&\fB\-D\fR, the relocations are printed interspersed with the
  772. disassembly.
  773. .IP "\fB\-s\fR" 4
  774. .IX Item "-s"
  775. .PD 0
  776. .IP "\fB\-\-full\-contents\fR" 4
  777. .IX Item "--full-contents"
  778. .PD
  779. Display the full contents of any sections requested. By default all
  780. non-empty sections are displayed.
  781. .IP "\fB\-S\fR" 4
  782. .IX Item "-S"
  783. .PD 0
  784. .IP "\fB\-\-source\fR" 4
  785. .IX Item "--source"
  786. .PD
  787. Display source code intermixed with disassembly, if possible. Implies
  788. \&\fB\-d\fR.
  789. .IP "\fB\-\-source\-comment[=\fR\fItxt\fR\fB]\fR" 4
  790. .IX Item "--source-comment[=txt]"
  791. Like the \fB\-S\fR option, but all source code lines are displayed
  792. with a prefix of \fItxt\fR. Typically \fItxt\fR will be a comment
  793. string which can be used to distinguish the assembler code from the
  794. source code. If \fItxt\fR is not provided then a default string of
  795. \&\fI\*(L"# \*(R"\fR (hash followed by a space), will be used.
  796. .IP "\fB\-\-prefix=\fR\fIprefix\fR" 4
  797. .IX Item "--prefix=prefix"
  798. Specify \fIprefix\fR to add to the absolute paths when used with
  799. \&\fB\-S\fR.
  800. .IP "\fB\-\-prefix\-strip=\fR\fIlevel\fR" 4
  801. .IX Item "--prefix-strip=level"
  802. Indicate how many initial directory names to strip off the hardwired
  803. absolute paths. It has no effect without \fB\-\-prefix=\fR\fIprefix\fR.
  804. .IP "\fB\-\-show\-raw\-insn\fR" 4
  805. .IX Item "--show-raw-insn"
  806. When disassembling instructions, print the instruction in hex as well as
  807. in symbolic form. This is the default except when
  808. \&\fB\-\-prefix\-addresses\fR is used.
  809. .IP "\fB\-\-no\-show\-raw\-insn\fR" 4
  810. .IX Item "--no-show-raw-insn"
  811. When disassembling instructions, do not print the instruction bytes.
  812. This is the default when \fB\-\-prefix\-addresses\fR is used.
  813. .IP "\fB\-\-insn\-width=\fR\fIwidth\fR" 4
  814. .IX Item "--insn-width=width"
  815. Display \fIwidth\fR bytes on a single line when disassembling
  816. instructions.
  817. .IP "\fB\-\-visualize\-jumps[=color|=extended\-color|=off]\fR" 4
  818. .IX Item "--visualize-jumps[=color|=extended-color|=off]"
  819. Visualize jumps that stay inside a function by drawing \s-1ASCII\s0 art between
  820. the start and target addresses. The optional \fB=color\fR argument
  821. adds color to the output using simple terminal colors. Alternatively
  822. the \fB=extended\-color\fR argument will add color using 8bit
  823. colors, but these might not work on all terminals.
  824. .Sp
  825. If it is necessary to disable the \fBvisualize-jumps\fR option
  826. after it has previously been enabled then use
  827. \&\fBvisualize\-jumps=off\fR.
  828. .IP "\fB\-W[lLiaprmfFsoRtUuTgAckK]\fR" 4
  829. .IX Item "-W[lLiaprmfFsoRtUuTgAckK]"
  830. .PD 0
  831. .IP "\fB\-\-dwarf[=rawline,=decodedline,=info,=abbrev,=pubnames,=aranges,=macro,=frames,=frames\-interp,=str,=loc,=Ranges,=pubtypes,=trace_info,=trace_abbrev,=trace_aranges,=gdb_index,=addr,=cu_index,=links,=follow\-links]\fR" 4
  832. .IX Item "--dwarf[=rawline,=decodedline,=info,=abbrev,=pubnames,=aranges,=macro,=frames,=frames-interp,=str,=loc,=Ranges,=pubtypes,=trace_info,=trace_abbrev,=trace_aranges,=gdb_index,=addr,=cu_index,=links,=follow-links]"
  833. .PD
  834. Displays the contents of the \s-1DWARF\s0 debug sections in the file, if any
  835. are present. Compressed debug sections are automatically decompressed
  836. (temporarily) before they are displayed. If one or more of the
  837. optional letters or words follows the switch then only those type(s)
  838. of data will be dumped. The letters and words refer to the following
  839. information:
  840. .RS 4
  841. .ie n .IP """a""" 4
  842. .el .IP "\f(CWa\fR" 4
  843. .IX Item "a"
  844. .PD 0
  845. .ie n .IP """=abbrev""" 4
  846. .el .IP "\f(CW=abbrev\fR" 4
  847. .IX Item "=abbrev"
  848. .PD
  849. Displays the contents of the \fB.debug_abbrev\fR section.
  850. .ie n .IP """A""" 4
  851. .el .IP "\f(CWA\fR" 4
  852. .IX Item "A"
  853. .PD 0
  854. .ie n .IP """=addr""" 4
  855. .el .IP "\f(CW=addr\fR" 4
  856. .IX Item "=addr"
  857. .PD
  858. Displays the contents of the \fB.debug_addr\fR section.
  859. .ie n .IP """c""" 4
  860. .el .IP "\f(CWc\fR" 4
  861. .IX Item "c"
  862. .PD 0
  863. .ie n .IP """=cu_index""" 4
  864. .el .IP "\f(CW=cu_index\fR" 4
  865. .IX Item "=cu_index"
  866. .PD
  867. Displays the contents of the \fB.debug_cu_index\fR and/or
  868. \&\fB.debug_tu_index\fR sections.
  869. .ie n .IP """f""" 4
  870. .el .IP "\f(CWf\fR" 4
  871. .IX Item "f"
  872. .PD 0
  873. .ie n .IP """=frames""" 4
  874. .el .IP "\f(CW=frames\fR" 4
  875. .IX Item "=frames"
  876. .PD
  877. Display the raw contents of a \fB.debug_frame\fR section.
  878. .ie n .IP """F""" 4
  879. .el .IP "\f(CWF\fR" 4
  880. .IX Item "F"
  881. .PD 0
  882. .ie n .IP """=frame\-interp""" 4
  883. .el .IP "\f(CW=frame\-interp\fR" 4
  884. .IX Item "=frame-interp"
  885. .PD
  886. Display the interpreted contents of a \fB.debug_frame\fR section.
  887. .ie n .IP """g""" 4
  888. .el .IP "\f(CWg\fR" 4
  889. .IX Item "g"
  890. .PD 0
  891. .ie n .IP """=gdb_index""" 4
  892. .el .IP "\f(CW=gdb_index\fR" 4
  893. .IX Item "=gdb_index"
  894. .PD
  895. Displays the contents of the \fB.gdb_index\fR and/or
  896. \&\fB.debug_names\fR sections.
  897. .ie n .IP """i""" 4
  898. .el .IP "\f(CWi\fR" 4
  899. .IX Item "i"
  900. .PD 0
  901. .ie n .IP """=info""" 4
  902. .el .IP "\f(CW=info\fR" 4
  903. .IX Item "=info"
  904. .PD
  905. Displays the contents of the \fB.debug_info\fR section. Note: the
  906. output from this option can also be restricted by the use of the
  907. \&\fB\-\-dwarf\-depth\fR and \fB\-\-dwarf\-start\fR options.
  908. .ie n .IP """k""" 4
  909. .el .IP "\f(CWk\fR" 4
  910. .IX Item "k"
  911. .PD 0
  912. .ie n .IP """=links""" 4
  913. .el .IP "\f(CW=links\fR" 4
  914. .IX Item "=links"
  915. .PD
  916. Displays the contents of the \fB.gnu_debuglink\fR and/or
  917. \&\fB.gnu_debugaltlink\fR sections. Also displays any links to
  918. separate dwarf object files (dwo), if they are specified by the
  919. DW_AT_GNU_dwo_name or DW_AT_dwo_name attributes in the
  920. \&\fB.debug_info\fR section.
  921. .ie n .IP """K""" 4
  922. .el .IP "\f(CWK\fR" 4
  923. .IX Item "K"
  924. .PD 0
  925. .ie n .IP """=follow\-links""" 4
  926. .el .IP "\f(CW=follow\-links\fR" 4
  927. .IX Item "=follow-links"
  928. .PD
  929. Display the contents of any selected debug sections that are found in
  930. linked, separate debug info file(s). This can result in multiple
  931. versions of the same debug section being displayed if it exists in
  932. more than one file.
  933. .Sp
  934. In addition, when displaying \s-1DWARF\s0 attributes, if a form is found that
  935. references the separate debug info file, then the referenced contents
  936. will also be displayed.
  937. .ie n .IP """l""" 4
  938. .el .IP "\f(CWl\fR" 4
  939. .IX Item "l"
  940. .PD 0
  941. .ie n .IP """=rawline""" 4
  942. .el .IP "\f(CW=rawline\fR" 4
  943. .IX Item "=rawline"
  944. .PD
  945. Displays the contents of the \fB.debug_line\fR section in a raw
  946. format.
  947. .ie n .IP """L""" 4
  948. .el .IP "\f(CWL\fR" 4
  949. .IX Item "L"
  950. .PD 0
  951. .ie n .IP """=decodedline""" 4
  952. .el .IP "\f(CW=decodedline\fR" 4
  953. .IX Item "=decodedline"
  954. .PD
  955. Displays the interpreted contents of the \fB.debug_line\fR section.
  956. .ie n .IP """m""" 4
  957. .el .IP "\f(CWm\fR" 4
  958. .IX Item "m"
  959. .PD 0
  960. .ie n .IP """=macro""" 4
  961. .el .IP "\f(CW=macro\fR" 4
  962. .IX Item "=macro"
  963. .PD
  964. Displays the contents of the \fB.debug_macro\fR and/or
  965. \&\fB.debug_macinfo\fR sections.
  966. .ie n .IP """o""" 4
  967. .el .IP "\f(CWo\fR" 4
  968. .IX Item "o"
  969. .PD 0
  970. .ie n .IP """=loc""" 4
  971. .el .IP "\f(CW=loc\fR" 4
  972. .IX Item "=loc"
  973. .PD
  974. Displays the contents of the \fB.debug_loc\fR and/or
  975. \&\fB.debug_loclists\fR sections.
  976. .ie n .IP """p""" 4
  977. .el .IP "\f(CWp\fR" 4
  978. .IX Item "p"
  979. .PD 0
  980. .ie n .IP """=pubnames""" 4
  981. .el .IP "\f(CW=pubnames\fR" 4
  982. .IX Item "=pubnames"
  983. .PD
  984. Displays the contents of the \fB.debug_pubnames\fR and/or
  985. \&\fB.debug_gnu_pubnames\fR sections.
  986. .ie n .IP """r""" 4
  987. .el .IP "\f(CWr\fR" 4
  988. .IX Item "r"
  989. .PD 0
  990. .ie n .IP """=aranges""" 4
  991. .el .IP "\f(CW=aranges\fR" 4
  992. .IX Item "=aranges"
  993. .PD
  994. Displays the contents of the \fB.debug_aranges\fR section.
  995. .ie n .IP """R""" 4
  996. .el .IP "\f(CWR\fR" 4
  997. .IX Item "R"
  998. .PD 0
  999. .ie n .IP """=Ranges""" 4
  1000. .el .IP "\f(CW=Ranges\fR" 4
  1001. .IX Item "=Ranges"
  1002. .PD
  1003. Displays the contents of the \fB.debug_ranges\fR and/or
  1004. \&\fB.debug_rnglists\fR sections.
  1005. .ie n .IP """s""" 4
  1006. .el .IP "\f(CWs\fR" 4
  1007. .IX Item "s"
  1008. .PD 0
  1009. .ie n .IP """=str""" 4
  1010. .el .IP "\f(CW=str\fR" 4
  1011. .IX Item "=str"
  1012. .PD
  1013. Displays the contents of the \fB.debug_str\fR, \fB.debug_line_str\fR
  1014. and/or \fB.debug_str_offsets\fR sections.
  1015. .ie n .IP """t""" 4
  1016. .el .IP "\f(CWt\fR" 4
  1017. .IX Item "t"
  1018. .PD 0
  1019. .ie n .IP """=pubtype""" 4
  1020. .el .IP "\f(CW=pubtype\fR" 4
  1021. .IX Item "=pubtype"
  1022. .PD
  1023. Displays the contents of the \fB.debug_pubtypes\fR and/or
  1024. \&\fB.debug_gnu_pubtypes\fR sections.
  1025. .ie n .IP """T""" 4
  1026. .el .IP "\f(CWT\fR" 4
  1027. .IX Item "T"
  1028. .PD 0
  1029. .ie n .IP """=trace_aranges""" 4
  1030. .el .IP "\f(CW=trace_aranges\fR" 4
  1031. .IX Item "=trace_aranges"
  1032. .PD
  1033. Displays the contents of the \fB.trace_aranges\fR section.
  1034. .ie n .IP """u""" 4
  1035. .el .IP "\f(CWu\fR" 4
  1036. .IX Item "u"
  1037. .PD 0
  1038. .ie n .IP """=trace_abbrev""" 4
  1039. .el .IP "\f(CW=trace_abbrev\fR" 4
  1040. .IX Item "=trace_abbrev"
  1041. .PD
  1042. Displays the contents of the \fB.trace_abbrev\fR section.
  1043. .ie n .IP """U""" 4
  1044. .el .IP "\f(CWU\fR" 4
  1045. .IX Item "U"
  1046. .PD 0
  1047. .ie n .IP """=trace_info""" 4
  1048. .el .IP "\f(CW=trace_info\fR" 4
  1049. .IX Item "=trace_info"
  1050. .PD
  1051. Displays the contents of the \fB.trace_info\fR section.
  1052. .RE
  1053. .RS 4
  1054. .Sp
  1055. Note: displaying the contents of \fB.debug_static_funcs\fR,
  1056. \&\fB.debug_static_vars\fR and \fBdebug_weaknames\fR sections is not
  1057. currently supported.
  1058. .RE
  1059. .IP "\fB\-\-dwarf\-depth=\fR\fIn\fR" 4
  1060. .IX Item "--dwarf-depth=n"
  1061. Limit the dump of the \f(CW\*(C`.debug_info\*(C'\fR section to \fIn\fR children.
  1062. This is only useful with \fB\-\-debug\-dump=info\fR. The default is
  1063. to print all DIEs; the special value 0 for \fIn\fR will also have this
  1064. effect.
  1065. .Sp
  1066. With a non-zero value for \fIn\fR, DIEs at or deeper than \fIn\fR
  1067. levels will not be printed. The range for \fIn\fR is zero-based.
  1068. .IP "\fB\-\-dwarf\-start=\fR\fIn\fR" 4
  1069. .IX Item "--dwarf-start=n"
  1070. Print only DIEs beginning with the \s-1DIE\s0 numbered \fIn\fR. This is only
  1071. useful with \fB\-\-debug\-dump=info\fR.
  1072. .Sp
  1073. If specified, this option will suppress printing of any header
  1074. information and all DIEs before the \s-1DIE\s0 numbered \fIn\fR. Only
  1075. siblings and children of the specified \s-1DIE\s0 will be printed.
  1076. .Sp
  1077. This can be used in conjunction with \fB\-\-dwarf\-depth\fR.
  1078. .IP "\fB\-\-dwarf\-check\fR" 4
  1079. .IX Item "--dwarf-check"
  1080. Enable additional checks for consistency of Dwarf information.
  1081. .IP "\fB\-\-ctf=\fR\fIsection\fR" 4
  1082. .IX Item "--ctf=section"
  1083. Display the contents of the specified \s-1CTF\s0 section. \s-1CTF\s0 sections themselves
  1084. contain many subsections, all of which are displayed in order.
  1085. .IP "\fB\-\-ctf\-parent=\fR\fIsection\fR" 4
  1086. .IX Item "--ctf-parent=section"
  1087. Specify the name of another section from which the \s-1CTF\s0 dictionary can inherit
  1088. types. (If none is specified, we assume the \s-1CTF\s0 dictionary inherits types
  1089. from the default-named member of the archive contained within this section.)
  1090. .IP "\fB\-G\fR" 4
  1091. .IX Item "-G"
  1092. .PD 0
  1093. .IP "\fB\-\-stabs\fR" 4
  1094. .IX Item "--stabs"
  1095. .PD
  1096. Display the full contents of any sections requested. Display the
  1097. contents of the .stab and .stab.index and .stab.excl sections from an
  1098. \&\s-1ELF\s0 file. This is only useful on systems (such as Solaris 2.0) in which
  1099. \&\f(CW\*(C`.stab\*(C'\fR debugging symbol-table entries are carried in an \s-1ELF\s0
  1100. section. In most other file formats, debugging symbol-table entries are
  1101. interleaved with linkage symbols, and are visible in the \fB\-\-syms\fR
  1102. output.
  1103. .IP "\fB\-\-start\-address=\fR\fIaddress\fR" 4
  1104. .IX Item "--start-address=address"
  1105. Start displaying data at the specified address. This affects the output
  1106. of the \fB\-d\fR, \fB\-r\fR and \fB\-s\fR options.
  1107. .IP "\fB\-\-stop\-address=\fR\fIaddress\fR" 4
  1108. .IX Item "--stop-address=address"
  1109. Stop displaying data at the specified address. This affects the output
  1110. of the \fB\-d\fR, \fB\-r\fR and \fB\-s\fR options.
  1111. .IP "\fB\-t\fR" 4
  1112. .IX Item "-t"
  1113. .PD 0
  1114. .IP "\fB\-\-syms\fR" 4
  1115. .IX Item "--syms"
  1116. .PD
  1117. Print the symbol table entries of the file.
  1118. This is similar to the information provided by the \fBnm\fR program,
  1119. although the display format is different. The format of the output
  1120. depends upon the format of the file being dumped, but there are two main
  1121. types. One looks like this:
  1122. .Sp
  1123. .Vb 2
  1124. \& [ 4](sec 3)(fl 0x00)(ty 0)(scl 3) (nx 1) 0x00000000 .bss
  1125. \& [ 6](sec 1)(fl 0x00)(ty 0)(scl 2) (nx 0) 0x00000000 fred
  1126. .Ve
  1127. .Sp
  1128. where the number inside the square brackets is the number of the entry
  1129. in the symbol table, the \fIsec\fR number is the section number, the
  1130. \&\fIfl\fR value are the symbol's flag bits, the \fIty\fR number is the
  1131. symbol's type, the \fIscl\fR number is the symbol's storage class and
  1132. the \fInx\fR value is the number of auxilary entries associated with
  1133. the symbol. The last two fields are the symbol's value and its name.
  1134. .Sp
  1135. The other common output format, usually seen with \s-1ELF\s0 based files,
  1136. looks like this:
  1137. .Sp
  1138. .Vb 2
  1139. \& 00000000 l d .bss 00000000 .bss
  1140. \& 00000000 g .text 00000000 fred
  1141. .Ve
  1142. .Sp
  1143. Here the first number is the symbol's value (sometimes refered to as
  1144. its address). The next field is actually a set of characters and
  1145. spaces indicating the flag bits that are set on the symbol. These
  1146. characters are described below. Next is the section with which the
  1147. symbol is associated or \fI*ABS*\fR if the section is absolute (ie
  1148. not connected with any section), or \fI*UND*\fR if the section is
  1149. referenced in the file being dumped, but not defined there.
  1150. .Sp
  1151. After the section name comes another field, a number, which for common
  1152. symbols is the alignment and for other symbol is the size. Finally
  1153. the symbol's name is displayed.
  1154. .Sp
  1155. The flag characters are divided into 7 groups as follows:
  1156. .RS 4
  1157. .ie n .IP """l""" 4
  1158. .el .IP "\f(CWl\fR" 4
  1159. .IX Item "l"
  1160. .PD 0
  1161. .ie n .IP """g""" 4
  1162. .el .IP "\f(CWg\fR" 4
  1163. .IX Item "g"
  1164. .ie n .IP """u""" 4
  1165. .el .IP "\f(CWu\fR" 4
  1166. .IX Item "u"
  1167. .ie n .IP """!""" 4
  1168. .el .IP "\f(CW!\fR" 4
  1169. .IX Item "!"
  1170. .PD
  1171. The symbol is a local (l), global (g), unique global (u), neither
  1172. global nor local (a space) or both global and local (!). A
  1173. symbol can be neither local or global for a variety of reasons, e.g.,
  1174. because it is used for debugging, but it is probably an indication of
  1175. a bug if it is ever both local and global. Unique global symbols are
  1176. a \s-1GNU\s0 extension to the standard set of \s-1ELF\s0 symbol bindings. For such
  1177. a symbol the dynamic linker will make sure that in the entire process
  1178. there is just one symbol with this name and type in use.
  1179. .ie n .IP """w""" 4
  1180. .el .IP "\f(CWw\fR" 4
  1181. .IX Item "w"
  1182. The symbol is weak (w) or strong (a space).
  1183. .ie n .IP """C""" 4
  1184. .el .IP "\f(CWC\fR" 4
  1185. .IX Item "C"
  1186. The symbol denotes a constructor (C) or an ordinary symbol (a space).
  1187. .ie n .IP """W""" 4
  1188. .el .IP "\f(CWW\fR" 4
  1189. .IX Item "W"
  1190. The symbol is a warning (W) or a normal symbol (a space). A warning
  1191. symbol's name is a message to be displayed if the symbol following the
  1192. warning symbol is ever referenced.
  1193. .ie n .IP """I""" 4
  1194. .el .IP "\f(CWI\fR" 4
  1195. .IX Item "I"
  1196. .PD 0
  1197. .ie n .IP """i""" 4
  1198. .el .IP "\f(CWi\fR" 4
  1199. .IX Item "i"
  1200. .PD
  1201. The symbol is an indirect reference to another symbol (I), a function
  1202. to be evaluated during reloc processing (i) or a normal symbol (a
  1203. space).
  1204. .ie n .IP """d""" 4
  1205. .el .IP "\f(CWd\fR" 4
  1206. .IX Item "d"
  1207. .PD 0
  1208. .ie n .IP """D""" 4
  1209. .el .IP "\f(CWD\fR" 4
  1210. .IX Item "D"
  1211. .PD
  1212. The symbol is a debugging symbol (d) or a dynamic symbol (D) or a
  1213. normal symbol (a space).
  1214. .ie n .IP """F""" 4
  1215. .el .IP "\f(CWF\fR" 4
  1216. .IX Item "F"
  1217. .PD 0
  1218. .ie n .IP """f""" 4
  1219. .el .IP "\f(CWf\fR" 4
  1220. .IX Item "f"
  1221. .ie n .IP """O""" 4
  1222. .el .IP "\f(CWO\fR" 4
  1223. .IX Item "O"
  1224. .PD
  1225. The symbol is the name of a function (F) or a file (f) or an object
  1226. (O) or just a normal symbol (a space).
  1227. .RE
  1228. .RS 4
  1229. .RE
  1230. .IP "\fB\-T\fR" 4
  1231. .IX Item "-T"
  1232. .PD 0
  1233. .IP "\fB\-\-dynamic\-syms\fR" 4
  1234. .IX Item "--dynamic-syms"
  1235. .PD
  1236. Print the dynamic symbol table entries of the file. This is only
  1237. meaningful for dynamic objects, such as certain types of shared
  1238. libraries. This is similar to the information provided by the \fBnm\fR
  1239. program when given the \fB\-D\fR (\fB\-\-dynamic\fR) option.
  1240. .Sp
  1241. The output format is similar to that produced by the \fB\-\-syms\fR
  1242. option, except that an extra field is inserted before the symbol's
  1243. name, giving the version information associated with the symbol.
  1244. If the version is the default version to be used when resolving
  1245. unversioned references to the symbol then it's displayed as is,
  1246. otherwise it's put into parentheses.
  1247. .IP "\fB\-\-special\-syms\fR" 4
  1248. .IX Item "--special-syms"
  1249. When displaying symbols include those which the target considers to be
  1250. special in some way and which would not normally be of interest to the
  1251. user.
  1252. .IP "\fB\-V\fR" 4
  1253. .IX Item "-V"
  1254. .PD 0
  1255. .IP "\fB\-\-version\fR" 4
  1256. .IX Item "--version"
  1257. .PD
  1258. Print the version number of \fBobjdump\fR and exit.
  1259. .IP "\fB\-x\fR" 4
  1260. .IX Item "-x"
  1261. .PD 0
  1262. .IP "\fB\-\-all\-headers\fR" 4
  1263. .IX Item "--all-headers"
  1264. .PD
  1265. Display all available header information, including the symbol table and
  1266. relocation entries. Using \fB\-x\fR is equivalent to specifying all of
  1267. \&\fB\-a \-f \-h \-p \-r \-t\fR.
  1268. .IP "\fB\-w\fR" 4
  1269. .IX Item "-w"
  1270. .PD 0
  1271. .IP "\fB\-\-wide\fR" 4
  1272. .IX Item "--wide"
  1273. .PD
  1274. Format some lines for output devices that have more than 80 columns.
  1275. Also do not truncate symbol names when they are displayed.
  1276. .IP "\fB\-z\fR" 4
  1277. .IX Item "-z"
  1278. .PD 0
  1279. .IP "\fB\-\-disassemble\-zeroes\fR" 4
  1280. .IX Item "--disassemble-zeroes"
  1281. .PD
  1282. Normally the disassembly output will skip blocks of zeroes. This
  1283. option directs the disassembler to disassemble those blocks, just like
  1284. any other data.
  1285. .IP "\fB@\fR\fIfile\fR" 4
  1286. .IX Item "@file"
  1287. Read command-line options from \fIfile\fR. The options read are
  1288. inserted in place of the original @\fIfile\fR option. If \fIfile\fR
  1289. does not exist, or cannot be read, then the option will be treated
  1290. literally, and not removed.
  1291. .Sp
  1292. Options in \fIfile\fR are separated by whitespace. A whitespace
  1293. character may be included in an option by surrounding the entire
  1294. option in either single or double quotes. Any character (including a
  1295. backslash) may be included by prefixing the character to be included
  1296. with a backslash. The \fIfile\fR may itself contain additional
  1297. @\fIfile\fR options; any such options will be processed recursively.
  1298. .SH "SEE ALSO"
  1299. .IX Header "SEE ALSO"
  1300. \&\fBnm\fR\|(1), \fBreadelf\fR\|(1), and the Info entries for \fIbinutils\fR.
  1301. .SH "COPYRIGHT"
  1302. .IX Header "COPYRIGHT"
  1303. Copyright (c) 1991\-2020 Free Software Foundation, Inc.
  1304. .PP
  1305. Permission is granted to copy, distribute and/or modify this document
  1306. under the terms of the \s-1GNU\s0 Free Documentation License, Version 1.3
  1307. or any later version published by the Free Software Foundation;
  1308. with no Invariant Sections, with no Front-Cover Texts, and with no
  1309. Back-Cover Texts. A copy of the license is included in the
  1310. section entitled \*(L"\s-1GNU\s0 Free Documentation License\*(R".