Manual Page Result
0
Command: odump | Section: 1 | Source: Digital UNIX | File: odump.1.gz
odump(1) General Commands Manual odump(1)
NAME
odump - Dumps selected parts of an object file
SYNOPSIS
odump [-acfghi l[a|4|8] orstxz D[cghilprst] FPRV X[p|x] flag_modifiers]
file1 ... fileN
DESCRIPTION
The odump command dumps selected parts of each file that is specified.
For details on the object file parts presented in the odump output, see
the Assembly Language Programmer's Guide.
The odump command works for object files and archives of object files.
It accepts one or more of the following flags: Dumps the archive header
for each member of an archive file. Dumps the string table (local and
external strings). Dumps each file header. Dumps the global symbols
from the symbol table of an archive file. Dumps section headers.
Dumps the symbolic information header. Dumps line numbers. Dumps the
contents of a literal section; with x specifying the section to dump,
as follows: Dumps the 4-byte literal section. Dumps the 8-byte literal
section. Dumps the literal address section (.lita). Dumps each op-
tional header. Dumps relocation information. Dumps section contents.
Dumps symbol table entries. Indexed symbol table entries only can be
dumped by using the -t index and +t index flags: Dumps indexed symbol
table entries in a range starting at the specified entry (index) and
ending at the last entry or the entry specified by +t. Dumps symbol
table entries in a range starting at the first entry or the entry spec-
ified by -t and ending at the entry specified by +t. Dumps the auxil-
iary symbol table. Dumps line number entries for the specified func-
tion (name). A range of line number entries can be dumped by using -z
name,number and +z number flags: Dumps a range of line number entries
starting at number for the named function (name) and ending at the last
line number or the line number specified by +z. Dumps line numbers for
a specified range. The range starts at either the name or number spec-
ified by -z. The range ends with the number specified by +z.
The name and number specified by a -z modifier can be separated
by a blank instead of a comma. Displays the .dynamic section
for each file specified. This section contains basic information
describing where other sections related to dynamic loading are
located and the size of those sections. You can use the -D flag
with modifiers: Displays the .conflict section for each file
specified. This conflict table lists symbols whose normal defi-
nition is overridden at run time. Displays the .got section for
each file specified. The GOT (global offset table) contains the
run-time addresses of each symbol exported or imported by the
shared object. Displays the .hash section for each file speci-
fied. This hash table contains entries for each name in the
.dynsym section and is used for fast lookup of symbols. Dis-
plays the .liblist section for each file named. This section
contains a list of the shared libraries needed by this object.
Displays the .msym section for each specified file. The msym
table contains entries corresponding to each symbol in the .dyn-
sym section. Each entry contains the symbol's hash value and an
index into the dynamic relocation table. The msym table is used
to speed up loader processing and reduce the dynamic memory al-
located by the loader. Displays the dynamic relocation section
(.rel.dyn) for each file specified. Each relocation entry rep-
resents a reference to a symbol in a shared library. Displays
the .dynstr section for each file specified. This section con-
tains strings referenced by other dynamic loading sections.
Displays the .dynsym section for each file specified. This is a
table of external symbols in a shared object. Dumps the file
descriptor table. Dumps the procedure descriptor table. Dumps
the relative file descriptor table. Displays the version ID of
the odump command. Dumps the exception procedure table. En-
hances the -Xp output to show scope table information for each
entry. The -Xx option must be used with the -Xp option.
The odump command accepts the following modifiers (flag_modifiers) with
the preceding flags: Dumps a section or a range of sections. The range
starts either at the first section or at number (if specified). The
range ends at either the last section or the section you specify with
+d. This modifier can be used with -r and -s. Dumps sections in the
range beginning with either the first section or the section specified
with -d. The range ends with either the last section or the section
specified by +d. This modifier can be used with -r and -s. Dumps in-
formation only about the specified name. This modifier can be used
with -h, -l, -r, and -s. Does not display headers. The modifier can
be used with all of the command flags. Underlines the name of the file
for emphasis. The modifier can be used with all of the command flags.
Dumps information symbolically rather than numerically (for example,
Static rather than 0X02). This modifier can be used with -a, -f, -la,
-o, -r, -t, and -x.
Optionally, a flag and its modifier can be separated by using blanks.
[Digital] The DEC C++ compiler encodes type information in function,
template, variable, and virtual table names to enable type-safe link-
ages. This encoding is referred to as "name mangling". The following
options can be used with the -r, -t, and -P flags to instruct the odump
command to print either the original name (that is, the demangled
name), the mangled name, or both names by specifying one of the follow-
ing flags. By default, odump shows the demangled names only. [Digi-
tal] Prints only the mangled name. [Digital] Prints both the mangled
and the demangled names.
The odump command tries to format information in a helpful way, dis-
playing information in character, hexadecimal, octal, or decimal, as
appropriate.
RELATED INFORMATION
a.out(4), ar(4)
Programmer's Guide
Assembly Language Programmer's Guide delim off delim off
odump(1)