odump(1) — Commands
NAME
odump − Dumps selected parts of an object file
SYNOPSIS
odump [−acfghil [a48] orstuvzD [cghilprst] PRX[px]] file1 ... fileN
DESCRIPTION
The odump command dumps selected parts of each object file.
This command works for object files and archives of object files. It accepts one or more of these flags:
−aDumps the archive header for each member of the specified archive file.
−cDumps the string table.
−fDumps each file header.
−gDumps the global symbols from the symbol table of an archive.
−hDumps section headers.
−iDumps the symbolic information header.
−lDumps line number information.
−oDumps each optional header.
−sDumps section contents.
−rDumps relocation information.
−tDumps symbol table entries.
−z name
Dumps line number entries for the specified function name.
−DDisplays 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 as follows:
−DcDisplays the .conflict section for each file specified. This conflict table lists symbols whose normal definition is overridden at runtime. This table is not currently used in this release.
−DgDisplays the .got section for each file specified. The GOT (global offset table) contains the addresses of each symbol exported or imported by the shared object.
−DhDisplays the .hash section for each file specified. This hash table contains entries for each name in the .dynsym section and is used for fast lookup of symbols.
−DiDisplays the .reginfo section for each file named. This section contains the register usage as found in the coff a.out optional header. This tells the kernel whether this program will ever use coprocessor registers (fp registers). This is provided for backward compatibility.
−DlDisplays the .liblist section for each file named. This section contains a list of those shared libraries needed by this object.
−DrDisplays the dynamic relocation tables for each file specified. Each relocation entry represents a reference to a symbol in shared library.
−DsDisplays the .dynstr section for each file specified. This section contains strings referenced by other tables and sections related to dynamic loading.
−DtDisplays the .dynsym section for each file specified. This is a table of all symbols.
−FDumps the file descriptor table.
−PDumps the procedure descriptor table.
−RDumps the relative file index table.
−VDisplays the version ID of the odump command.
The odump command accepts these modifiers with the flags:
−d number
Dumps the section number or a range of sections starting at number and ending either at the last section number or the number you specify with +d.
+d number
Dumps sections in the range beginning with the first section or beginning with the section you specify with −d.
−n name
Dumps information only about the specified name. This modifier works with −h, −s, −r, −l, and −t.
−pDoes not display headers.
−t index
Dumps only the indexed symbol table entry. You can also specify a range of symbol table entries by using the modifier −t with the +t flag.
+t index
Dumps the symbol table entries in the specified range. The range begins at the first symbol table entry or at the entry specified by −t. The range ends with the specified indexed entry.
−uUnderlines the name of the file for emphasis.
−vDumps information symbolically rather than numerically (for example, Static rather than 0X02). You can use −v with all the flags except −s.
−z name,number
Dumps the specified line number entry or a range of line numbers. The range starts at the number for the named function.
+z number
Dumps line numbers for a specified range. The range starts at either the name pr number specified by −z. The range ends with the number specified by +z.
−lxDumps the contents of a literal section; with x specifying the section to dump, as follows:
−l4Dumps the 4-byte literal section.
−l8Dumps the 8-byte literal section.
−laDumps the address literal section.
−XpDumps the exception procedure table.
−XxEnhances the −Xp output to show scope table information for each entry. The −Xx option must be used with the −Xp option.
Optionally, a flag and its modifier can be separated by using blanks. The name can be separated from the number that modifies −z by replacing the comma with a blank.
The odump command tries to format information in a helpful way, displaying information in character, hexadecimal, octal, or decimal, as appropriate.
RELATED INFORMATION
Programmer’s Guide
Assembly Language Programmer’s Guide