aarch64-none-linux-gnu-objdump.1 47 KB

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