mingw-5.1.4/win32/man/man1/readelf.1
changeset 0 76b1f169d9fe
equal deleted inserted replaced
-1:000000000000 0:76b1f169d9fe
       
     1 .\" Automatically generated by Pod::Man v1.37, Pod::Parser v1.14
       
     2 .\"
       
     3 .\" Standard preamble:
       
     4 .\" ========================================================================
       
     5 .de Sh \" Subsection heading
       
     6 .br
       
     7 .if t .Sp
       
     8 .ne 5
       
     9 .PP
       
    10 \fB\\$1\fR
       
    11 .PP
       
    12 ..
       
    13 .de Sp \" Vertical space (when we can't use .PP)
       
    14 .if t .sp .5v
       
    15 .if n .sp
       
    16 ..
       
    17 .de Vb \" Begin verbatim text
       
    18 .ft CW
       
    19 .nf
       
    20 .ne \\$1
       
    21 ..
       
    22 .de Ve \" End verbatim text
       
    23 .ft R
       
    24 .fi
       
    25 ..
       
    26 .\" Set up some character translations and predefined strings.  \*(-- will
       
    27 .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
       
    28 .\" double quote, and \*(R" will give a right double quote.  | will give a
       
    29 .\" real vertical bar.  \*(C+ will give a nicer C++.  Capital omega is used to
       
    30 .\" do unbreakable dashes and therefore won't be available.  \*(C` and \*(C'
       
    31 .\" expand to `' in nroff, nothing in troff, for use with C<>.
       
    32 .tr \(*W-|\(bv\*(Tr
       
    33 .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
       
    34 .ie n \{\
       
    35 .    ds -- \(*W-
       
    36 .    ds PI pi
       
    37 .    if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
       
    38 .    if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\"  diablo 12 pitch
       
    39 .    ds L" ""
       
    40 .    ds R" ""
       
    41 .    ds C` ""
       
    42 .    ds C' ""
       
    43 'br\}
       
    44 .el\{\
       
    45 .    ds -- \|\(em\|
       
    46 .    ds PI \(*p
       
    47 .    ds L" ``
       
    48 .    ds R" ''
       
    49 'br\}
       
    50 .\"
       
    51 .\" If the F register is turned on, we'll generate index entries on stderr for
       
    52 .\" titles (.TH), headers (.SH), subsections (.Sh), items (.Ip), and index
       
    53 .\" entries marked with X<> in POD.  Of course, you'll have to process the
       
    54 .\" output yourself in some meaningful fashion.
       
    55 .if \nF \{\
       
    56 .    de IX
       
    57 .    tm Index:\\$1\t\\n%\t"\\$2"
       
    58 ..
       
    59 .    nr % 0
       
    60 .    rr F
       
    61 .\}
       
    62 .\"
       
    63 .\" For nroff, turn off justification.  Always turn off hyphenation; it makes
       
    64 .\" way too many mistakes in technical documents.
       
    65 .hy 0
       
    66 .\"
       
    67 .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
       
    68 .\" Fear.  Run.  Save yourself.  No user-serviceable parts.
       
    69 .    \" fudge factors for nroff and troff
       
    70 .if n \{\
       
    71 .    ds #H 0
       
    72 .    ds #V .8m
       
    73 .    ds #F .3m
       
    74 .    ds #[ \f1
       
    75 .    ds #] \fP
       
    76 .\}
       
    77 .if t \{\
       
    78 .    ds #H ((1u-(\\\\n(.fu%2u))*.13m)
       
    79 .    ds #V .6m
       
    80 .    ds #F 0
       
    81 .    ds #[ \&
       
    82 .    ds #] \&
       
    83 .\}
       
    84 .    \" simple accents for nroff and troff
       
    85 .if n \{\
       
    86 .    ds ' \&
       
    87 .    ds ` \&
       
    88 .    ds ^ \&
       
    89 .    ds , \&
       
    90 .    ds ~ ~
       
    91 .    ds /
       
    92 .\}
       
    93 .if t \{\
       
    94 .    ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
       
    95 .    ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
       
    96 .    ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
       
    97 .    ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
       
    98 .    ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
       
    99 .    ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
       
   100 .\}
       
   101 .    \" troff and (daisy-wheel) nroff accents
       
   102 .ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
       
   103 .ds 8 \h'\*(#H'\(*b\h'-\*(#H'
       
   104 .ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
       
   105 .ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
       
   106 .ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
       
   107 .ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
       
   108 .ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
       
   109 .ds ae a\h'-(\w'a'u*4/10)'e
       
   110 .ds Ae A\h'-(\w'A'u*4/10)'E
       
   111 .    \" corrections for vroff
       
   112 .if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
       
   113 .if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
       
   114 .    \" for low resolution devices (crt and lpr)
       
   115 .if \n(.H>23 .if \n(.V>19 \
       
   116 \{\
       
   117 .    ds : e
       
   118 .    ds 8 ss
       
   119 .    ds o a
       
   120 .    ds d- d\h'-1'\(ga
       
   121 .    ds D- D\h'-1'\(hy
       
   122 .    ds th \o'bp'
       
   123 .    ds Th \o'LP'
       
   124 .    ds ae ae
       
   125 .    ds Ae AE
       
   126 .\}
       
   127 .rm #[ #] #H #V #F C
       
   128 .\" ========================================================================
       
   129 .\"
       
   130 .IX Title "READELF 1"
       
   131 .TH READELF 1 "2008-01-09" "binutils-2.18.50" "GNU Development Tools"
       
   132 .SH "NAME"
       
   133 readelf \- Displays information about ELF files.
       
   134 .SH "SYNOPSIS"
       
   135 .IX Header "SYNOPSIS"
       
   136 readelf [\fB\-a\fR|\fB\-\-all\fR]
       
   137         [\fB\-h\fR|\fB\-\-file\-header\fR]
       
   138         [\fB\-l\fR|\fB\-\-program\-headers\fR|\fB\-\-segments\fR]
       
   139         [\fB\-S\fR|\fB\-\-section\-headers\fR|\fB\-\-sections\fR]
       
   140         [\fB\-g\fR|\fB\-\-section\-groups\fR]
       
   141         [\fB\-t\fR|\fB\-\-section\-details\fR]
       
   142         [\fB\-e\fR|\fB\-\-headers\fR]
       
   143         [\fB\-s\fR|\fB\-\-syms\fR|\fB\-\-symbols\fR]
       
   144         [\fB\-n\fR|\fB\-\-notes\fR]
       
   145         [\fB\-r\fR|\fB\-\-relocs\fR]
       
   146         [\fB\-u\fR|\fB\-\-unwind\fR]
       
   147         [\fB\-d\fR|\fB\-\-dynamic\fR]
       
   148         [\fB\-V\fR|\fB\-\-version\-info\fR]
       
   149         [\fB\-A\fR|\fB\-\-arch\-specific\fR]
       
   150         [\fB\-D\fR|\fB\-\-use\-dynamic\fR]
       
   151         [\fB\-x\fR <number or name>|\fB\-\-hex\-dump=\fR<number or name>]
       
   152         [\fB\-p\fR <number or name>|\fB\-\-string\-dump=\fR<number or name>]
       
   153         [\fB\-c\fR|\fB\-\-archive\-index\fR]
       
   154         [\fB\-w[liaprmfFsoR]\fR|
       
   155          \fB\-\-debug\-dump\fR[=line,=info,=abbrev,=pubnames,=aranges,=macro,=frames,=frames\-interp,=str,=loc,=Ranges]]
       
   156         [\fB\-I\fR|\fB\-histogram\fR]
       
   157         [\fB\-v\fR|\fB\-\-version\fR]
       
   158         [\fB\-W\fR|\fB\-\-wide\fR]
       
   159         [\fB\-H\fR|\fB\-\-help\fR]
       
   160         \fIelffile\fR...
       
   161 .SH "DESCRIPTION"
       
   162 .IX Header "DESCRIPTION"
       
   163 \&\fBreadelf\fR displays information about one or more \s-1ELF\s0 format object
       
   164 files.  The options control what particular information to display.
       
   165 .PP
       
   166 \&\fIelffile\fR... are the object files to be examined.  32\-bit and
       
   167 64\-bit \s-1ELF\s0 files are supported, as are archives containing \s-1ELF\s0 files.
       
   168 .PP
       
   169 This program performs a similar function to \fBobjdump\fR but it
       
   170 goes into more detail and it exists independently of the \s-1BFD\s0
       
   171 library, so if there is a bug in \s-1BFD\s0 then readelf will not be
       
   172 affected.
       
   173 .SH "OPTIONS"
       
   174 .IX Header "OPTIONS"
       
   175 The long and short forms of options, shown here as alternatives, are
       
   176 equivalent.  At least one option besides \fB\-v\fR or \fB\-H\fR must be
       
   177 given.
       
   178 .IP "\fB\-a\fR" 4
       
   179 .IX Item "-a"
       
   180 .PD 0
       
   181 .IP "\fB\-\-all\fR" 4
       
   182 .IX Item "--all"
       
   183 .PD
       
   184 Equivalent to specifying \fB\-\-file\-header\fR,
       
   185 \&\fB\-\-program\-headers\fR, \fB\-\-sections\fR, \fB\-\-symbols\fR,
       
   186 \&\fB\-\-relocs\fR, \fB\-\-dynamic\fR, \fB\-\-notes\fR and
       
   187 \&\fB\-\-version\-info\fR.
       
   188 .IP "\fB\-h\fR" 4
       
   189 .IX Item "-h"
       
   190 .PD 0
       
   191 .IP "\fB\-\-file\-header\fR" 4
       
   192 .IX Item "--file-header"
       
   193 .PD
       
   194 Displays the information contained in the \s-1ELF\s0 header at the start of the
       
   195 file.
       
   196 .IP "\fB\-l\fR" 4
       
   197 .IX Item "-l"
       
   198 .PD 0
       
   199 .IP "\fB\-\-program\-headers\fR" 4
       
   200 .IX Item "--program-headers"
       
   201 .IP "\fB\-\-segments\fR" 4
       
   202 .IX Item "--segments"
       
   203 .PD
       
   204 Displays the information contained in the file's segment headers, if it
       
   205 has any.
       
   206 .IP "\fB\-S\fR" 4
       
   207 .IX Item "-S"
       
   208 .PD 0
       
   209 .IP "\fB\-\-sections\fR" 4
       
   210 .IX Item "--sections"
       
   211 .IP "\fB\-\-section\-headers\fR" 4
       
   212 .IX Item "--section-headers"
       
   213 .PD
       
   214 Displays the information contained in the file's section headers, if it
       
   215 has any.
       
   216 .IP "\fB\-g\fR" 4
       
   217 .IX Item "-g"
       
   218 .PD 0
       
   219 .IP "\fB\-\-section\-groups\fR" 4
       
   220 .IX Item "--section-groups"
       
   221 .PD
       
   222 Displays the information contained in the file's section groups, if it
       
   223 has any.
       
   224 .IP "\fB\-t\fR" 4
       
   225 .IX Item "-t"
       
   226 .PD 0
       
   227 .IP "\fB\-\-section\-details\fR" 4
       
   228 .IX Item "--section-details"
       
   229 .PD
       
   230 Displays the detailed section information. Implies \fB\-S\fR.
       
   231 .IP "\fB\-s\fR" 4
       
   232 .IX Item "-s"
       
   233 .PD 0
       
   234 .IP "\fB\-\-symbols\fR" 4
       
   235 .IX Item "--symbols"
       
   236 .IP "\fB\-\-syms\fR" 4
       
   237 .IX Item "--syms"
       
   238 .PD
       
   239 Displays the entries in symbol table section of the file, if it has one.
       
   240 .IP "\fB\-e\fR" 4
       
   241 .IX Item "-e"
       
   242 .PD 0
       
   243 .IP "\fB\-\-headers\fR" 4
       
   244 .IX Item "--headers"
       
   245 .PD
       
   246 Display all the headers in the file.  Equivalent to \fB\-h \-l \-S\fR.
       
   247 .IP "\fB\-n\fR" 4
       
   248 .IX Item "-n"
       
   249 .PD 0
       
   250 .IP "\fB\-\-notes\fR" 4
       
   251 .IX Item "--notes"
       
   252 .PD
       
   253 Displays the contents of the \s-1NOTE\s0 segments and/or sections, if any.
       
   254 .IP "\fB\-r\fR" 4
       
   255 .IX Item "-r"
       
   256 .PD 0
       
   257 .IP "\fB\-\-relocs\fR" 4
       
   258 .IX Item "--relocs"
       
   259 .PD
       
   260 Displays the contents of the file's relocation section, if it has one.
       
   261 .IP "\fB\-u\fR" 4
       
   262 .IX Item "-u"
       
   263 .PD 0
       
   264 .IP "\fB\-\-unwind\fR" 4
       
   265 .IX Item "--unwind"
       
   266 .PD
       
   267 Displays the contents of the file's unwind section, if it has one.  Only
       
   268 the unwind sections for \s-1IA64\s0 \s-1ELF\s0 files are currently supported.
       
   269 .IP "\fB\-d\fR" 4
       
   270 .IX Item "-d"
       
   271 .PD 0
       
   272 .IP "\fB\-\-dynamic\fR" 4
       
   273 .IX Item "--dynamic"
       
   274 .PD
       
   275 Displays the contents of the file's dynamic section, if it has one.
       
   276 .IP "\fB\-V\fR" 4
       
   277 .IX Item "-V"
       
   278 .PD 0
       
   279 .IP "\fB\-\-version\-info\fR" 4
       
   280 .IX Item "--version-info"
       
   281 .PD
       
   282 Displays the contents of the version sections in the file, it they
       
   283 exist.
       
   284 .IP "\fB\-A\fR" 4
       
   285 .IX Item "-A"
       
   286 .PD 0
       
   287 .IP "\fB\-\-arch\-specific\fR" 4
       
   288 .IX Item "--arch-specific"
       
   289 .PD
       
   290 Displays architecture-specific information in the file, if there
       
   291 is any.
       
   292 .IP "\fB\-D\fR" 4
       
   293 .IX Item "-D"
       
   294 .PD 0
       
   295 .IP "\fB\-\-use\-dynamic\fR" 4
       
   296 .IX Item "--use-dynamic"
       
   297 .PD
       
   298 When displaying symbols, this option makes \fBreadelf\fR use the
       
   299 symbol table in the file's dynamic section, rather than the one in the
       
   300 symbols section.
       
   301 .IP "\fB\-x <number or name>\fR" 4
       
   302 .IX Item "-x <number or name>"
       
   303 .PD 0
       
   304 .IP "\fB\-\-hex\-dump=<number or name>\fR" 4
       
   305 .IX Item "--hex-dump=<number or name>"
       
   306 .PD
       
   307 Displays the contents of the indicated section as a hexadecimal dump.
       
   308 A number identifies a particular section by index in the section table;
       
   309 any other string identifies all sections with that name in the object file.
       
   310 .IP "\fB\-p <number or name>\fR" 4
       
   311 .IX Item "-p <number or name>"
       
   312 .PD 0
       
   313 .IP "\fB\-\-string\-dump=<number or name>\fR" 4
       
   314 .IX Item "--string-dump=<number or name>"
       
   315 .PD
       
   316 Displays the contents of the indicated section as printable strings.
       
   317 A number identifies a particular section by index in the section table;
       
   318 any other string identifies all sections with that name in the object file.
       
   319 .IP "\fB\-c\fR" 4
       
   320 .IX Item "-c"
       
   321 .PD 0
       
   322 .IP "\fB\-\-archive\-index\fR" 4
       
   323 .IX Item "--archive-index"
       
   324 .PD
       
   325 Displays the file symbol index infomation contained in the header part
       
   326 of binary archives.  Performs the same function as the \fBt\fR
       
   327 command to \fBar\fR, but without using the \s-1BFD\s0 library.  
       
   328 .IP "\fB\-w[liaprmfFsoR]\fR" 4
       
   329 .IX Item "-w[liaprmfFsoR]"
       
   330 .PD 0
       
   331 .IP "\fB\-\-debug\-dump[=line,=info,=abbrev,=pubnames,=aranges,=macro,=frames,=frames\-interp,=str,=loc,=Ranges]\fR" 4
       
   332 .IX Item "--debug-dump[=line,=info,=abbrev,=pubnames,=aranges,=macro,=frames,=frames-interp,=str,=loc,=Ranges]"
       
   333 .PD
       
   334 Displays the contents of the debug sections in the file, if any are
       
   335 present.  If one of the optional letters or words follows the switch
       
   336 then only data found in those specific sections will be dumped.
       
   337 .IP "\fB\-I\fR" 4
       
   338 .IX Item "-I"
       
   339 .PD 0
       
   340 .IP "\fB\-\-histogram\fR" 4
       
   341 .IX Item "--histogram"
       
   342 .PD
       
   343 Display a histogram of bucket list lengths when displaying the contents
       
   344 of the symbol tables.
       
   345 .IP "\fB\-v\fR" 4
       
   346 .IX Item "-v"
       
   347 .PD 0
       
   348 .IP "\fB\-\-version\fR" 4
       
   349 .IX Item "--version"
       
   350 .PD
       
   351 Display the version number of readelf.
       
   352 .IP "\fB\-W\fR" 4
       
   353 .IX Item "-W"
       
   354 .PD 0
       
   355 .IP "\fB\-\-wide\fR" 4
       
   356 .IX Item "--wide"
       
   357 .PD
       
   358 Don't break output lines to fit into 80 columns. By default
       
   359 \&\fBreadelf\fR breaks section header and segment listing lines for
       
   360 64\-bit \s-1ELF\s0 files, so that they fit into 80 columns. This option causes
       
   361 \&\fBreadelf\fR to print each section header resp. each segment one a
       
   362 single line, which is far more readable on terminals wider than 80 columns.
       
   363 .IP "\fB\-H\fR" 4
       
   364 .IX Item "-H"
       
   365 .PD 0
       
   366 .IP "\fB\-\-help\fR" 4
       
   367 .IX Item "--help"
       
   368 .PD
       
   369 Display the command line options understood by \fBreadelf\fR.
       
   370 .IP "\fB@\fR\fIfile\fR" 4
       
   371 .IX Item "@file"
       
   372 Read command-line options from \fIfile\fR.  The options read are
       
   373 inserted in place of the original @\fIfile\fR option.  If \fIfile\fR
       
   374 does not exist, or cannot be read, then the option will be treated
       
   375 literally, and not removed.  
       
   376 .Sp
       
   377 Options in \fIfile\fR are separated by whitespace.  A whitespace
       
   378 character may be included in an option by surrounding the entire
       
   379 option in either single or double quotes.  Any character (including a
       
   380 backslash) may be included by prefixing the character to be included
       
   381 with a backslash.  The \fIfile\fR may itself contain additional
       
   382 @\fIfile\fR options; any such options will be processed recursively.
       
   383 .SH "SEE ALSO"
       
   384 .IX Header "SEE ALSO"
       
   385 \&\fIobjdump\fR\|(1), and the Info entries for \fIbinutils\fR.
       
   386 .SH "COPYRIGHT"
       
   387 .IX Header "COPYRIGHT"
       
   388 Copyright (c) 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
       
   389 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
       
   390 .PP
       
   391 Permission is granted to copy, distribute and/or modify this document
       
   392 under the terms of the \s-1GNU\s0 Free Documentation License, Version 1.2
       
   393 or any later version published by the Free Software Foundation;
       
   394 with no Invariant Sections, with no Front-Cover Texts, and with no
       
   395 Back-Cover Texts.  A copy of the license is included in the
       
   396 section entitled \*(L"\s-1GNU\s0 Free Documentation License\*(R".