READELF(1) | MidnightBSD General Commands Manual | READELF(1) |
readelf
— display
information about ELF objects
readelf |
[-a | --all ]
[-c | --archive-index ]
[-d | --dynamic ]
[-e | --headers ]
[-g | --section-groups ]
[-h | --file-header ]
[-l | --program-headers ]
[-n | --notes ]
[-p section |
--string-dump =section]
[-r | --relocs ]
[-t | --section-details ]
[-u | --unwind ]
[-v | --version ]
[-w [afilmoprsFLR] |
--debug-dump [=long-option-name,...]]
[-x section |
--hex-dump =section]
[-z | --decompress ]
[-A | --arch-specific ]
[-D | --use-dynamic ]
[-H | --help ]
[-I | --histogram ]
[-N | --full-section-name ]
[-S | --sections |
--section-headers ] [-V |
--version-info ] [-W |
--wide ] file... |
The readelf
utility displays information
about ELF objects and ar(1)
archives.
The readelf
utility recognizes the
following options:
-a
|
--all
-d
,
-h
, -I
,
-l
, -n
,
-r
, -s
,
-u
, -A
,
-S
and -V
.-c
|
--archive-index
-d
|
--dynamic
SHT_DYNAMIC
sections in
the ELF object.-e
|
--headers
-g
|
--section-groups
-h
|
--file-header
-l
|
--program-headers
-n
|
--notes
PT_NOTE
segments or
SHT_NOTE
sections present in the ELF object.-p
section |
--string-dump
=section-r
|
--relocs
-s
|
--syms
|
--symbols
-t
|
--section-details
-S
.-u
|
--unwind
-v
|
--version
readelf
and
exits.-w
[afilmoprsFLR]
|
--debug-dump
[=long-option-name,...]-w
option is used
with the short options in the following table; the
--debug-dump
option is used with a comma-separated
list of the corresponding long option names:
Short Option | Long Option | Description |
a | abbrev | Show abbreviation information. |
f | frames | Show frame information, displaying frame instructions. |
i | info | Show debugging information entries. |
l | rawline | Show line information in raw form. |
m | macro | Show macro information. |
o | loc | Show location list information. |
p | pubnames | Show global names. |
r | aranges|ranges | Show address range information. |
s | str | Show the debug string table. |
F | frames-interp | Show frame information, displaying register rules. |
L | decodedline | Show line information in decoded form. |
R | Ranges | Show range lists. |
If no sub-options are specified, the default is to show information corresponding to the a, f, i, l, o, p, r, s and R short options.
-x
section |
--hex-dump
=section-z
|
--decompress
-x
or
-p
before displaying. If the specified section is
not compressed, it is displayed as is.-A
|
--arch-specific
-D
|
--use-dynamic
DT_SYMTAB
entry in the “.dynamic
”
section.-H
|
--help
-I
|
--histogram
SHT_HASH
and
SHT_GNU_HASH
.-N
|
--full-section-name
-S
|
--sections
|
--section-headers
-V
|
--version-info
-W
|
--wide
readelf
will list
information in the headers of 64 bit ELF objects on two separate
lines.The readelf
utility exits 0 on
success, and >0 if an error occurs.
The readelf
utility was written by
Kai Wang
<kaiwang27@users.sourceforge.net>.
September 17, 2021 | midnightbsd-3.1 |