Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP-UX Reference > O

odump(1)

PA-RISC System Only
HP-UX 11i Version 3: February 2007
» 

Technical documentation

» Feedback
Content starts here

 » Table of Contents

 » Index

NAME

odump — dump information contained in SOM object files

SYNOPSIS

odump [-option...] file...

DESCRIPTION

odump takes one or more 32-bit native code files (object files, shared and archive libraries, executables) and dumps information about them.

Note: odump skips non-SOM input files and issues a warning.

  • $ odump -all /usr/lib/pa20_64/libc.sl

    File is not a SOM, skipping: /usr/lib/pa20_64/libc.sl.

Options

Some odump options have additional support or provide additional information when used in combination with the modifier options:

V (VERIFY)

Indicate that the structure specified by its corresponding option is verified when run with the -verifyall option.

T (TITLES)

Provides additional output format information for the structure specified by its corresponding option when run with the -titles option.

B (VERBOSE)

Prints a more descriptive message for the structure specified by its corresponding option when run with the -verbose option.

The table below indicates the available support for each option.

odump recognizes the following options and their modifiers:

VTB-OptionDescription
----allPrint all information
V---auxheaderPrint SOM auxilary headers
V---auxunwindPrint the stack auxiliary unwind table
----compunitPrint compilation unit dictionary
----doclinetablePrint the line tables for debugging optimized code
----filtertablePrint the list of implementation libraries for a given filter library
--B-fixupsPrint fixups
V---headerPrint SOM header
----helpPrint this help screen
VT--initpointersPrint initialization pointers
----linetablePrint the line number table
----linkmapPrint the linkmap contents
----linkmapbssPrint the linkmap bss contents
----linkmapfilePrint the linkmap object file table
----linkmapstrPrint the linkmap string table
----loaderfixupsPrint loader fixup records
----lstauxheaderPrint LST auxheader
----lstexportlistPrint LST exportlist
----lstheaderPrint LST header
----lstimportlistPrint LST importlist
----lstsomdirPrint LST som directory
----lststringtablePrint LST stringtbl
----nclistTreat remaining options as nclist options

----octoutputTreat remaining input files as OCT output
V---recoverPrint the recover table
----silentDon't print tables, to be used with verify option
----sldatalinktblPrint the shared lib data linkage table
V---sldlexporthashPrint the shared lib export entries hashed values
V---sldlheaderPrint the shared lib DL header
V---sldlheaderextPrint the shared lib dl_header_ext structure
V---sldlimporthashPrint the shared lib import entries hashed values
V---sldlplabelhashPrint the shared lib plabel entries hashed values
V---sldynamrelPrint the shared lib dynamic relocation records
V---slexportextPrint the shared lib export list extension
V---slexportlistPrint the shared lib export list
 ---slfastbindPrint the fastbind tables
----slfbdynamrelPrint the fastbind dynamic relocation list
----slfbhdrPrint the fastbind header
----slfbimpexpPrint the fastbind import export list
----slfblibverPrint the fastbind library version list
----slfbmodboundPrint the fastbind module bound list
 ---slhashtblPrint the shared lib export hash table
V---slimportlistPrint the shared lib import list
-T--slliblistPrint the list of shared libraries used in build
----sllibloadlistPrint the shared lib load list, including dependencies
-T--sllibsearchPrint the shared lib dynamic search status
V---slmodulePrint the shared lib module table
V---slmoduledynPrint the shared lib module table relocation list
V---slmoduleimpPrint the shared lib module table import list
----slproclinktblPrint the shared lib procedure linkage table
----slstringtablePrint the shared lib string table
----slunwindhdrPrint the shared lib unwind header
V-B-sommapPrint map of SOM structures
V---spacesPrint space list
----spstringtablePrint string table for space dictionary
V---subspacesPrint subspace list
V---symbolsPrint all symbols
----symstringtablePrint string table for symbol dictionary
----titlesPrint full names in all titles
----tlssymPrint the TLS symbol references
----symverPrint Versioned symbols
----toolbssmapPrint the linker bss subspace map
----toolcompmapPrint the linker compilation unit map
----toolsubspmapPrint the linker subspace map
VT--unwindPrint the stack unwind table
----usagePrint the help screen
----verbose #Set verbosity level for tables that follow, 0=default
----verifyVerify correctness of tables before they are printed
----verifyallVerify correctness of tables that have verify support
----versionPrint date of current version

RETURN VALUE

odump exits with one of the following values:

0:

All input files were listed successfully.

>0:

odump aborted because errors occurred when accessing files. The following conditions cause an error:

  • Specified file not found.

  • User has no permission to read the directory.

  • Process could not get enough memory.

  • Invalid option specified.

EXTERNAL INFLUENCES

Environment Variables

The following variable affects the execution of odump:

SHLIB_PATH

A colon separated list of path names used to search for shared libraries. Used by -sllibsearch and -sllibloadlist options.

EXAMPLES

To see what compiler options and version an executable was compiled with:

$ odump -compunit a.out

To list the shared libraries (.sl) that a program loads, even if SHLIB_PATH is set:

$ odump -sllibload a.out

To see how much space a program needs in Quadrant 2 to hold the data, bss, stack, and other areas, look at the values in the som_exec_auxhdr:

$ odump -auxheader a.out

Auxiliary Header Record (HP-UX) for a.out: mandatory = 0 copy = 0 append = 0 ignore = 1 type = 4 length = 40 exec_tsize = 0x000023ec exec_tmem = 0x00001000 exec_tfile = 0x00002000 exec_dsize = 0x00001000 exec_dmem = 0x40001000 exec_dfile = 0x00005000 exec_bsize = 0x3bfff120 exec_entry = 0x000029c8 exec_flags = 0x00000004 exec_bfill = 0x00000000

To see if a program was built for debugging with -g and not for optimization with -O, look for a $DEBUG$ space (programs built for both show $PINFO$ instead of $DEBUG$):

$ odump -spaces a.out

Space dictionary for a.out: Ind LDPIT Sort Space Subspaces Ldr Fixups Init Ptrs Name 0 LD... 8 1 0 8 -1 0 0 1 $TEXT$ 1 LDP.. 16 0 8 9 -1 0 1 1 $PRIVATE$ 2 .DP.. 80 2 17 5 -1 0 -1 0 $DEBUG$

AUTHOR

odump was developed by HP.

SEE ALSO

System Tools

ld(1)

Invoke the link editor

Miscellaneous

a.out(4)

Assembler, compiler, and linker output

elfdump(1)

Dump utility for ELF object format

elf(3E)

Executable and Linking Format

Texts and Tutorials

HP-UX Linker and Libraries Online User Guide

(See the +help option)

HP-UX Linker and Libraries User's Guide

(See manuals(5) for ordering information)

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 1983-2007 Hewlett-Packard Development Company, L.P.