1 .\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.42)
4 .\" ========================================================================
5 .de Sp \" Vertical space (when we can't use .PP)
9 .de Vb \" Begin verbatim text
14 .de Ve \" End verbatim text
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<>.
25 .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
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
45 .\" Escape single quotes in literal strings from groff's Unicode transform.
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.
54 .\" Avoid warning from groff about undefined register 'F'.
58 .if \n(.g .if rF .nr rF 1
59 .if (\n(rF:(\n(.g==0)) \{\
62 . tm Index:\\$1\t\\n%\t"\\$2"
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
83 . ds #H ((1u-(\\\\n(.fu%2u))*.13m)
89 . \" simple accents for nroff and troff
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'
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 \
133 .\" ========================================================================
135 .IX Title "READELF 1"
136 .TH READELF 1 "2022-02-09" "binutils-2.38" "GNU Development Tools"
137 .\" For nroff, turn off justification. Always turn off hyphenation; it makes
138 .\" way too many mistakes in technical documents.
142 readelf \- display information about ELF files
144 .IX Header "SYNOPSIS"
145 readelf [\fB\-a\fR|\fB\-\-all\fR]
146 [\fB\-h\fR|\fB\-\-file\-header\fR]
147 [\fB\-l\fR|\fB\-\-program\-headers\fR|\fB\-\-segments\fR]
148 [\fB\-S\fR|\fB\-\-section\-headers\fR|\fB\-\-sections\fR]
149 [\fB\-g\fR|\fB\-\-section\-groups\fR]
150 [\fB\-t\fR|\fB\-\-section\-details\fR]
151 [\fB\-e\fR|\fB\-\-headers\fR]
152 [\fB\-s\fR|\fB\-\-syms\fR|\fB\-\-symbols\fR]
153 [\fB\-\-dyn\-syms\fR|\fB\-\-lto\-syms\fR]
154 [\fB\-\-sym\-base=[0|8|10|16]\fR]
155 [\fB\-\-demangle\fR\fI=style\fR|\fB\-\-no\-demangle\fR]
157 [\fB\-\-recurse\-limit\fR|\fB\-\-no\-recurse\-limit\fR]
158 [\fB\-U\fR \fImethod\fR|\fB\-\-unicode=\fR\fImethod\fR]
159 [\fB\-n\fR|\fB\-\-notes\fR]
160 [\fB\-r\fR|\fB\-\-relocs\fR]
161 [\fB\-u\fR|\fB\-\-unwind\fR]
162 [\fB\-d\fR|\fB\-\-dynamic\fR]
163 [\fB\-V\fR|\fB\-\-version\-info\fR]
164 [\fB\-A\fR|\fB\-\-arch\-specific\fR]
165 [\fB\-D\fR|\fB\-\-use\-dynamic\fR]
166 [\fB\-L\fR|\fB\-\-lint\fR|\fB\-\-enable\-checks\fR]
167 [\fB\-x\fR <number or name>|\fB\-\-hex\-dump=\fR<number or name>]
168 [\fB\-p\fR <number or name>|\fB\-\-string\-dump=\fR<number or name>]
169 [\fB\-R\fR <number or name>|\fB\-\-relocated\-dump=\fR<number or name>]
170 [\fB\-z\fR|\fB\-\-decompress\fR]
171 [\fB\-c\fR|\fB\-\-archive\-index\fR]
172 [\fB\-w[lLiaprmfFsoORtUuTgAck]\fR|
173 \fB\-\-debug\-dump\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]]
174 [\fB\-wK\fR|\fB\-\-debug\-dump=follow\-links\fR]
175 [\fB\-wN\fR|\fB\-\-debug\-dump=no\-follow\-links\fR]
176 [\fB\-P\fR|\fB\-\-process\-links\fR]
177 [\fB\-\-dwarf\-depth=\fR\fIn\fR]
178 [\fB\-\-dwarf\-start=\fR\fIn\fR]
179 [\fB\-\-ctf=\fR\fIsection\fR]
180 [\fB\-\-ctf\-parent=\fR\fIsection\fR]
181 [\fB\-\-ctf\-symbols=\fR\fIsection\fR]
182 [\fB\-\-ctf\-strings=\fR\fIsection\fR]
183 [\fB\-I\fR|\fB\-\-histogram\fR]
184 [\fB\-v\fR|\fB\-\-version\fR]
185 [\fB\-W\fR|\fB\-\-wide\fR]
186 [\fB\-T\fR|\fB\-\-silent\-truncation\fR]
187 [\fB\-H\fR|\fB\-\-help\fR]
190 .IX Header "DESCRIPTION"
191 \&\fBreadelf\fR displays information about one or more \s-1ELF\s0 format object
192 files. The options control what particular information to display.
194 \&\fIelffile\fR... are the object files to be examined. 32\-bit and
195 64\-bit \s-1ELF\s0 files are supported, as are archives containing \s-1ELF\s0 files.
197 This program performs a similar function to \fBobjdump\fR but it
198 goes into more detail and it exists independently of the \s-1BFD\s0
199 library, so if there is a bug in \s-1BFD\s0 then readelf will not be
203 The long and short forms of options, shown here as alternatives, are
204 equivalent. At least one option besides \fB\-v\fR or \fB\-H\fR must be
209 .IP "\fB\-\-all\fR" 4
212 Equivalent to specifying \fB\-\-file\-header\fR,
213 \&\fB\-\-program\-headers\fR, \fB\-\-sections\fR, \fB\-\-symbols\fR,
214 \&\fB\-\-relocs\fR, \fB\-\-dynamic\fR, \fB\-\-notes\fR,
215 \&\fB\-\-version\-info\fR, \fB\-\-arch\-specific\fR, \fB\-\-unwind\fR,
216 \&\fB\-\-section\-groups\fR and \fB\-\-histogram\fR.
218 Note \- this option does not enable \fB\-\-use\-dynamic\fR itself, so
219 if that option is not present on the command line then dynamic symbols
220 and dynamic relocs will not be displayed.
224 .IP "\fB\-\-file\-header\fR" 4
225 .IX Item "--file-header"
227 Displays the information contained in the \s-1ELF\s0 header at the start of the
232 .IP "\fB\-\-program\-headers\fR" 4
233 .IX Item "--program-headers"
234 .IP "\fB\-\-segments\fR" 4
235 .IX Item "--segments"
237 Displays the information contained in the file's segment headers, if it
239 .IP "\fB\-\-quiet\fR" 4
241 Suppress \*(L"no symbols\*(R" diagnostic.
245 .IP "\fB\-\-sections\fR" 4
246 .IX Item "--sections"
247 .IP "\fB\-\-section\-headers\fR" 4
248 .IX Item "--section-headers"
250 Displays the information contained in the file's section headers, if it
255 .IP "\fB\-\-section\-groups\fR" 4
256 .IX Item "--section-groups"
258 Displays the information contained in the file's section groups, if it
263 .IP "\fB\-\-section\-details\fR" 4
264 .IX Item "--section-details"
266 Displays the detailed section information. Implies \fB\-S\fR.
270 .IP "\fB\-\-symbols\fR" 4
272 .IP "\fB\-\-syms\fR" 4
275 Displays the entries in symbol table section of the file, if it has one.
276 If a symbol has version information associated with it then this is
277 displayed as well. The version string is displayed as a suffix to the
278 symbol name, preceded by an @ character. For example
279 \&\fBfoo@VER_1\fR. If the version is the default version to be used
280 when resolving unversioned references to the symbol then it is
281 displayed as a suffix preceded by two @ characters. For example
283 .IP "\fB\-\-dyn\-syms\fR" 4
284 .IX Item "--dyn-syms"
285 Displays the entries in dynamic symbol table section of the file, if it
286 has one. The output format is the same as the format used by the
287 \&\fB\-\-syms\fR option.
288 .IP "\fB\-\-lto\-syms\fR" 4
289 .IX Item "--lto-syms"
290 Displays the contents of any \s-1LTO\s0 symbol tables in the file.
291 .IP "\fB\-\-sym\-base=[0|8|10|16]\fR" 4
292 .IX Item "--sym-base=[0|8|10|16]"
293 Forces the size field of the symbol table to use the given base. Any
294 unrecognized options will be treated as \fB0\fR. \fB\-\-sym\-base=0\fR
295 represents the default and legacy behaviour. This will output sizes as decimal
296 for numbers less than 100000. For sizes 100000 and greater hexadecimal notation
297 will be used with a 0x prefix.
298 \&\fB\-\-sym\-base=8\fR will give the symbol sizes in octal.
299 \&\fB\-\-sym\-base=10\fR will always give the symbol sizes in decimal.
300 \&\fB\-\-sym\-base=16\fR will always give the symbol sizes in hexadecimal with a
305 .IP "\fB\-\-demangle[=\fR\fIstyle\fR\fB]\fR" 4
306 .IX Item "--demangle[=style]"
308 Decode (\fIdemangle\fR) low-level symbol names into user-level names.
309 This makes \*(C+ function names readable. Different compilers have
310 different mangling styles. The optional demangling style argument can
311 be used to choose an appropriate demangling style for your
313 .IP "\fB\-\-no\-demangle\fR" 4
314 .IX Item "--no-demangle"
315 Do not demangle low-level symbol names. This is the default.
316 .IP "\fB\-\-recurse\-limit\fR" 4
317 .IX Item "--recurse-limit"
319 .IP "\fB\-\-no\-recurse\-limit\fR" 4
320 .IX Item "--no-recurse-limit"
321 .IP "\fB\-\-recursion\-limit\fR" 4
322 .IX Item "--recursion-limit"
323 .IP "\fB\-\-no\-recursion\-limit\fR" 4
324 .IX Item "--no-recursion-limit"
326 Enables or disables a limit on the amount of recursion performed
327 whilst demangling strings. Since the name mangling formats allow for
328 an infinite level of recursion it is possible to create strings whose
329 decoding will exhaust the amount of stack space available on the host
330 machine, triggering a memory fault. The limit tries to prevent this
331 from happening by restricting recursion to 2048 levels of nesting.
333 The default is for this limit to be enabled, but disabling it may be
334 necessary in order to demangle truly complicated names. Note however
335 that if the recursion limit is disabled then stack exhaustion is
336 possible and any bug reports about such an event will be rejected.
337 .IP "\fB\-U\fR \fI[d|i|l|e|x|h]\fR" 4
338 .IX Item "-U [d|i|l|e|x|h]"
340 .IP "\fB\-\-unicode=[default|invalid|locale|escape|hex|highlight]\fR" 4
341 .IX Item "--unicode=[default|invalid|locale|escape|hex|highlight]"
343 Controls the display of non-ASCII characters in identifier names.
344 The default (\fB\-\-unicode=locale\fR or \fB\-\-unicode=default\fR) is
345 to treat them as multibyte characters and display them in the current
346 locale. All other versions of this option treat the bytes as \s-1UTF\-8\s0
347 encoded values and attempt to interpret them. If they cannot be
348 interpreted or if the \fB\-\-unicode=invalid\fR option is used then
349 they are displayed as a sequence of hex bytes, encloses in curly
350 parethesis characters.
352 Using the \fB\-\-unicode=escape\fR option will display the characters
353 as as unicode escape sequences (\fI\euxxxx\fR). Using the
354 \&\fB\-\-unicode=hex\fR will display the characters as hex byte
355 sequences enclosed between angle brackets.
357 Using the \fB\-\-unicode=highlight\fR will display the characters as
358 unicode escape sequences but it will also highlighted them in red,
359 assuming that colouring is supported by the output device. The
360 colouring is intended to draw attention to the presence of unicode
361 sequences when they might not be expected.
365 .IP "\fB\-\-headers\fR" 4
368 Display all the headers in the file. Equivalent to \fB\-h \-l \-S\fR.
372 .IP "\fB\-\-notes\fR" 4
375 Displays the contents of the \s-1NOTE\s0 segments and/or sections, if any.
379 .IP "\fB\-\-relocs\fR" 4
382 Displays the contents of the file's relocation section, if it has one.
386 .IP "\fB\-\-unwind\fR" 4
389 Displays the contents of the file's unwind section, if it has one. Only
390 the unwind sections for \s-1IA64 ELF\s0 files, as well as \s-1ARM\s0 unwind tables
391 (\f(CW\*(C`.ARM.exidx\*(C'\fR / \f(CW\*(C`.ARM.extab\*(C'\fR) are currently supported. If
392 support is not yet implemented for your architecture you could try
393 dumping the contents of the \fI.eh_frames\fR section using the
394 \&\fB\-\-debug\-dump=frames\fR or \fB\-\-debug\-dump=frames\-interp\fR
399 .IP "\fB\-\-dynamic\fR" 4
402 Displays the contents of the file's dynamic section, if it has one.
406 .IP "\fB\-\-version\-info\fR" 4
407 .IX Item "--version-info"
409 Displays the contents of the version sections in the file, it they
414 .IP "\fB\-\-arch\-specific\fR" 4
415 .IX Item "--arch-specific"
417 Displays architecture-specific information in the file, if there
422 .IP "\fB\-\-use\-dynamic\fR" 4
423 .IX Item "--use-dynamic"
425 When displaying symbols, this option makes \fBreadelf\fR use the
426 symbol hash tables in the file's dynamic section, rather than the
427 symbol table sections.
429 When displaying relocations, this option makes \fBreadelf\fR
430 display the dynamic relocations rather than the static relocations.
434 .IP "\fB\-\-lint\fR" 4
436 .IP "\fB\-\-enable\-checks\fR" 4
437 .IX Item "--enable-checks"
439 Displays warning messages about possible problems with the file(s)
440 being examined. If used on its own then all of the contents of the
441 file(s) will be examined. If used with one of the dumping options
442 then the warning messages will only be produced for the things being
444 .IP "\fB\-x <number or name>\fR" 4
445 .IX Item "-x <number or name>"
447 .IP "\fB\-\-hex\-dump=<number or name>\fR" 4
448 .IX Item "--hex-dump=<number or name>"
450 Displays the contents of the indicated section as a hexadecimal bytes.
451 A number identifies a particular section by index in the section table;
452 any other string identifies all sections with that name in the object file.
453 .IP "\fB\-R <number or name>\fR" 4
454 .IX Item "-R <number or name>"
456 .IP "\fB\-\-relocated\-dump=<number or name>\fR" 4
457 .IX Item "--relocated-dump=<number or name>"
459 Displays the contents of the indicated section as a hexadecimal
460 bytes. A number identifies a particular section by index in the
461 section table; any other string identifies all sections with that name
462 in the object file. The contents of the section will be relocated
463 before they are displayed.
464 .IP "\fB\-p <number or name>\fR" 4
465 .IX Item "-p <number or name>"
467 .IP "\fB\-\-string\-dump=<number or name>\fR" 4
468 .IX Item "--string-dump=<number or name>"
470 Displays the contents of the indicated section as printable strings.
471 A number identifies a particular section by index in the section table;
472 any other string identifies all sections with that name in the object file.
476 .IP "\fB\-\-decompress\fR" 4
477 .IX Item "--decompress"
479 Requests that the section(s) being dumped by \fBx\fR, \fBR\fR or
480 \&\fBp\fR options are decompressed before being displayed. If the
481 section(s) are not compressed then they are displayed as is.
485 .IP "\fB\-\-archive\-index\fR" 4
486 .IX Item "--archive-index"
488 Displays the file symbol index information contained in the header part
489 of binary archives. Performs the same function as the \fBt\fR
490 command to \fBar\fR, but without using the \s-1BFD\s0 library.
491 .IP "\fB\-w[lLiaprmfFsOoRtUuTgAckK]\fR" 4
492 .IX Item "-w[lLiaprmfFsOoRtUuTgAckK]"
494 .IP "\fB\-\-debug\-dump[=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
495 .IX Item "--debug-dump[=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]"
497 Displays the contents of the \s-1DWARF\s0 debug sections in the file, if any
498 are present. Compressed debug sections are automatically decompressed
499 (temporarily) before they are displayed. If one or more of the
500 optional letters or words follows the switch then only those type(s)
501 of data will be dumped. The letters and words refer to the following
505 .el .IP "\f(CWa\fR" 4
508 .ie n .IP """=abbrev""" 4
509 .el .IP "\f(CW=abbrev\fR" 4
512 Displays the contents of the \fB.debug_abbrev\fR section.
514 .el .IP "\f(CWA\fR" 4
517 .ie n .IP """=addr""" 4
518 .el .IP "\f(CW=addr\fR" 4
521 Displays the contents of the \fB.debug_addr\fR section.
523 .el .IP "\f(CWc\fR" 4
526 .ie n .IP """=cu_index""" 4
527 .el .IP "\f(CW=cu_index\fR" 4
530 Displays the contents of the \fB.debug_cu_index\fR and/or
531 \&\fB.debug_tu_index\fR sections.
533 .el .IP "\f(CWf\fR" 4
536 .ie n .IP """=frames""" 4
537 .el .IP "\f(CW=frames\fR" 4
540 Display the raw contents of a \fB.debug_frame\fR section.
542 .el .IP "\f(CWF\fR" 4
545 .ie n .IP """=frames\-interp""" 4
546 .el .IP "\f(CW=frames\-interp\fR" 4
547 .IX Item "=frames-interp"
549 Display the interpreted contents of a \fB.debug_frame\fR section.
551 .el .IP "\f(CWg\fR" 4
554 .ie n .IP """=gdb_index""" 4
555 .el .IP "\f(CW=gdb_index\fR" 4
556 .IX Item "=gdb_index"
558 Displays the contents of the \fB.gdb_index\fR and/or
559 \&\fB.debug_names\fR sections.
561 .el .IP "\f(CWi\fR" 4
564 .ie n .IP """=info""" 4
565 .el .IP "\f(CW=info\fR" 4
568 Displays the contents of the \fB.debug_info\fR section. Note: the
569 output from this option can also be restricted by the use of the
570 \&\fB\-\-dwarf\-depth\fR and \fB\-\-dwarf\-start\fR options.
572 .el .IP "\f(CWk\fR" 4
575 .ie n .IP """=links""" 4
576 .el .IP "\f(CW=links\fR" 4
579 Displays the contents of the \fB.gnu_debuglink\fR,
580 \&\fB.gnu_debugaltlink\fR and \fB.debug_sup\fR sections, if any of
581 them are present. Also displays any links to separate dwarf object
582 files (dwo), if they are specified by the DW_AT_GNU_dwo_name or
583 DW_AT_dwo_name attributes in the \fB.debug_info\fR section.
585 .el .IP "\f(CWK\fR" 4
588 .ie n .IP """=follow\-links""" 4
589 .el .IP "\f(CW=follow\-links\fR" 4
590 .IX Item "=follow-links"
592 Display the contents of any selected debug sections that are found in
593 linked, separate debug info file(s). This can result in multiple
594 versions of the same debug section being displayed if it exists in
597 In addition, when displaying \s-1DWARF\s0 attributes, if a form is found that
598 references the separate debug info file, then the referenced contents
599 will also be displayed.
601 Note \- in some distributions this option is enabled by default. It
602 can be disabled via the \fBN\fR debug option. The default can be
603 chosen when configuring the binutils via the
604 \&\fB\-\-enable\-follow\-debug\-links=yes\fR or
605 \&\fB\-\-enable\-follow\-debug\-links=no\fR options. If these are not
606 used then the default is to enable the following of debug links.
608 .el .IP "\f(CWN\fR" 4
611 .ie n .IP """=no\-follow\-links""" 4
612 .el .IP "\f(CW=no\-follow\-links\fR" 4
613 .IX Item "=no-follow-links"
615 Disables the following of links to separate debug info files.
617 .el .IP "\f(CWl\fR" 4
620 .ie n .IP """=rawline""" 4
621 .el .IP "\f(CW=rawline\fR" 4
624 Displays the contents of the \fB.debug_line\fR section in a raw
627 .el .IP "\f(CWL\fR" 4
630 .ie n .IP """=decodedline""" 4
631 .el .IP "\f(CW=decodedline\fR" 4
632 .IX Item "=decodedline"
634 Displays the interpreted contents of the \fB.debug_line\fR section.
636 .el .IP "\f(CWm\fR" 4
639 .ie n .IP """=macro""" 4
640 .el .IP "\f(CW=macro\fR" 4
643 Displays the contents of the \fB.debug_macro\fR and/or
644 \&\fB.debug_macinfo\fR sections.
646 .el .IP "\f(CWo\fR" 4
649 .ie n .IP """=loc""" 4
650 .el .IP "\f(CW=loc\fR" 4
653 Displays the contents of the \fB.debug_loc\fR and/or
654 \&\fB.debug_loclists\fR sections.
656 .el .IP "\f(CWO\fR" 4
659 .ie n .IP """=str\-offsets""" 4
660 .el .IP "\f(CW=str\-offsets\fR" 4
661 .IX Item "=str-offsets"
663 Displays the contents of the \fB.debug_str_offsets\fR section.
665 .el .IP "\f(CWp\fR" 4
668 .ie n .IP """=pubnames""" 4
669 .el .IP "\f(CW=pubnames\fR" 4
672 Displays the contents of the \fB.debug_pubnames\fR and/or
673 \&\fB.debug_gnu_pubnames\fR sections.
675 .el .IP "\f(CWr\fR" 4
678 .ie n .IP """=aranges""" 4
679 .el .IP "\f(CW=aranges\fR" 4
682 Displays the contents of the \fB.debug_aranges\fR section.
684 .el .IP "\f(CWR\fR" 4
687 .ie n .IP """=Ranges""" 4
688 .el .IP "\f(CW=Ranges\fR" 4
691 Displays the contents of the \fB.debug_ranges\fR and/or
692 \&\fB.debug_rnglists\fR sections.
694 .el .IP "\f(CWs\fR" 4
697 .ie n .IP """=str""" 4
698 .el .IP "\f(CW=str\fR" 4
701 Displays the contents of the \fB.debug_str\fR, \fB.debug_line_str\fR
702 and/or \fB.debug_str_offsets\fR sections.
704 .el .IP "\f(CWt\fR" 4
707 .ie n .IP """=pubtype""" 4
708 .el .IP "\f(CW=pubtype\fR" 4
711 Displays the contents of the \fB.debug_pubtypes\fR and/or
712 \&\fB.debug_gnu_pubtypes\fR sections.
714 .el .IP "\f(CWT\fR" 4
717 .ie n .IP """=trace_aranges""" 4
718 .el .IP "\f(CW=trace_aranges\fR" 4
719 .IX Item "=trace_aranges"
721 Displays the contents of the \fB.trace_aranges\fR section.
723 .el .IP "\f(CWu\fR" 4
726 .ie n .IP """=trace_abbrev""" 4
727 .el .IP "\f(CW=trace_abbrev\fR" 4
728 .IX Item "=trace_abbrev"
730 Displays the contents of the \fB.trace_abbrev\fR section.
732 .el .IP "\f(CWU\fR" 4
735 .ie n .IP """=trace_info""" 4
736 .el .IP "\f(CW=trace_info\fR" 4
737 .IX Item "=trace_info"
739 Displays the contents of the \fB.trace_info\fR section.
743 Note: displaying the contents of \fB.debug_static_funcs\fR,
744 \&\fB.debug_static_vars\fR and \fBdebug_weaknames\fR sections is not
747 .IP "\fB\-\-dwarf\-depth=\fR\fIn\fR" 4
748 .IX Item "--dwarf-depth=n"
749 Limit the dump of the \f(CW\*(C`.debug_info\*(C'\fR section to \fIn\fR children.
750 This is only useful with \fB\-\-debug\-dump=info\fR. The default is
751 to print all DIEs; the special value 0 for \fIn\fR will also have this
754 With a non-zero value for \fIn\fR, DIEs at or deeper than \fIn\fR
755 levels will not be printed. The range for \fIn\fR is zero-based.
756 .IP "\fB\-\-dwarf\-start=\fR\fIn\fR" 4
757 .IX Item "--dwarf-start=n"
758 Print only DIEs beginning with the \s-1DIE\s0 numbered \fIn\fR. This is only
759 useful with \fB\-\-debug\-dump=info\fR.
761 If specified, this option will suppress printing of any header
762 information and all DIEs before the \s-1DIE\s0 numbered \fIn\fR. Only
763 siblings and children of the specified \s-1DIE\s0 will be printed.
765 This can be used in conjunction with \fB\-\-dwarf\-depth\fR.
769 .IP "\fB\-\-process\-links\fR" 4
770 .IX Item "--process-links"
772 Display the contents of non-debug sections found in separate debuginfo
773 files that are linked to the main file. This option automatically
774 implies the \fB\-wK\fR option, and only sections requested by other
775 command line options will be displayed.
776 .IP "\fB\-\-ctf[=\fR\fIsection\fR\fB]\fR" 4
777 .IX Item "--ctf[=section]"
778 Display the contents of the specified \s-1CTF\s0 section. \s-1CTF\s0 sections themselves
779 contain many subsections, all of which are displayed in order.
781 By default, display the name of the section named \fI.ctf\fR, which is the
782 name emitted by \fBld\fR.
783 .IP "\fB\-\-ctf\-parent=\fR\fImember\fR" 4
784 .IX Item "--ctf-parent=member"
785 If the \s-1CTF\s0 section contains ambiguously-defined types, it will consist
786 of an archive of many \s-1CTF\s0 dictionaries, all inheriting from one
787 dictionary containing unambiguous types. This member is by default
788 named \fI.ctf\fR, like the section containing it, but it is possible to
789 change this name using the \f(CW\*(C`ctf_link_set_memb_name_changer\*(C'\fR
790 function at link time. When looking at \s-1CTF\s0 archives that have been
791 created by a linker that uses the name changer to rename the parent
792 archive member, \fB\-\-ctf\-parent\fR can be used to specify the name
794 .IP "\fB\-\-ctf\-symbols=\fR\fIsection\fR" 4
795 .IX Item "--ctf-symbols=section"
797 .IP "\fB\-\-ctf\-strings=\fR\fIsection\fR" 4
798 .IX Item "--ctf-strings=section"
800 Specify the name of another section from which the \s-1CTF\s0 file can inherit
801 strings and symbols. By default, the \f(CW\*(C`.symtab\*(C'\fR and its linked
802 string table are used.
804 If either of \fB\-\-ctf\-symbols\fR or \fB\-\-ctf\-strings\fR is specified, the
805 other must be specified as well.
809 .IP "\fB\-\-histogram\fR" 4
810 .IX Item "--histogram"
812 Display a histogram of bucket list lengths when displaying the contents
813 of the symbol tables.
817 .IP "\fB\-\-version\fR" 4
820 Display the version number of readelf.
824 .IP "\fB\-\-wide\fR" 4
827 Don't break output lines to fit into 80 columns. By default
828 \&\fBreadelf\fR breaks section header and segment listing lines for
829 64\-bit \s-1ELF\s0 files, so that they fit into 80 columns. This option causes
830 \&\fBreadelf\fR to print each section header resp. each segment one a
831 single line, which is far more readable on terminals wider than 80 columns.
835 .IP "\fB\-\-silent\-truncation\fR" 4
836 .IX Item "--silent-truncation"
838 Normally when readelf is displaying a symbol name, and it has to
839 truncate the name to fit into an 80 column display, it will add a
840 suffix of \f(CW\*(C`[...]\*(C'\fR to the name. This command line option
841 disables this behaviour, allowing 5 more characters of the name to be
842 displayed and restoring the old behaviour of readelf (prior to release
847 .IP "\fB\-\-help\fR" 4
850 Display the command-line options understood by \fBreadelf\fR.
851 .IP "\fB@\fR\fIfile\fR" 4
853 Read command-line options from \fIfile\fR. The options read are
854 inserted in place of the original @\fIfile\fR option. If \fIfile\fR
855 does not exist, or cannot be read, then the option will be treated
856 literally, and not removed.
858 Options in \fIfile\fR are separated by whitespace. A whitespace
859 character may be included in an option by surrounding the entire
860 option in either single or double quotes. Any character (including a
861 backslash) may be included by prefixing the character to be included
862 with a backslash. The \fIfile\fR may itself contain additional
863 @\fIfile\fR options; any such options will be processed recursively.
865 .IX Header "SEE ALSO"
866 \&\fBobjdump\fR\|(1), and the Info entries for \fIbinutils\fR.
868 .IX Header "COPYRIGHT"
869 Copyright (c) 1991\-2022 Free Software Foundation, Inc.
871 Permission is granted to copy, distribute and/or modify this document
872 under the terms of the \s-1GNU\s0 Free Documentation License, Version 1.3
873 or any later version published by the Free Software Foundation;
874 with no Invariant Sections, with no Front-Cover Texts, and with no
875 Back-Cover Texts. A copy of the license is included in the
876 section entitled \*(L"\s-1GNU\s0 Free Documentation License\*(R".