United States-English |
|
|
HP-UX Reference > Oodump(1)PA-RISC System OnlyHP-UX 11i Version 3: February 2007 |
|
NAMEodump — dump information contained in SOM object files DESCRIPTIONodump 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.
OptionsSome odump options have additional support or provide additional information when used in combination with the modifier options:
The table below indicates the available support for each option. odump recognizes the following options and their modifiers:
RETURN VALUEodump exits with one of the following values:
EXAMPLESTo 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$ SEE ALSOMiscellaneous
Texts and Tutorials
|
Printable version | ||
|