ELFDUMP ELFDUMP
elfdump - dumps selected parts of a 32-bit or a 64-bit ELF object
file/archive and displays them in ELF style
elfdump [ options ] file
The elfdump command dumps selected parts of a given ELF object file or an
archive file.
This command works for 32-bit or 64-bit ELF object files or ELF archives
only. In the case of an archive, options other than -g generate output
output from each object in the archive. elfdump accepts one or more of
these options:
-a Dumps the archive header of each member of an archive.
-brief
Dump most sections in the file. Like -h, but leaves out
sections whose names begin with .debug_, .rel, or .MIPS.
-c Dumps the string table.
-cmt Dumps the .comment section.
-cnt Dumps the .content sections.
-cr Dumps compact relocation information.
-d <lowsection>,<highsection>
Restricts range of sections printed. The section numbers must
be decimal (not octal or hexadecimal). Example: elfdump -s -d
8,10 foo Use this to restrict the range of sections printed.
Various special sections print regardless of this.
-dinfo
Dumps .MIPS.dclass section.
-dinst
Dumps .MIPS.inst section.
-dsym
Dumps .MIPS.sym section.
-e Dumps events sections.
-f Dumps the ELF header.
-g Dumps an archive symbol table.
Page 1
ELFDUMP ELFDUMP
-h Dumps all section headers in the file.
-hash
Dumps hash section entries.
-i Dumps the .interp section
-ifc Dump the .MIPS.intefaces section
-info
Dump information such as whether the object has been
requickstarted (rqs(1)) or cord(1)ed.
-l This option emits a message suggesting you use the dwarfdum
command to dump debugging line information. For
objects compiled -64 or -n32 use dwarfdump. For objects
compiled -32 use stdump.
-long
When used with -L changes type names to print in full, matching
names in elf.h. Affects only -L.
-n sectionname
Dumps a named section.
-no_verbose
Turn off -v option. For some fields that print string values,
names or interpreted flag values, this changes the output to be
the plain indexes or offsets or flag.
-o Dumps each program execution header.
-op Dumps the .options section.
-p Suppresses printing of headings.
-r Dumps relocation information.
-reg Dumps .reginfo section.
-rpt Dumps runtime procedure table.
-s Dumps contents of all sections (but see -d above)
-svr4
Dump information in svr4 style.
-t Dumps symbol table (the .symtab section) entries. (see also
the -T <lowindex>,<highindex> option below). (Programs and
DSOs do not normally have a .symtab section. For programs and
DSOs use the -Dt option to print the .dynsym section.)
Page 2
ELFDUMP ELFDUMP
-v Prints information in verbose form. This is the default.
Sometimes 'verbose' means interpret fields and print
symbolically. To turn this off (therefore printing the fields
literally as numbers) use the -no_verbose option.
-xl print the 'translate' section (Elf section type SHT_MIPS_XLATE)
of an object file. See xlate(4). This is mostly intended for
use by those working on tools that create this section, such as
cord(1) or pixie(1).
-xld print the 'translate' debug section (Elf section type
SHT_MIPS_XLATE_DEBUG) of an object file. See xlate(4). This
is mostly intended for use by those working on tools that
create this section, such as cord(1) or pixie(1).
-xli dump the 'translate' section (SHT_MIPS_XLATE) of an object file
in a form closely modeling the internal storage details. This
is mostly intended for use by those working on tools that
create this section, such as cord(1) or pixie(1).
-xldi
dump the 'translate' debug section (SHT_MIPS_XLATE_DEBUG) of an
object file in a form closely modeling the internal storage
details. This is mostly intended for use by those working on
tools that create this section, such as cord(1) or pixie(1).
-A Prints the beginning address of a section. For some section
'content dumps' it prints the virtual address for each line of
section output.
-B Prints filename each detail line of output when -c is
specified.
-C Dumps decoded C++ symbol names.
-Dg Dumps got table in dynamic shared objects.
-Dl Dumps library list in dynamic shared objects.
-Dc Dumps conflict list in dynamic shared objects.
-Dsymlib
Dumps .MIPS.symlib
-Dt Dumps the dynamic symbol table (the .dynsym section).
-F Dumps the literal tables.
-G Dumps gp table information.
Page 3
ELFDUMP ELFDUMP
-L Dumps the .dynamic (various flags and values) and the .liblist
(list of named DSOs) sections. (The .dynamic and .liblist
sections are used by rld(1)). The .liblist flag field prints D
if the LL_DELAY_LOAD bit is on, E if the LL_EXPORTS bit is on,
R if the LL_REQUIRE_MINOR bit is on, I if the LL_IGNORE_INT_VER
bit is on, and M if the LL_EXACT_MATCH bit is on. To see these
sections with the values as uninterpreted numbers (for example,
to see the actual flag bits in the .liblist) use the
-no_verbose option.
-Pperf
Dumps the .MIPS.Perf_table section (a section created by
pixie(1)).
-Pbinmap
Dumps the .MIPS.Perf_bb_offsets section (a section created by
pixie).
-Pgraph
Dumps the .MIPS.Perf_call_graph section (a section created by
pixie).
-Paddrs
Dumps the .MIPS.Addrs section (a section created by pixie).
-Pfuncnode
Dumps the .MIPS.Perf_function section (a section created by
pixie).
-Pweak
Dumps the .MIPS.Perf_weak_names section (a section created by
pixie).
-R Dumps register info.
-T <lowindex>,<highindex>
Dumps the symbol table entries in the given range. (Like -t
but restricted to a range of entries.)
-V Dumps version information.
The elfdump command tries to format information in a helpful way,
printing information in character, hexadecimal, octal, or decimal,
as appropriate.
The -D and -l options, which formerly dumped debugging and line
information, are no longer supported in elfdump. To obtain debugging and
line number information for 64-bit objects and objects compiled -n32, use
the dwarfdump command. For objects compiled -32 use the stdump command.
Page 4
ELFDUMP ELFDUMP
The interaction of options with each other is mostly unspecified and the
interactions can be surprising (with some option combinations a section
might be printed more than once, for example).
dwarfdump(1), stdump(1), ar(4), elf(4), a.out(4), xlate(4), odump(1),
rqs(1).
PPPPaaaaggggeeee 5555 [ Back ]
|