HP-UX Reference (11i v1 05/09) - 1 User Commands N-Z (vol 2)
o
odump(1) odump(1)
Print Versioned symbols----symver
Print the linker bss subspace map----toolbssmap
Print the linker compilation unit map----toolcompmap
Print the linker subspace map----toolsubspmap
Print the stack unwind tableVT- -unwind
Print the help screen----usage
Set verbosity level for tables that follow,
0=default
----verbose #
Verify correctness of tables before they are
printed
----verify
Verify correctness of tables that have ver-
ify support
----verifyall
Print date of current version----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
HP-UX 11i Version 1: September 2005 − 3 − Hewlett-Packard Company Section 1−−673